Function at 0x4a7db0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cb99b
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x80236c]
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]
cmp esi, dword [eax + 4]
je 0x4a80a9
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0067fc00
add esp, 0xc
lea ebx, [esi + 0x24]
push dword [esi]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x35c], eax
test eax, eax
je 0x4a8097
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]
push eax
push dword [ebp - 0x35c]
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
je 0x4a808b
xor eax, eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7eb0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x254]
call fcn.0049d7d0
cmp dword [ebp - 0x240], 8
lea ecx, [ebp - 0x254]
mov eax, dword [ebp - 0x244]
cmovae ecx, dword [ebp - 0x254]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x254]
cmovae ecx, dword [ebp - 0x254]
push eax
push ecx
mov ecx, ebx
call fcn.004a51d0
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x358], ebx
jb 0x4a7f19
mov eax, dword [ebx]
mov dword [ebp - 0x358], eax
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x4a7f8e
push 0x100
lea eax, [ebp - 0x354]
push 0
push eax
call fcn.0067fc00
add esp, 0xc
mov ecx, 0x727714
nop dword [eax + eax]
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x354], 1
cmp ecx, 0x727716
jne 0x4a7f40
mov edx, dword [ebp - 0x358]
lea ecx, [edi - 1]
or eax, 0xffffffff
cmp ecx, eax
cmovb eax, ecx
movzx ecx, byte [eax + edx]
add eax, edx
mov cl, byte [ebp + ecx - 0x354]
test cl, cl
jne 0x4a7f8a
cmp eax, edx
je 0x4a7f8e
movzx ecx, byte [eax - 1]
dec eax
mov cl, byte [ebp + ecx - 0x354]
test cl, cl
je 0x4a7f76
sub eax, edx
jmp 0x4a7f91
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x4a802d
inc eax
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x360], 0xf
mov byte [ebp - 0x374], 0
cmp edi, eax
jb 0x4a80cc
sub edi, eax
or ecx, 0xffffffff
cmp edi, 0xffffffff
mov edx, ebx
cmovb ecx, edi
cmp dword [ebx + 0x14], 0x10
jb 0x4a7fd3
mov edx, dword [ebx]
push ecx
add eax, edx
lea ecx, [ebp - 0x374]
push eax
call fcn.0049d6d0
lea eax, [ebp - 0x374]
push eax
lea ecx, [ebx - 0x20]
call fcn.0049ea00
mov edx, dword [ebp - 0x360]
cmp edx, 0x10
jb 0x4a8048
mov ecx, dword [ebp - 0x374]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a8021
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a80c7
push edx
push ecx
call fcn.00669b1d
add esp, 8
jmp 0x4a8048
lea eax, [ebx - 0x20]
cmp eax, ebx
je 0x4a8048
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x4a803e
mov eax, dword [ebx]
push edi
push eax
lea ecx, [ebx - 0x20]
call fcn.0049d6d0
mov edx, dword [ebp - 0x240]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4a808b
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a8081
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a80c7
push edx
push ecx
call fcn.00669b1d
add esp, 8
push dword [ebp - 0x35c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add esi, 0x3c
add ebx, 0x3c
cmp esi, dword [eax + 4]
jne 0x4a7e05
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.00669adc
mov esp, ebp
pop ebp
ret 4
call fcn.006892c4
call fcn.004a8ac0
int3