Function at 0x40a5a3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.00467710
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a5f6
push ebx
call fcn.004660bb
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x40a60b
mov dword [ebp + 8], 3
cmp dword [ebp + 8], 1
jl 0x40a626
cmp dword [ebp + 8], 8
jg 0x40a626
mov eax, 1
jmp 0x40a62b
mov eax, 0
test eax, eax
je 0x40a6ee
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x40a640
cmp eax, 9
jl 0x40a64d
push 9
call fcn.004660af
add esp, 4
dec eax
call 0x40a653
pop ebx
add ebx, dword [eax*4 + 0x4b1762]
jmp ebx
cmp dword [ebp + 8], 9
jne 0x40a736
mov dword [ebp - 0x10], esp
push 0x104
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40a71f
push 6
call fcn.004660af
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x40a810
cmp dword [ebp + 8], 0xa
jne 0x40a77e
mov dword [ebp - 0x10], esp
push 0x104
push dword [ebp - 4]
call dword [0x4c0d24]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40a767
push 6
call fcn.004660af
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x40a810
cmp dword [ebp + 8], 0xb
jne 0x40a7c6
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40a7af
push 6
call fcn.004660af
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x40a810
cmp dword [ebp + 8], 0xc
jne 0x40a810
mov dword [ebp - 0x10], esp
push 0
push 0x20
push dword [ebp - 4]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40a801
push 6
call fcn.004660af
add esp, 4
test eax, eax
je 0x40a810
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x40a8d8
push 0x80000301
push 0
push 1
push SysStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a839
mov eax, 0x4b101f
push eax
push 2
mov ebx, 0x138
call fcn.00466ca0
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0x4b1455
push dword [ebp - 0x10]
call fcn.00402086
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40a87d
push ebx
call fcn.004660bb
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x40a8b7
push 0x4b1455
push dword [ebp - 4]
mov ecx, 2
call fcn.004022ec
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a8b3
push ebx
call fcn.004660bb
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40a8d3
push eax
mov ebx, eax
call fcn.0040201b
inc eax
push eax
call fcn.004660a9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40a8e2
mov eax, 0x4b101f
jmp 0x40a8e2
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a8f3
push ebx
call fcn.004660bb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8