Function at 0x41f120
Capabilities:
Get process image filename
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x584
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x57c], eax
mov eax, dword [esp + 0x58c]
push ebx
mov ebx, dword [esp + 0x58c]
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x2c], eax
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
test edi, edi
je 0x41f51b
mov eax, dword [0x4e0284]
test eax, eax
jne 0x41f1af
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4e0284], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4e0288], ebp
jne 0x41f1d7
push str.NtWow64QueryInformationProcess64
push eax
call esi
mov dword [0x4e0288], eax
test eax, eax
je 0x41f519
mov eax, dword [0x4e0284]
cmp dword [0x4e028c], ebp
jne 0x41f1f4
push str.NtWow64ReadVirtualMemory64
push eax
call esi
mov dword [0x4e028c], eax
test eax, eax
je 0x41f519
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
xor edi, edi
cmp ebp, edi
je 0x41f515
push 0x20a
lea edx, [esp + 0x37c]
push edi
push edx
call fcn.0044e9d0
add esp, 0xc
push 0x105
lea eax, [esp + 0x37c]
push eax
push edi
push ebp
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x41f253
push 0x105
lea ecx, [esp + 0x37c]
push ecx
push ebp
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x41f27f
lea eax, [esp + 0x378]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41f260
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x37c]
push edx
mov eax, ebx
call fcn.0041b3e0
lea eax, [esp + 0x24]
push eax
push 0x30
lea ecx, [esp + 0x60]
push ecx
push edi
push ebp
mov dword [esp + 0x38], edi
call dword [0x4e0288]
test eax, eax
jne 0x41f508
mov edx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x64]
push edi
push 0x28
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x74]
push edx
push eax
push ebp
mov dword [esp + 0x38], edi
call dword [0x4e028c]
test eax, eax
jne 0x41f508
push 0x2f0
lea ecx, [esp + 0x8c]
push edi
push ecx
call fcn.0044e9d0
mov ecx, dword [esp + 0x60]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x54]
push edi
push 0x2f0
lea eax, [esp + 0x94]
push eax
push ecx
push edx
push ebp
call dword [0x4e028c]
test eax, eax
jne 0x41f508
mov si, word [esp + 0xf8]
cmp si, di
je 0x41f508
mov ecx, dword [esp + 0x100]
mov eax, dword [esp + 0x104]
mov edx, ecx
or edx, eax
je 0x41f508
mov ebx, dword [esp + 0x90]
and ebx, 1
jne 0x41f391
cmp eax, dword [esp + 0x54]
ja 0x41f391
mov eax, dword [esp + 0x50]
jb 0x41f380
cmp ecx, eax
jae 0x41f391
add eax, ecx
cdq
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], edx
movzx esi, si
shr esi, 1
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push 0x4db040
neg ecx
or ecx, eax
push ecx
call fcn.0044c41c
mov edi, eax
add esp, 8
test edi, edi
je 0x41f42b
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0044e9d0
movzx eax, word [esp + 0x104]
add esp, 0xc
cdq
lea ecx, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x10c]
push eax
mov eax, dword [esp + 0x10c]
push edi
push edx
push eax
push ebp
call dword [0x4e028c]
test eax, eax
jne 0x41f422
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f400
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x30]
push edi
call fcn.0041b3e0
mov dword [esp + 0x14], 1
push edi
call fcn.0044c759
add esp, 4
mov si, word [esp + 0x138]
test si, si
je 0x41f508
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x144]
mov edx, ecx
or edx, eax
je 0x41f508
test ebx, ebx
jne 0x41f479
cmp eax, dword [esp + 0x54]
ja 0x41f479
mov eax, dword [esp + 0x50]
jb 0x41f468
cmp ecx, eax
jae 0x41f479
add eax, ecx
cdq
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], edx
movzx esi, si
shr esi, 1
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push 0x4db040
neg ecx
or ecx, eax
push ecx
call fcn.0044c41c
mov edi, eax
add esp, 8
test edi, edi
je 0x41f508
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0044e9d0
movzx eax, word [esp + 0x144]
add esp, 0xc
cdq
lea ecx, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x14c]
push eax
mov eax, dword [esp + 0x14c]
push edi
push edx
push eax
push ebp
call dword [0x4e028c]
test eax, eax
jne 0x41f4ff
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f4e5
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x2c]
push edi
call fcn.0041b3e0
push edi
call fcn.0044c759
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x41f51b
mov eax, edi
jmp 0x41f51b
mov eax, ebp
mov ecx, dword [esp + 0x58c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b6ee
add esp, 0x584
ret 8