Function at 0x4cfb50
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597d93
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x5fae30]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x328], ecx
xor ebx, ebx
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x324], edi
mov dword [ebp - 0x320], ebx
call fcn.004019a6
push edi
push ebx
push 0x410
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x4cfbe9
mov esi, dword [ebp - 0x31c]
lea ecx, [ebp - 0x314]
push ecx
mov ecx, esi
call fcn.004041dd
lea ecx, [ebp - 0x314]
call fcn.00403fee
mov eax, esi
jmp 0x4cff32
push 0x208
lea edx, [ebp - 0x218]
push edx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push esi
test eax, eax
jne 0x4cfc2c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x31c]
lea eax, [ebp - 0x314]
push eax
mov ecx, esi
call fcn.004041dd
lea ecx, [ebp - 0x314]
call fcn.00403fee
mov eax, esi
jmp 0x4cff32
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
xor edx, edx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
mov dword [ebp - 0x258], eax
xor eax, eax
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
mov dword [ebp - 0x25c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4cfc83
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x26c]
call fcn.00403594
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x26c]
push ecx
push 0x5c
mov byte [ebp - 4], 4
mov dword [ebp - 0x320], 2
call fcn.00407e37
add esp, 0x10
test al, al
je 0x4cfce4
mov byte [ebp - 0x315], bl
cmp dword [ebp - 0x224], ebx
jne 0x4cfceb
mov byte [ebp - 0x315], 1
mov esi, 8
mov dword [ebp - 4], 3
mov dword [ebp - 0x320], ebx
cmp dword [ebp - 0x258], esi
jb 0x4cfd14
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0053ed60
add esp, 4
cmp byte [ebp - 0x315], bl
je 0x4cfd85
mov edi, dword [ebp - 0x31c]
lea eax, [ebp - 0x314]
push eax
mov ecx, edi
call fcn.004041dd
cmp dword [ebp - 0x220], esi
jb 0x4cfd47
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0053ed60
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], esi
jb 0x4cfd77
mov eax, dword [ebp - 0x250]
push eax
call fcn.0053ed60
add esp, 4
xor ecx, ecx
mov word [ebp - 0x250], cx
jmp 0x4cff15
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], esi
jae 0x4cfd99
lea eax, [ebp - 0x234]
push str.MCUI32.exe
push eax
call fcn.00543260
add esp, 8
test eax, eax
je 0x4cfe5a
push ebx
lea edx, [ebp - 0x2b8]
push edx
lea eax, [ebp - 0x26c]
push edi
push eax
call fcn.00402a77
add esp, 0x10
push eax
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 5
call fcn.00403265
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.00406dfc
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x26c]
push edx
call fcn.004042eb
add esp, 8
push eax
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 6
call fcn.00403265
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.00406dfc
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00406d02
add esp, 8
push eax
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 7
call fcn.00403265
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.00406dfc
mov dword [ebp - 0x314], 2
mov dword [ebp - 0x310], edi
mov edi, dword [ebp - 0x328]
mov edx, dword [edi + 0x14]
push 1
push edx
lea ecx, [ebp - 0x334]
call fcn.00530b60
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x324]
push ecx
lea ecx, [edi + 4]
mov byte [ebp - 4], 8
call fcn.004046e7
mov ecx, eax
call fcn.00402996
mov edi, dword [ebp - 0x31c]
lea edx, [ebp - 0x314]
push edx
mov ecx, edi
call fcn.004041dd
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x320], 1
mov byte [ebp - 4], 3
call fcn.00530af0
cmp dword [ebp - 0x220], esi
jb 0x4cfedc
mov eax, dword [ebp - 0x234]
push eax
call fcn.0053ed60
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], esi
jb 0x4cff0c
mov edx, dword [ebp - 0x250]
push edx
call fcn.0053ed60
add esp, 4
xor eax, eax
mov word [ebp - 0x250], ax
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
call fcn.00403fee
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.0053fd20
mov esp, ebp
pop ebp
ret 8