Function at 0x1002be10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061b3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x9c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1002c00b
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x1002bf33
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0xffffffff
jne 0x1002becc
mov dword [ebp - 0x24], 1
jmp 0x1002bed0
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jle 0x1002bee3
mov dword [ebp - 0x2c], 1
jmp 0x1002bee7
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
jne 0x1002bf06
mov eax, 0x1cd4
test eax, eax
jne 0x1002bf06
and dword [ebp - 0x34], 0
jmp 0x1002bf0d
mov dword [ebp - 0x34], 1
cmp dword [ebp - 0x34], 0xffffffff
jg 0x1002bf1c
mov dword [ebp - 0x30], 1
jmp 0x1002bf20
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
sub eax, dword [ebp - 0x30]
dec eax
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
jmp 0x1002c009
mov dword [ebp - 0x38], 0x5f19
mov dword [ebp - 0x68], 0x10009dec
cmp dword [ebp - 0x38], 0x623e
jle 0x1002bfc0
and dword [ebp - 0x18], 0
jmp 0x1002bf57
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x6d08
jge 0x1002bfc0
and dword [ebp - 0x1c], 0
jmp 0x1002bf6d
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x57f
jge 0x1002bfbe
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x1c]
mov eax, edx
cdq
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
lea ecx, [ebp - 0xac]
call fcn.1000d1e0
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
call fcn.1000fdfe
push eax
call fcn.1004bc16
pop ecx
lea ecx, [ebp - 0xac]
call fcn.1000fdf4
jmp 0x1002bf66
jmp 0x1002bf50
push 0x2112
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
and dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0x5bdb
jge 0x1002bfe3
push dword [ebp - 0x68]
call fcn.1004bc16
pop ecx
jmp 0x1002bfff
or dword [ebp - 4], 0xffffffff
jmp 0x1002c009
jmp 0x1002c081
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x20], 0
jmp 0x1002c027
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x1002c03d
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x94], 0x62fd
jmp 0x1002c020
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1002c056
push 0x2112
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x94]
inc eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x94], eax
push dword [ebp - 0x70]
push dword [ebp - 0x78]
push 0
call fcn.10034c63
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret