Function at 0x100149a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d750
push 0x10017860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffd58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, 0x3f
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + 2], dx
cmp dword [ebp + 8], 0
je 0x10014f43
movzx ecx, byte [0x10030364]
test ecx, ecx
jne 0x10014a1a
push 0
push 0x1002a844
call fcn.100065e0
mov dword [0x10030360], eax
mov byte [0x10030364], 1
cmp dword [0x10030360], 0
je 0x10014a83
mov edx, dword [ebp + 8]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10014a51
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10014a7e
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [0x10030360]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10014f43
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x10014f43
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1000a3d0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x3c], 0
jne 0x10014add
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000bb00
test eax, eax
je 0x10014add
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1000a460
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x3c], 0
jne 0x10014aef
mov ecx, dword [ebp - 0x38]
or ecx, dword [ebp - 0x34]
je 0x10014f39
mov byte [ebp - 0x41], 0
xor edx, edx
mov word [ebp - 0x40], dx
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x34]
je 0x10014caf
lea ecx, [ebp - 0x68]
push ecx
push 0
push 8
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x38]
add eax, 0x20
mov ecx, dword [ebp - 0x34]
adc ecx, 0
push ecx
push eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000a4c0
test eax, eax
je 0x10014caa
cmp dword [ebp - 0x68], 8
jne 0x10014caa
cmp dword [ebp - 0x64], 0
jne 0x10014caa
mov eax, dword [ebp - 0x50]
or eax, dword [ebp - 0x4c]
je 0x10014caa
lea ecx, [ebp - 0x68]
push ecx
push 0
push 4
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x50]
add eax, 8
mov ecx, dword [ebp - 0x4c]
adc ecx, 0
push ecx
push eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000a4c0
test eax, eax
je 0x10014caa
cmp dword [ebp - 0x68], 4
jne 0x10014caa
cmp dword [ebp - 0x64], 0
jne 0x10014caa
lea eax, [ebp - 0x68]
push eax
push 0
push 0x10
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x50]
add edx, 0x60
mov eax, dword [ebp - 0x4c]
adc eax, 0
push eax
push edx
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1000a4c0
test eax, eax
je 0x10014caa
cmp dword [ebp - 0x68], 0x10
jne 0x10014caa
cmp dword [ebp - 0x64], 0
jne 0x10014caa
movzx edx, word [ebp - 0x60]
test edx, edx
je 0x10014caa
mov eax, dword [ebp - 0x58]
or eax, dword [ebp - 0x54]
je 0x10014caa
movzx ecx, word [ebp - 0x60]
mov edx, dword [ebp + 0x10]
shl edx, 1
cmp ecx, edx
jb 0x10014c1e
movzx eax, word [ebp - 0x60]
cdq
add eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
adc ecx, edx
mov edx, dword [ebp + 0x10]
lea edx, [edx + edx - 2]
xor esi, esi
sub eax, edx
sbb ecx, esi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [eax + eax - 2]
mov word [ebp - 0x60], cx
mov edx, dword [ebp - 0x48]
and edx, 1
jne 0x10014c38
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
adc ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x68]
push edx
movzx eax, word [ebp - 0x60]
cdq
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1000a4c0
test eax, eax
je 0x10014c8f
movzx eax, word [ebp - 0x60]
cdq
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2ac], edx
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x2b0]
jne 0x10014c8f
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x2ac]
jne 0x10014c8f
mov dword [ebp - 0x2b4], 1
jmp 0x10014c99
mov dword [ebp - 0x2b4], 0
mov al, byte [ebp - 0x2b4]
mov byte [ebp - 0x41], al
mov cx, word [ebp - 0x60]
mov word [ebp - 0x40], cx
jmp 0x10014de1
lea edx, [ebp - 0x7c]
push edx
push 4
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10014de1
cmp dword [ebp - 0x7c], 4
jne 0x10014de1
cmp dword [ebp - 0x70], 0
je 0x10014de1
lea eax, [ebp - 0x7c]
push eax
push 4
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x70]
add edx, 8
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10014de1
cmp dword [ebp - 0x7c], 4
jne 0x10014de1
lea ecx, [ebp - 0x7c]
push ecx
push 8
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x70]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10014de1
cmp dword [ebp - 0x7c], 8
jne 0x10014de1
movzx edx, word [ebp - 0x78]
test edx, edx
je 0x10014de1
cmp dword [ebp - 0x74], 0
je 0x10014de1
movzx eax, word [ebp - 0x78]
mov ecx, dword [ebp + 0x10]
shl ecx, 1
cmp eax, ecx
jb 0x10014d81
movzx edx, word [ebp - 0x78]
add edx, dword [ebp - 0x74]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + eax - 2]
sub edx, ecx
mov dword [ebp - 0x74], edx
mov edx, dword [ebp + 0x10]
lea eax, [edx + edx - 2]
mov word [ebp - 0x78], ax
mov ecx, dword [ebp - 0x6c]
and ecx, 1
jne 0x10014d92
mov edx, dword [ebp - 0x74]
add edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
lea eax, [ebp - 0x7c]
push eax
movzx ecx, word [ebp - 0x78]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10014dc6
movzx edx, word [ebp - 0x78]
cmp dword [ebp - 0x7c], edx
jne 0x10014dc6
mov dword [ebp - 0x2b8], 1
jmp 0x10014dd0
mov dword [ebp - 0x2b8], 0
mov al, byte [ebp - 0x2b8]
mov byte [ebp - 0x41], al
mov cx, word [ebp - 0x78]
mov word [ebp - 0x40], cx
movzx edx, byte [ebp - 0x41]
test edx, edx
je 0x10014f39
movzx eax, word [ebp - 0x40]
cdq
sub eax, edx
sar eax, 1
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0xc]
mov cx, word [eax + 8]
mov word [ebp - 0x80], cx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax + 8], dx
mov ecx, dword [ebp + 0xc]
push ecx
push str.___
call fcn.10017035
add esp, 8
mov dword [ebp - 0x84], eax
mov edx, dword [ebp + 0xc]
mov ax, word [ebp - 0x80]
mov word [edx + 8], ax
cmp dword [ebp - 0x84], 0
jne 0x10014e5e
movzx ecx, word [ebp - 0x40]
sub ecx, 6
push ecx
mov edx, dword [ebp + 0xc]
add edx, 8
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10018010
add esp, 0xc
jmp 0x10014f32
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx + 0x18]
mov word [ebp - 0x80], dx
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0x18], ax
mov edx, dword [ebp + 0xc]
push edx
push str.SystemRoot_
call fcn.10017035
add esp, 8
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
mov cx, word [ebp - 0x80]
mov word [eax + 0x18], cx
cmp dword [ebp - 0x84], 0
jne 0x10014f32
push 0x104
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x294], eax
movzx eax, word [ebp - 0x40]
shr eax, 1
mov ecx, dword [ebp - 0x294]
lea edx, [eax + ecx - 0xa]
cmp edx, dword [ebp + 0x10]
jb 0x10014ef2
mov eax, dword [ebp + 0x10]
add eax, 0xa
sub eax, dword [ebp - 0x294]
shl eax, 1
mov word [ebp - 0x40], ax
movzx eax, word [ebp - 0x40]
cdq
sub eax, edx
sar eax, 1
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax*2], cx
movzx eax, word [ebp - 0x40]
sub eax, 0x14
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x16
push ecx
mov edx, dword [ebp - 0x294]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx*2]
push ecx
call fcn.10018010
add esp, 0xc
mov edx, dword [ebp - 0x294]
shl edx, 1
push edx
lea eax, [ebp - 0x290]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10018010
add esp, 0xc
mov dword [ebp - 0x20], 1
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
jne 0x10015116
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10015116
mov dword [ebp - 4], 0
push 0
push 0x1002a828
call fcn.10006650
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], 0
lea ecx, [ebp - 0x29c]
push ecx
push 0
push 0
push 5
call dword [ebp - 0x2a0]
mov dword [ebp - 0x298], 0
cmp dword [ebp - 0x29c], 0
jne 0x10015011
mov dword [ebp - 0x29c], 0x10000
mov edx, dword [ebp - 0x29c]
shl edx, 1
mov dword [ebp - 0x29c], edx
mov eax, dword [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x29c]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x298], eax
push 0
mov edx, dword [ebp - 0x29c]
push edx
mov eax, dword [ebp - 0x298]
push eax
push 5
call dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0
je 0x1001500f
cmp dword [ebp - 0x29c], 0x400000
jne 0x10014fac
jmp 0x10015052
mov ecx, dword [ebp - 0x29c]
shl ecx, 1
mov dword [ebp - 0x29c], ecx
mov edx, dword [ebp - 0x29c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x298], eax
push 0
mov eax, dword [ebp - 0x29c]
push eax
mov ecx, dword [ebp - 0x298]
push ecx
push 5
call dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0
jne 0x100150e4
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x2a8], edx
mov eax, 1
test eax, eax
je 0x100150e4
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ecx + 0x44]
cmp edx, dword [ebp + 8]
jne 0x100150c1
mov eax, dword [ebp - 0x2a8]
cmp dword [eax + 0x3c], 0
je 0x100150aa
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1001a4db
add esp, 0xc
jmp 0x100150bf
push str._System_Process_
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.1001a4db
add esp, 0xc
jmp 0x100150e4
mov ecx, dword [ebp - 0x2a8]
cmp dword [ecx], 0
jne 0x100150ce
jmp 0x100150e4
mov edx, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x2a8]
add eax, dword [edx]
mov dword [ebp - 0x2a8], eax
jmp 0x1001506b
mov ecx, dword [ebp - 0x298]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xffffffff
jmp 0x10015116
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10