Function at 0x1001db2b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push esi
movzx eax, byte [ebp + 0x34]
test eax, eax
je 0x1001db87
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xfffffffe
jmp 0x1001db5f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 4
jne 0x1001db82
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001db80
push 0xdb8
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1001db54
jmp 0x1001ddf7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10018274
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x70]
cmp dword [eax], 0x718ce682
jne 0x1001dc75
mov dword [ebp - 0x44], 1
jmp 0x1001dc79
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0
jne 0x1001dc88
mov dword [ebp - 0x24], 1
jmp 0x1001dc8c
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x78]
mov esi, dword [eax]
add esi, dword [ebp - 0x24]
push 0
mov ecx, dword [ebp - 0x40]
call fcn.10018274
cmp esi, dword [eax]
jl 0x1001dcab
mov dword [ebp - 0x3c], 1
jmp 0x1001dcaf
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 1
jg 0x1001dcbe
mov dword [ebp - 0x18], 1
jmp 0x1001dcc2
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jle 0x1001dcd5
mov dword [ebp - 0x4c], 1
jmp 0x1001dcd9
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0xfffffff9
jle 0x1001dce8
mov dword [ebp - 0x80], 1
jmp 0x1001dcec
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1001dd10
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
jne 0x1001dd10
and dword [ebp - 0x1c], 0
jmp 0x1001dd17
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jge 0x1001dd2d
mov dword [ebp - 0x20], 1
jmp 0x1001dd31
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10018274
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax - 7]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10018274
cmp dword [eax], esi
jge 0x1001dd6b
mov dword [ebp - 0x30], 1
jmp 0x1001dd6f
and dword [ebp - 0x30], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.10018274
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax]
jge 0x1001dd89
mov dword [ebp - 0x38], 1
jmp 0x1001dd8d
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
add eax, 8
jne 0x1001dda2
push 5
pop eax
test eax, eax
jne 0x1001dda2
and dword [ebp - 0x14], 0
jmp 0x1001dda9
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10018274
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0
jae 0x1001ddca
mov dword [ebp - 0x48], 1
jmp 0x1001ddce
and dword [ebp - 0x48], 0
push 0
mov ecx, dword [ebp - 0x40]
call fcn.10018274
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [eax]
je 0x1001dde8
mov dword [ebp - 0x50], 1
jmp 0x1001ddec
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x50]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret