Function at 0x100319b0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10134448
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x10167b84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x298], 0
push 0x10139f4c
lea ecx, [ebp - 0x284]
call fcn.10015730
mov dword [ebp - 4], 0
lea eax, [ebp - 0x280]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x2c4], eax
mov edx, dword [ebp - 0x280]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
je 0x10031bc5
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.1010db20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x27c]
push edx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10031a89
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x284]
call fcn.10015ac0
jmp 0x10031ba9
call fcn.100e2550
mov dword [ebp - 0x288], eax
push 1
mov ecx, dword [ebp - 0x288]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x288]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 0x2a0], al
cmp byte [ebp - 0x2a0], 1
je 0x10031abd
jmp 0x10031ba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2a4], eax
push 0x10138874
lea ecx, [ebp - 0x248]
call fcn.1000a760
mov byte [ebp - 4], 1
push 0x1013887c
lea ecx, [ebp - 0x230]
call fcn.1000a760
mov byte [ebp - 4], 2
call fcn.100e2550
mov dword [ebp - 0x28c], eax
lea ecx, [ebp - 0x2a4]
push ecx
push str._failed.
lea edx, [ebp - 0x280]
push edx
push str.getAppPathByWnd_GetProcessImageFileName
push 0x17c
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x35c]
call fcn.1000afc0
mov dword [ebp - 0x2a8], eax
mov edx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2ac], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2ac]
call fcn.10007450
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.10007450
mov ecx, eax
call fcn.10007490
push eax
mov eax, dword [ebp - 0x28c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28c]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x35c]
call fcn.1000c0c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.1000bc00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.1000bc00
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x27c], 0
jmp 0x10031ce5
call fcn.100e2550
mov dword [ebp - 0x290], eax
push 1
mov edx, dword [ebp - 0x290]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x290]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 0x2b0], al
cmp byte [ebp - 0x2b0], 1
je 0x10031bf9
jmp 0x10031ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2b4], eax
push 0x10138874
lea ecx, [ebp - 0x278]
call fcn.1000a760
mov byte [ebp - 4], 4
push 0x1013887c
lea ecx, [ebp - 0x260]
call fcn.1000a760
mov byte [ebp - 4], 5
call fcn.100e2550
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0x2b4]
push eax
push str._failed.
lea ecx, [ebp - 0x280]
push ecx
push str.getAppPathByWnd_OpenProcess
push 0x189
lea edx, [ebp - 0x278]
push edx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x3f4]
call fcn.1000afc0
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2bc]
call fcn.10007450
mov ecx, eax
call fcn.10007490
mov ecx, eax
call fcn.10007450
mov ecx, eax
call fcn.10007490
push eax
mov edx, dword [ebp - 0x294]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x294]
mov edx, dword [eax + 0x1c]
call edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3f4]
call fcn.1000c0c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x260]
call fcn.1000bc00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.1000bc00
lea ecx, [ebp - 0x284]
call fcn.10010af0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x29c]
call fcn.10015730
mov byte [ebp - 4], 7
lea eax, [ebp - 0x29c]
push eax
mov ecx, dword [ebp + 8]
call fcn.10015710
mov ecx, dword [ebp - 0x298]
or ecx, 1
mov dword [ebp - 0x298], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x29c]
call fcn.100159b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.100159b0
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.100faee9
mov esp, ebp
pop ebp
ret 8