Function at 0x41edc0
Capabilities:
Get process image filename

Disassembly:
sub esp, 0x4f4
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x4ec], eax
mov eax, dword [esp + 0x4fc]
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, edx
mov dword [esp + 0x20], eax
xor eax, eax
push edi
mov edi, dword [esp + 0x508]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
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
cmp esi, ebx
je 0x41f105
mov eax, dword [0x4e027c]
cmp eax, ebx
jne 0x41ee31
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4e027c], eax
cmp dword [0x4e0280], ebx
jne 0x41ee52
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e0280], eax
cmp eax, ebx
je 0x41f103
push esi
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
cmp ebp, ebx
je 0x41f103
push 0x20a
lea edx, [esp + 0x2ec]
push ebx
push edx
call fcn.0044e9d0
add esp, 0xc
push 0x105
lea eax, [esp + 0x2ec]
push eax
push ebx
push ebp
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x41eeae
push 0x105
lea ecx, [esp + 0x2ec]
push ecx
push ebp
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x41eedf
lea eax, [esp + 0x2e8]
lea edx, [eax + 2]
jmp 0x41eec0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41eec0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2ec]
push edx
mov eax, edi
call fcn.0041b3e0
lea eax, [esp + 0x1c]
push eax
push 0x18
lea ecx, [esp + 0x48]
push ecx
push ebx
push ebp
mov dword [esp + 0x30], ebx
call dword [0x4e0280]
test eax, eax
jne 0x41f0fc
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
push eax
push 0x14
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x4c]
push ecx
push edx
mov dword [esp + 0x4c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push ebp
call ebx
test eax, eax
je 0x41f0f8
push 0x290
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.0044e9d0
mov eax, dword [esp + 0x48]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x290
lea edx, [esp + 0x60]
push edx
push eax
push ebp
call ebx
test eax, eax
je 0x41f0f8
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x9c]
and eax, 1
mov dword [esp + 0x20], eax
jne 0x41ef99
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jae 0x41ef99
test ecx, ecx
je 0x41ef99
add ecx, eax
mov dword [esp + 0x9c], ecx
mov ax, word [esp + 0x98]
test ax, ax
je 0x41f0f8
test ecx, ecx
je 0x41f0f8
movzx esi, ax
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 0x41f03b
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0044e9d0
movzx edx, word [esp + 0xa4]
mov eax, dword [esp + 0xa8]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
push eax
push ebp
call ebx
test eax, eax
je 0x41f032
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f010
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x28]
push edi
call fcn.0041b3e0
mov dword [esp + 0x18], 1
push edi
call fcn.0044c759
add esp, 4
cmp dword [esp + 0x20], 0
mov ecx, dword [esp + 0xcc]
jne 0x41f05e
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jae 0x41f05e
test ecx, ecx
je 0x41f05e
add ecx, eax
mov dword [esp + 0xcc], ecx
mov ax, word [esp + 0xc8]
test ax, ax
je 0x41f0f8
test ecx, ecx
je 0x41f0f8
movzx esi, ax
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 0x41f0f8
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0044e9d0
movzx edx, word [esp + 0xd4]
mov eax, dword [esp + 0xd8]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
push eax
push ebp
call ebx
test eax, eax
je 0x41f0ef
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f0d5
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
mov ebx, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x4fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b6ee
add esp, 0x4f4
ret 8