Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. char __cdecl sub_40B0A0(int a1)
  2. {
  3. char result; // al@5
  4. CHAR Filename; // [sp+0h] [bp-110h]@3
  5. HANDLE hProcess; // [sp+108h] [bp-8h]@2
  6. int v4; // [sp+10Ch] [bp-4h]@1
  7.  
  8. v4 = 0;
  9. if ( sub_4222C0(a1, &v4, 0) || (hProcess = (HANDLE)v5da0ca1(1, 0, v4), !hProcess) )
  10. {
  11. result = 0;
  12. }
  13. else
  14. {
  15. if ( GetModuleFileNameExA(hProcess, 0, &Filename, 0x104u) )
  16. {
  17. v5cb092e(hProcess, 0);
  18. sub_40AFD0(&Filename, 1);
  19. }
  20. v5cb092e(hProcess, 0);
  21. result = 1;
  22. }
  23. return result;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement