Function at 0x10018b47
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
movzx eax, byte [ebp + 0x30]
test eax, eax
je 0x10018be3
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x10018b8d
push 0xd9
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x10018bde
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x10018bbe
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 3
jge 0x10018bde
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x88]
call fcn.10012f07
mov dword [eax], 9
jmp 0x10018bb3
jmp 0x10018e90
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x10018cf3
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x10018c78
mov dword [ebp - 0x44], 1
jmp 0x10018c7c
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
imul ecx, dword [ebp - 0x44]
cmp dword [eax], ecx
jle 0x10018c95
mov dword [ebp - 0x1c], 1
jmp 0x10018c99
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
sub eax, 0x950a
cmp eax, 0x31e468a0
je 0x10018cb1
mov dword [ebp - 0x24], 1
jmp 0x10018cb5
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
sub edx, dword [ecx]
add edx, 0xad43
cmp dword [eax], edx
jle 0x10018cdb
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10018cdb
mov dword [ebp - 0x2c], 1
jmp 0x10018cdf
and dword [ebp - 0x2c], 0
push 0
mov ecx, dword [ebp - 0x64]
call fcn.10012f07
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
jmp 0x10018e90
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10018d42
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jl 0x10018e90
mov dword [ebp - 0x9c], 0xe80d68f9
mov dword [ebp - 0xa4], 0x168f
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10012f07
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10012f07
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10012f07
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], eax
jne 0x10018df2
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10012f07
cmp dword [eax], 0xfffffffa
jl 0x10018dba
mov dword [ebp - 0x18], 1
jmp 0x10018dbe
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10012f07
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jl 0x10018ddb
mov dword [ebp - 0x20], 1
jmp 0x10018ddf
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jg 0x10018df2
mov dword [ebp - 0x28], 1
jmp 0x10018df6
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jle 0x10018e09
mov dword [ebp - 0x30], 1
jmp 0x10018e0d
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x30], eax
jge 0x10018e30
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10012f07
cmp dword [eax], 0
jne 0x10018e30
and dword [ebp - 0x38], 0
jmp 0x10018e37
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0xa4]
cmp dword [ebp - 0x38], eax
jge 0x10018e4b
mov dword [ebp - 0x40], 1
jmp 0x10018e4f
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
sub eax, 0x5f27a412
cmp eax, 0xfffffff9
jne 0x10018e65
mov dword [ebp - 0x48], 1
jmp 0x10018e69
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10012f07
cmp dword [eax], 0
je 0x10018e8b
jmp 0x10018d37
jmp 0x10018d37
mov esp, ebp
pop ebp
ret