Function at 0x5d2960
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dddd9
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x806f14]
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.00682620
add esp, 0xc
mov byte [ebp - 0x261], 0
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x268], esi
test esi, esi
je 0x5d2bc6
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
je 0x5d2bbf
cmp word [ebp - 0x218], 0
je 0x5d2bbf
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.004bf860
add esp, 8
test al, al
je 0x5d2bb4
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.004aed20
push dword [ebp - 0x268]
lea ecx, [ebp - 0x260]
push dword [ebp - 0x26c]
push edi
call fcn.0049e680
mov ecx, dword [ebp - 0x24c]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x21c], ecx
jae 0x5d2bf6
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 0x5d2b66
mov ecx, dword [ebp - 0x284]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d2b5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d2c83
push edx
push ecx
call fcn.0066c54d
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.0049e980
add esp, 0x10
lea ecx, [ebp - 0x230]
mov esi, eax
call fcn.00489140
test esi, esi
mov esi, dword [ebp - 0x268]
sete byte [ebp - 0x261]
lea ecx, [ebp - 0x248]
call fcn.00489050
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x5d2c5b
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d2c51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d2c7e
jmp 0x5d2c51
push dword [ebp - 0x250]
cmp ecx, 0x10
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x260]
push eax
call fcn.0049f560
mov edx, dword [ebp - 0x24c]
cmp edx, 0x10
jb 0x5d2b66
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d2b5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d2c83
jmp 0x5d2b5c
push edx
push ecx
call fcn.0066c54d
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.0066c50c
mov esp, ebp
pop ebp
ret 0x1c
call fcn.0068bce4
call fcn.0068bce4
int3