Function at 0x4053b0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x442754]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4053ef
mov eax, str.SYSTEM___
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x314]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40541e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, str.Error_None_None
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov dword [ebp - 0x328], 0x104
mov byte [ebp - 0x108], 0
call fcn.00421fd0
add esp, 0xc
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
jne 0x405473
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
mov eax, dword [ebp - 0x314]
push edi
lea edx, [ebp - 0x31c]
push edx
push 0
push 0
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4054c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4054c4
mov ecx, dword [ebp - 0x314]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
push esi
call edi
pop edi
mov eax, str.Error_None_None
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x31c]
push ebx
call fcn.0041c606
mov edi, eax
add esp, 4
test edi, edi
je 0x4054ff
mov ecx, dword [ebp - 0x314]
lea eax, [ebp - 0x31c]
push eax
push ebx
push edi
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x405508
push edi
call fcn.0041ba30
add esp, 4
mov edx, dword [ebp - 0x314]
push edx
jmp 0x40555b
mov eax, 0x101
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x320]
push ecx
lea edx, [ebp - 0x310]
push edx
mov edx, dword [edi]
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x40557c
push edi
call fcn.0041ba30
mov eax, dword [ebp - 0x314]
add esp, 4
push eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop ebx
pop edi
mov eax, str.Error_None_None
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ba21
mov esp, ebp
pop ebp
ret
push 0x104
call fcn.0041c606
add esp, 4
lea ecx, [ebp - 0x318]
push ecx
push esi
mov ebx, eax
mov dword [ebp - 0x318], 0
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x318], 0
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x310]
je 0x4055c5
push 0x43a7c4
jmp 0x4055ca
push 0x43a7d4
push edx
push eax
push ecx
push str._s_s__s__s
push 0x104
push ebx
call fcn.0041d516
add esp, 0x1c
push edi
call fcn.0041ba30
mov edx, dword [ebp - 0x314]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0041ba21
mov esp, ebp
pop ebp
ret