Function at 0x58e7e0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x691939
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0063d140
add esp, 0xc
mov byte [ebp - 0x261], 0
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x268], esi
test esi, esi
je 0x58ea46
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
je 0x58ea3f
cmp word [ebp - 0x218], 0
je 0x58ea3f
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0047bc90
add esp, 8
test al, al
je 0x58ea34
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
lea edi, [ebp - 0x248]
cmovae edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x260]
cmovae edi, dword [ebp - 0x248]
mov byte [ebp - 4], 2
mov dword [ebp - 0x250], 0
lea eax, [edx + eax*2]
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x26c], eax
sub eax, edi
sar eax, 1
push eax
mov byte [ebp - 0x260], 0
call fcn.0046d770
push dword [ebp - 0x268]
lea ecx, [ebp - 0x260]
push dword [ebp - 0x26c]
push edi
call fcn.0045da50
mov ecx, dword [ebp - 0x24c]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x21c], ecx
jae 0x58ea76
movups xmm0, xmmword [ebp - 0x260]
movq xmm1, qword [ebp - 0x220]
movups xmm2, xmmword [ebp - 0x230]
movq qword [ebp - 0x274], xmm1
mov edx, dword [ebp - 0x270]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [ebp - 0x250]
movq qword [ebp - 0x220], xmm0
movq qword [ebp - 0x250], xmm1
movups xmmword [ebp - 0x284], xmm2
movups xmmword [ebp - 0x260], xmm2
cmp edx, 0x10
jb 0x58e9e6
mov ecx, dword [ebp - 0x284]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58e9dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58eb03
push edx
push ecx
call fcn.0062706d
add esp, 8
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
push ecx
cmovae eax, dword [ebp - 0x230]
push dword [ebp - 0x220]
push eax
call fcn.0045ef00
add esp, 0x10
lea ecx, [ebp - 0x230]
mov esi, eax
call fcn.00448510
test esi, esi
mov esi, dword [ebp - 0x268]
sete byte [ebp - 0x261]
lea ecx, [ebp - 0x248]
call fcn.00448420
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x58eadb
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58ead1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58eafe
jmp 0x58ead1
push dword [ebp - 0x250]
cmp ecx, 0x10
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x260]
push eax
call fcn.0045e120
mov edx, dword [ebp - 0x24c]
cmp edx, 0x10
jb 0x58e9e6
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58e9dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x58eb03
jmp 0x58e9dc
push edx
push ecx
call fcn.0062706d
add esp, 8
mov al, byte [ebp - 0x261]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00646804
call fcn.00646804
int3