Function at 0x4535f0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457788
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x46f940]
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 dword [ebp - 0x42c], edx
mov esi, dword [ebp + 8]
push ecx
push 0
push 0x410
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x453838
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00424760
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00424760
add esp, 0x18
lea eax, [ebp - 0x420]
push 0x104
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x45378a
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x420]
call fcn.00453470
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.00406110
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00405c30
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x424]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4536fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x462cd8
lea ecx, [ebp - 0x430]
call fcn.00406110
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x428]
push ecx
mov esi, esp
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00405bc0
add esp, 4
lea edx, [ebp - 0x430]
add eax, 0x10
xor ecx, ecx
mov dword [esi], eax
call fcn.0040a420
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x430]
add esp, 4
push eax
call fcn.00405c30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
mov dword [ebp - 0x424], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x453838
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x453838
push 0x462cd8
lea ecx, [ebp - 0x428]
call fcn.00406110
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x428]
push str.Cannot_GetProcessImageFileName._Lasterr_d
push eax
call fcn.00405b90
add esp, 0xc
or edi, 0xffffffff
cmp dword [0x475cb0], 0
je 0x453814
push str.GetProcessName
lea ecx, [ebp - 0x42c]
call fcn.00405a70
mov byte [ebp - 4], 3
push dword [ebp - 0x428]
mov ecx, dword [0x475cb0]
push dword [eax]
push 0
call fcn.00408740
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x42c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x453814
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x428]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x453838
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x424]
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.00420375
mov esp, ebp
pop ebp
ret