Function at 0x10036858
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068f29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100368ad
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
push 1
push dword [ebp - 0x30]
push 0x2b0a
push dword [ebp - 0x34]
push 0x393d
call fcn.10036a6c
add esp, 0x14
jmp 0x10036a5b
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x10036922
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x10036903
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 4
jge 0x1003691d
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x4c]
call fcn.1001c2cb
or dword [eax], 0xffffffff
jmp 0x100368f8
jmp 0x10036a5b
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], 0x6982
mov dword [ebp - 0x58], 0x1000a830
cmp dword [ebp - 0x2c], 0x6a69
jle 0x100369d6
push 0
push 0x2240
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
and dword [ebp - 0x24], 0
jmp 0x1003695d
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6dbd
jge 0x100369d6
and dword [ebp - 0x1c], 0
jmp 0x10036973
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x432c
jge 0x100369d4
and dword [ebp - 0x20], 0
jmp 0x10036989
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4f64
jge 0x100369d2
and dword [ebp - 0x28], 0
jmp 0x1003699f
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x4c1e
jge 0x100369d0
mov eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub eax, edx
sub eax, dword [ebp - 0x28]
cdq
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
mov ecx, 0x106114d8
call fcn.1001bffc
jmp 0x10036998
jmp 0x10036982
jmp 0x1003696c
jmp 0x10036956
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x680d
jge 0x100369f6
mov edx, dword [ebp - 0x58]
mov ecx, 0x106114d8
call fcn.1001e507
jmp 0x10036a12
or dword [ebp - 4], 0xffffffff
jmp 0x10036a1c
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x10036a3e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 3
jge 0x10036a5b
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x64]
call fcn.1001c2cb
mov dword [eax], 0xb9b55bb2
jmp 0x10036a33
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret