Function at 0x101b1d70
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022fcf0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x28]
call fcn.10002570
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x101b1de0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.10006390
mov ecx, dword [ebp - 0x44]
or ecx, 1
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002520
mov eax, dword [ebp + 8]
jmp 0x101b20a5
call fcn.101b44d0
movzx edx, al
test edx, edx
je 0x101b1f7a
lea ecx, [ebp - 0x60]
call fcn.10006120
mov byte [ebp - 4], 1
mov byte [ebp - 0x45], 0
lea eax, [ebp - 0x45]
push eax
push 0x104
lea ecx, [ebp - 0x60]
call fcn.101b29f0
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x101b1e6a
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.10006390
mov eax, dword [ebp - 0x44]
or eax, 1
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10081db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002520
mov eax, dword [ebp + 8]
jmp 0x101b20a5
push 0x104
lea ecx, [ebp - 0x60]
call fcn.10006660
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x101b1ec7
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.10006390
mov ecx, dword [ebp - 0x44]
or ecx, 1
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10081db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002520
mov eax, dword [ebp + 8]
jmp 0x101b20a5
lea ecx, [ebp - 0x60]
call fcn.10006660
push eax
lea ecx, [ebp - 0x40]
call fcn.100063d0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.101b3ab0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x101b1efc
mov dword [ebp - 0x54], 1
jmp 0x101b1f03
mov dword [ebp - 0x54], 0
mov dl, byte [ebp - 0x54]
mov byte [ebp - 0x46], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10002520
movzx eax, byte [ebp - 0x46]
test eax, eax
je 0x101b1f5f
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.10006390
mov eax, dword [ebp - 0x44]
or eax, 1
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10081db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002520
mov eax, dword [ebp + 8]
jmp 0x101b20a5
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.10081db0
jmp 0x101b207e
lea ecx, [ebp - 0x6c]
call fcn.10006120
mov byte [ebp - 4], 3
mov byte [ebp - 0x47], 0
lea edx, [ebp - 0x47]
push edx
push 0x104
lea ecx, [ebp - 0x6c]
call fcn.101b29f0
mov dword [ebp - 0x50], 0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x101b1ff4
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10006390
mov edx, dword [ebp - 0x44]
or edx, 1
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.10081db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002520
mov eax, dword [ebp + 8]
jmp 0x101b20a5
mov dword [ebp - 0x70], 0x104
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10006660
push eax
push 0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
jne 0x101b2057
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.10006390
mov ecx, dword [ebp - 0x44]
or ecx, 1
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.10081db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002520
mov eax, dword [ebp + 8]
jmp 0x101b20a5
lea ecx, [ebp - 0x6c]
call fcn.10006660
push eax
lea ecx, [ebp - 0x28]
call fcn.100024f0
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.10081db0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.10006390
mov ecx, dword [ebp - 0x44]
or ecx, 1
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002520
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret