Function at 0x459b90
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598701
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x610684]
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 esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x459e11
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0054aa90
add esp, 0xc
cmp esi, edi
je 0x459e11
lea ebx, [esi + 0x24]
nop
push dword [esi]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x459dff
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x23c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov eax, dword [ebp - 0x23c]
lea edi, [ebp - 0x21c]
mov dword [ebx - 8], eax
mov ecx, 0x82
mov eax, dword [ebp - 0x238]
mov dword [ebx - 4], eax
xor eax, eax
rep stosd dword es:[edi], eax
push 0x105
stosw word es:[edi], ax
lea eax, [ebp - 0x21c]
mov edi, dword [ebp - 0x258]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x459c76
push edi
jmp 0x459df9
xor eax, eax
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
mov dword [ebp - 4], eax
cmp word [ebp - 0x21c], ax
jne 0x459ca3
xor ecx, ecx
jmp 0x459cbf
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459cb0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x254]
call fcn.0044f430
cmp dword [ebp - 0x240], 8
lea ecx, [ebp - 0x254]
mov eax, dword [ebp - 0x244]
cmovae ecx, dword [ebp - 0x254]
mov edi, dword [ebx + 0x14]
lea ecx, [ecx + eax*2]
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
mov dword [ebp - 0x25c], eax
cmp edi, 0x10
jb 0x459d0e
mov edx, dword [ebx]
jmp 0x459d10
mov edx, ebx
mov eax, dword [ebx + 0x10]
add eax, edx
cmp edi, 0x10
jb 0x459d1e
mov edx, dword [ebx]
jmp 0x459d20
mov edx, ebx
push ecx
push dword [ebp - 0x25c]
mov ecx, ebx
push eax
push edx
call fcn.004557a0
push 2
push 0xffffffffffffffff
push 0x5d90b0
mov ecx, ebx
call fcn.0045a320
cmp eax, 0xffffffff
je 0x459dba
push 0xffffffffffffffff
inc eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.0045a110
mov edi, eax
lea ecx, [ebx - 0x20]
cmp ecx, edi
je 0x459d9a
mov eax, dword [ebx - 0xc]
cmp eax, 0x10
jb 0x459d74
inc eax
lea ecx, [ebx - 0x20]
push eax
push dword [ecx]
call fcn.0044c890
mov dword [ebx - 0xc], 0xf
lea ecx, [ebx - 0x20]
cmp dword [ebx - 0xc], 0x10
mov dword [ebx - 0x10], 0
jb 0x459d8f
mov eax, dword [ecx]
jmp 0x459d91
mov eax, ecx
push edi
mov byte [eax], 0
call fcn.00452e10
mov eax, dword [ebp - 0x260]
cmp eax, 0x10
jb 0x459dce
inc eax
lea ecx, [ebp - 0x274]
push eax
push dword [ebp - 0x274]
call fcn.0044c890
jmp 0x459dce
lea eax, [ebx - 0x20]
cmp eax, ebx
je 0x459dce
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebx - 0x20]
call fcn.0044f670
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
cmp eax, 8
jb 0x459df3
inc eax
lea ecx, [ebp - 0x254]
push eax
push dword [ebp - 0x254]
call fcn.0044f7a0
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add esi, 0x3c
add ebx, 0x3c
cmp esi, dword [eax + 4]
jne 0x459bf0
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.00544516
mov esp, ebp
pop ebp
ret 4