Function at 0x10001650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1368
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100e01f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x20], 0x10
jb 0x1000169d
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x50], ecx
jmp 0x100016a3
lea edx, [ebp + 0xc]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x38]
mov al, byte [edx]
mov byte [ebp - 0x31], al
add dword [ebp - 0x38], 1
cmp byte [ebp - 0x31], 0
jne 0x100016b2
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x5c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [ebp - 0x2c]
add edx, 1
push edx
call fcn.1007b221
add esp, 4
mov dword [ebp - 0x48], eax
cmp dword [ebp + 0x20], 0x10
jb 0x10001708
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
jmp 0x1000170e
lea edx, [ebp + 0xc]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.10002300
mov edx, dword [ebp - 0x2c]
add edx, 1
push edx
call fcn.1007b221
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.10001a20
mov ecx, dword [ebp - 0x2c]
add ecx, 1
push ecx
call fcn.1007b221
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x1000177a
cmp dword [ebp - 0x4c], 1
je 0x10001798
cmp dword [ebp - 0x4c], 2
je 0x100017ae
jmp 0x100017c2
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.10001bb0
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
jmp 0x100017c2
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.10001d50
jmp 0x100017c2
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.100020a0
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10003eb0
mov edx, dword [ebp - 0x48]
push edx
call fcn.1007b2b3
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
call fcn.1007b2b3
add esp, 4
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.1007b2b3
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.10003b00
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100030c0
mov edx, dword [ebp - 0x54]
or edx, 1
mov dword [ebp - 0x54], edx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10003b00
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.10003b00
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.1007ab33
mov esp, ebp
pop ebp
ret 0x1c