Function at 0x409110
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474664
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp + 0xc]
or ecx, edx
mov dword [ebp - 0x2b4], edi
mov dword [ebp - 0x2b0], 0
jne 0x40916d
push 0x482d54
mov ecx, edi
call fcn.00407ae0
jmp 0x409468
xor ecx, ecx
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], cx
push eax
push 1
push 0x410
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
xor esi, esi
mov dword [ebp - 0x2ac], esi
test ebx, ebx
je 0x4091d8
cmp ebx, 0xffffffff
je 0x4091d8
mov dword [ebp - 0x2ac], ebx
call fcn.00447930
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x2ac]
push eax
push ebx
call fcn.00451300
mov esi, dword [ebp - 0x2ac]
add esp, 0x10
mov byte [ebp - 4], 2
test esi, esi
je 0x4093f3
cmp esi, 0xffffffff
je 0x4093f3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [ebp - 0x21c], 7
add esp, 0xc
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
lea eax, [ebp - 0x218]
jne 0x40928b
push 0x104
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x409297
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x290]
call fcn.00408e20
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a4f0
lea ecx, [ebp - 0x290]
call fcn.00407b40
jmp 0x409297
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a530
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
lea ecx, [ebp - 0x260]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00407ae0
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x278]
call fcn.0044f5b0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x24c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4092eb
push dword [ebp - 0x260]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x250], 0
push eax
call fcn.0044fa60
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
cmp ecx, eax
je 0x409332
push 0xffffffffffffffff
push 0
push eax
call fcn.00408570
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 6
call fcn.0044f620
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0040a480
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x2b0], 1
mov byte [ebp - 4], 3
call fcn.0044f620
cmp dword [ebp - 0x21c], 8
jb 0x40937c
push dword [ebp - 0x230]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
test eax, eax
je 0x4093e0
cmp eax, 0xffffffff
je 0x4093e0
call fcn.00447930
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2ac]
call fcn.00451440
push dword [ebp - 0x2ac]
call fcn.00451210
add esp, 0x14
mov dword [ebp - 0x2ac], 0
cmp dword [ebp - 0x234], 8
jb 0x409468
push dword [ebp - 0x248]
call esi
jmp 0x409465
push 0x482d54
mov ecx, edi
call fcn.00407ae0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], 1
test eax, eax
je 0x409450
cmp eax, 0xffffffff
je 0x409450
call fcn.00447930
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2ac]
call fcn.00451440
push dword [ebp - 0x2ac]
call fcn.00451210
add esp, 0x14
mov dword [ebp - 0x2ac], 0
cmp dword [ebp - 0x234], 8
jb 0x409468
push dword [ebp - 0x248]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047259d
mov esp, ebp
pop ebp
ret