Function at 0x4d0890
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578226
mov eax, dword fs:[0]
push eax
sub esp, 0x664
mov eax, dword [0x5edd38]
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 + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x668], ebx
mov dword [ebp - 0x66c], eax
mov byte [ebp - 0x661], 0
test eax, eax
je 0x4d08e4
mov dword [eax], 0
test edi, edi
je 0x4d08ee
mov dword [edi], 0
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0053f340
add esp, 0xc
test ebx, ebx
je 0x4d098c
push str.CicMarshalWnd
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.004066c8
add esp, 0xc
test eax, eax
jne 0x4d098c
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.0040f427
add esp, 8
cmp eax, 0x100
jae 0x4d098c
lea ecx, [ebp - 0x210]
mov edx, ebx
lea ecx, [ecx + eax*2]
lea eax, [ebp - 0x10]
cmp ecx, eax
jae 0x4d0976
test edx, edx
je 0x4d0b74
mov eax, edx
shr edx, 4
and eax, 0xf
add eax, 0x41
mov word [ecx], ax
add ecx, 2
lea eax, [ebp - 0x10]
cmp ecx, eax
jb 0x4d0956
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0053f340
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x64c], 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x648], 7
mov word [ebp - 0x65c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d09b2
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x65c]
call fcn.00408f30
cmp dword [ebp - 0x64c], 0
mov dword [ebp - 4], 0
je 0x4d0bfd
cmp dword [ebp - 0x648], 8
lea eax, [ebp - 0x65c]
cmovae eax, dword [ebp - 0x65c]
push eax
push str.CicMarshalWndClass
push 0
push 0xfffffffffffffffd
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0x670], eax
test eax, eax
je 0x4d0bfd
lea ecx, [ebp - 0x62c]
mov dword [ebp - 0x62c], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, ebx
jne 0x4d0bfd
push 0x20a
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0053f340
add esp, 0xc
xor bl, bl
push dword [ebp - 0x62c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4d0ad2
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0053f340
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4d0acb
push 0
push 0
push 0x105
lea eax, [ebp - 0x628]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0040e4d0
add esp, 0x24
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
mov dword [ebp - 0x634], 0
mov eax, 0x586454
mov dword [ebp - 0x630], 7
lea edx, [ebp - 0x628]
cmove edx, eax
xor eax, eax
mov ecx, edx
mov word [ebp - 0x644], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d0b04
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x644]
call fcn.00408f30
cmp dword [ebp - 0x630], 8
lea eax, [ebp - 0x644]
push str.explorer
cmovae eax, dword [ebp - 0x644]
push eax
mov byte [ebp - 4], 1
call fcn.0040c291
add esp, 8
test eax, eax
je 0x4d0b89
cmp dword [ebp - 0x630], 8
lea eax, [ebp - 0x644]
push str.ctfmon
cmovae eax, dword [ebp - 0x644]
push eax
call fcn.0040c291
add esp, 8
test eax, eax
je 0x4d0b89
xor bl, bl
jmp 0x4d0b8b
lea eax, [ebp - 0x10]
cmp ecx, eax
jae 0x4d0976
xor eax, eax
mov word [ecx], ax
jmp 0x4d098c
mov bl, 1
mov eax, dword [ebp - 0x630]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x4d0bad
inc eax
lea ecx, [ebp - 0x644]
push eax
push dword [ebp - 0x644]
call fcn.0040a2e0
mov byte [ebp - 4], 0
test bl, bl
je 0x4d0bfd
lea eax, [ebp - 0x660]
mov dword [ebp - 0x660], 0
push eax
push 0x4d2bf0
push dword [ebp - 0x668]
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov eax, dword [ebp - 0x660]
test eax, eax
je 0x4d0bfd
mov ecx, dword [ebp - 0x66c]
test ecx, ecx
je 0x4d0bf3
mov edx, dword [ebp - 0x670]
mov dword [ecx], edx
test edi, edi
je 0x4d0bf9
mov dword [edi], eax
mov bl, 1
jmp 0x4d0c03
mov bl, byte [ebp - 0x661]
mov ecx, dword [ebp - 0x648]
mov dword [ebp - 4], 3
cmp ecx, 8
jb 0x4d0c28
inc ecx
push ecx
push dword [ebp - 0x65c]
lea ecx, [ebp - 0x65c]
call fcn.0040a2e0
mov al, bl
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.00401682
mov esp, ebp
pop ebp
ret