Function at 0x4214d0
Capabilities:
Get process image filename

Disassembly:
sub esp, 0x4f4
mov eax, dword [0x4bd450]
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 0x421815
mov eax, dword [0x5185e0]
cmp eax, ebx
jne 0x421541
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x5185e0], eax
cmp dword [0x5185e4], ebx
jne 0x421562
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5185e4], eax
cmp eax, ebx
je 0x421813
push esi
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
cmp ebp, ebx
je 0x421813
push 0x20a
lea edx, [esp + 0x2ec]
push ebx
push edx
call fcn.00476ef0
add esp, 0xc
push 0x105
lea eax, [esp + 0x2ec]
push eax
push ebx
push ebp
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x4215be
push 0x105
lea ecx, [esp + 0x2ec]
push ecx
push ebp
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4215ef
lea eax, [esp + 0x2e8]
lea edx, [eax + 2]
jmp 0x4215d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4215d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2ec]
push edx
mov eax, edi
call fcn.004086f0
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 [0x5185e4]
test eax, eax
jne 0x42180c
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 0x421808
push 0x290
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00476ef0
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 0x421808
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x9c]
and eax, 1
mov dword [esp + 0x20], eax
jne 0x4216a9
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jae 0x4216a9
test ecx, ecx
je 0x4216a9
add ecx, eax
mov dword [esp + 0x9c], ecx
mov ax, word [esp + 0x98]
test ax, ax
je 0x421808
test ecx, ecx
je 0x421808
movzx esi, ax
shr esi, 1
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push 0x512dc0
neg ecx
or ecx, eax
push ecx
call fcn.00472b75
mov edi, eax
add esp, 8
test edi, edi
je 0x42174b
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.00476ef0
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 0x421742
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421720
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x28]
push edi
call fcn.004086f0
mov dword [esp + 0x18], 1
push edi
call fcn.00472eb2
add esp, 4
cmp dword [esp + 0x20], 0
mov ecx, dword [esp + 0xcc]
jne 0x42176e
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jae 0x42176e
test ecx, ecx
je 0x42176e
add ecx, eax
mov dword [esp + 0xcc], ecx
mov ax, word [esp + 0xc8]
test ax, ax
je 0x421808
test ecx, ecx
je 0x421808
movzx esi, ax
shr esi, 1
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push 0x512dc0
neg ecx
or ecx, eax
push ecx
call fcn.00472b75
mov edi, eax
add esp, 8
test edi, edi
je 0x421808
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.00476ef0
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 0x4217ff
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4217e5
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x2c]
push edi
call fcn.004086f0
push edi
call fcn.00472eb2
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.00471eba
add esp, 0x4f4
ret 8