Function at 0x1003a6e0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c5445
mov eax, dword fs:[0]
push eax
sub esp, 0x5b4
mov eax, dword [0x1022b584]
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 esi, ecx
mov dword [ebp - 0x488], esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x490], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x484], edi
mov dword [ebp - 0x48c], 0
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003a8bf
push 0x16
push str.Commonprocess_info.cc
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], 0xf
mov byte [ebp - 0x480], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], 1
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0xf
mov byte [ebp - 0x468], 0
call fcn.1000cf00
mov byte [ebp - 4], 2
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x5c0]
push 0xcd
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.10007f90
mov esi, eax
push str.start_to_get_work_dir..
push esi
mov byte [ebp - 4], 3
call fcn.10008dd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x5c0]
call fcn.10008e90
mov edx, dword [ebp - 0x454]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1003a83f
mov ecx, dword [ebp - 0x468]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a835
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ab8e
push edx
push ecx
call fcn.101799c0
add esp, 8
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0xf
mov byte [ebp - 0x468], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1003a898
mov ecx, dword [ebp - 0x480]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a88e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ab93
push edx
push ecx
call fcn.101799c0
add esp, 8
mov esi, dword [ebp - 0x488]
mov edi, dword [ebp - 0x484]
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0xf
mov byte [ebp - 0x480], 0
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1003ab98
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x48c], 1
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x1003aa15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x484], eax
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003ab6e
push 0x16
push str.Commonprocess_info.cc
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 4
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.1000cf00
mov byte [ebp - 4], 5
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x528]
push 0xd5
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.10007f90
mov esi, eax
push str.get_process_image_file_fail_:
push esi
mov byte [ebp - 4], 6
call fcn.10008dd0
add esp, 8
mov ecx, esi
push dword [ebp - 0x484]
call fcn.1002c180
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x528]
call fcn.10008e90
lea ecx, [ebp - 0x438]
call fcn.10007310
lea ecx, [ebp - 0x450]
call fcn.10007310
jmp 0x1003ab6e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x218]
mov ecx, esi
push 0x104
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10039db0
test eax, eax
jne 0x1003ab46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x484], eax
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003ab6e
push 0x16
push str.Commonprocess_info.cc
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 7
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.1000cf00
mov byte [ebp - 4], 8
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x528]
push 0xdf
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.10007f90
mov esi, eax
push str.change_to_nt_path_fail_:
push esi
mov byte [ebp - 4], 9
call fcn.10008dd0
add esp, 8
mov ecx, esi
push dword [ebp - 0x484]
call fcn.1002c180
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x528]
call fcn.10008e90
lea ecx, [ebp - 0x450]
call fcn.10007310
lea ecx, [ebp - 0x438]
call fcn.10007310
jmp 0x1003ab6e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ab50
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.1000f6e0
mov eax, ebx
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.101799ce
mov esp, ebp
pop ebp
ret 8
call fcn.10190cce
call fcn.10190cce
push 0x80004005
call fcn.10009b10
int3