Function at 0x4a9ad0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce34b
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x806f14]
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 0x4a9dc9
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00682620
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 0x4a9db7
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 0x4a9dab
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 0x4a9bd0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x254]
call fcn.0049f660
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.004a6cf0
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x358], ebx
jb 0x4a9c39
mov eax, dword [ebx]
mov dword [ebp - 0x358], eax
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x4a9cae
push 0x100
lea eax, [ebp - 0x354]
push 0
push eax
call fcn.00682620
add esp, 0xc
mov ecx, 0x72b92c
nop dword [eax + eax]
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x354], 1
cmp ecx, 0x72b92e
jne 0x4a9c60
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 0x4a9caa
cmp eax, edx
je 0x4a9cae
movzx ecx, byte [eax - 1]
dec eax
mov cl, byte [ebp + ecx - 0x354]
test cl, cl
je 0x4a9c96
sub eax, edx
jmp 0x4a9cb1
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x4a9d4d
inc eax
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x360], 0xf
mov byte [ebp - 0x374], 0
cmp edi, eax
jb 0x4a9dec
sub edi, eax
or ecx, 0xffffffff
cmp edi, 0xffffffff
mov edx, ebx
cmovb ecx, edi
cmp dword [ebx + 0x14], 0x10
jb 0x4a9cf3
mov edx, dword [ebx]
push ecx
add eax, edx
lea ecx, [ebp - 0x374]
push eax
call fcn.0049f560
lea eax, [ebp - 0x374]
push eax
lea ecx, [ebx - 0x20]
call fcn.004a0520
mov edx, dword [ebp - 0x360]
cmp edx, 0x10
jb 0x4a9d68
mov ecx, dword [ebp - 0x374]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a9d41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a9de7
push edx
push ecx
call fcn.0066c54d
add esp, 8
jmp 0x4a9d68
lea eax, [ebx - 0x20]
cmp eax, ebx
je 0x4a9d68
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x4a9d5e
mov eax, dword [ebx]
push edi
push eax
lea ecx, [ebx - 0x20]
call fcn.0049f560
mov edx, dword [ebp - 0x240]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4a9dab
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a9da1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a9de7
push edx
push ecx
call fcn.0066c54d
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 0x4a9b25
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.0066c50c
mov esp, ebp
pop ebp
ret 4
call fcn.0068bce4
call fcn.004aa7e0
int3