Function at 0x1002a7ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1002a965
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0xfffffffb
jmp 0x1002a82e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xc
je 0x1002a963
mov dword [ebp - 0xc], 7
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1002a8f7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx]
mov ecx, dword [ebp - 8]
imul eax, dword [ecx]
cmp eax, dword [ebp - 0xc]
je 0x1002a86e
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x1002a86e
and dword [ebp - 0x18], 0
jmp 0x1002a875
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
je 0x1002a888
mov dword [ebp - 0x1c], 1
jmp 0x1002a88c
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x1c], eax
jge 0x1002a89d
mov dword [ebp - 0x20], 1
jmp 0x1002a8a1
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x20], eax
jg 0x1002a8b2
mov dword [ebp - 0x2c], 1
jmp 0x1002a8b6
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
imul eax, dword [ebp - 0x2c]
neg eax
je 0x1002a8e5
push 4
pop eax
test eax, eax
je 0x1002a8e5
mov dword [ebp - 0x14], 1
jmp 0x1002a8e9
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0
jne 0x1002a906
mov eax, 0xa5f0
test eax, eax
jne 0x1002a906
and dword [ebp - 0x50], 0
jmp 0x1002a90d
mov dword [ebp - 0x50], 1
mov eax, 0xa84b
test eax, eax
jne 0x1002a91f
mov dword [ebp - 0x34], 1
jmp 0x1002a923
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jne 0x1002a939
mov dword [ebp - 0x38], 1
jmp 0x1002a93d
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002a95e
push 0x2aa
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1002a823
jmp 0x1002a9b0
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x1002a993
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], 2
jge 0x1002a9b0
mov eax, dword [ebp - 0x10]
push dword [eax]
mov ecx, dword [ebp - 0x60]
call fcn.100171a5
mov dword [eax], 0x5b57
jmp 0x1002a988
mov esp, ebp
pop ebp
ret