Function at 0x40abe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov eax, 0x473640
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1bc
mov dword [ebp - 0x18c], eax
mov eax, 0x4b4cb6
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x184], eax
mov eax, 0x40b070
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x1a4]
mov dword [esp], eax
mov dword [ebp - 0x17c], esp
call fcn.0047f180
cmp dword [0x4cfdd0], 0x404
lea edx, [ebp - 0x1a8]
mov dword [esp + 8], edx
mov dword [esp], 0
sete al
test al, 1
setne al
movzx eax, al
lea eax, [eax + eax*8 + 0x10]
mov dword [esp + 4], eax
mov eax, 0xffffffff
mov dword [ebp - 0x1a0], eax
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
sub esp, 0xc
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a8]
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
sub esp, 8
lea edx, [ebp - 0x128]
mov dword [esp + 4], edx
mov dword [esp], 0x40a000
call fcn.00433d70
cmp byte [ebp - 0x128], 0
je 0x40afb2
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x128]
mov dword [esp], eax
mov eax, 0xffffffff
mov dword [esp + 4], edx
mov dword [ebp - 0x1a0], eax
call fcn.00456350
mov dword [esp + 8], 0x4093c0
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x168]
mov dword [esp], eax
mov eax, 8
mov dword [esp + 4], edx
mov dword [ebp - 0x1a0], eax
call fcn.00457c10
mov edx, dword [ebp + 8]
sub esp, 4
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov edi, 7
mov dword [ebp - 0x1a0], edi
mov dword [esp + 8], edx
lea edx, [ebp - 0x148]
mov dword [esp], edx
call fcn.00457b60
sub esp, 4
lea eax, [ebp - 0x148]
lea edx, [ebp - 0x138]
mov dword [esp + 8], 0x4093c2
mov esi, 6
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x1a0], esi
call fcn.00457c10
sub esp, 4
lea eax, [ebp - 0x148]
mov ecx, 7
mov dword [esp], eax
mov dword [ebp - 0x1a0], ecx
call fcn.00456470
lea eax, [ebp - 0x158]
mov dword [esp], eax
mov eax, 8
mov dword [ebp - 0x1a0], eax
call fcn.00456470
mov eax, 0xffffffff
lea edx, [ebp - 0x168]
mov dword [ebp - 0x1a0], eax
mov dword [esp], edx
call fcn.00456470
lea eax, [ebp - 0x138]
mov dword [esp], eax
mov eax, 5
mov dword [ebp - 0x1a0], eax
call fcn.00457590
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll__access
test eax, eax
je 0x40af4f
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
lea eax, [ebp - 0x178]
mov dword [esp], eax
mov eax, 5
mov dword [ebp - 0x1a0], eax
call fcn.00456350
mov dword [esp + 8], 0x4093c0
lea eax, [ebp - 0x148]
lea edx, [ebp - 0x178]
mov dword [esp], eax
mov eax, 4
mov dword [esp + 4], edx
mov dword [ebp - 0x1a0], eax
call fcn.00457c10
mov edx, dword [ebp + 8]
sub esp, 4
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov edi, 3
mov dword [ebp - 0x1a0], edi
mov dword [esp + 8], edx
lea edx, [ebp - 0x158]
mov dword [esp], edx
call fcn.00457b60
sub esp, 4
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x168]
mov dword [esp + 8], 0x40abcc
mov esi, 2
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x1a0], esi
call fcn.00457c10
mov eax, dword [ebp - 0x168]
sub esp, 4
inc dword [eax]
mov eax, dword [ebp - 0x138]
mov edx, eax
mov dword [ebp - 0x1b4], eax
mov eax, dword [eax]
dec eax
mov dword [edx], eax
test eax, eax
jne 0x40aebd
mov dword [esp], edx
mov ebx, 1
mov dword [ebp - 0x1a0], ebx
call fcn.00456230
mov eax, dword [ebp - 0x1b4]
mov dword [esp], eax
call fcn.00475b80
mov eax, dword [ebp - 0x168]
mov edx, 2
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x168]
mov dword [esp], eax
call fcn.00456470
lea eax, [ebp - 0x158]
mov dword [esp], eax
mov eax, 3
mov dword [ebp - 0x1a0], eax
call fcn.00456470
lea eax, [ebp - 0x148]
mov dword [esp], eax
mov eax, 4
mov dword [ebp - 0x1a0], eax
call fcn.00456470
lea eax, [ebp - 0x178]
mov dword [esp], eax
mov eax, 5
mov dword [ebp - 0x1a0], eax
call fcn.00456470
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.00457590
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll__access
test eax, eax
jne 0x40af8c
lea edx, [ebp - 0x138]
mov edi, 0xffffffff
xor esi, esi
mov dword [esp], edx
mov dword [ebp - 0x1a0], edi
call fcn.00456470
mov dword [ebp - 0x1ac], esi
lea eax, [ebp - 0x1a4]
mov dword [esp], eax
call fcn.0047f230
mov eax, dword [ebp - 0x1ac]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x138]
mov ebx, 0xffffffff
mov dword [esp], eax
mov dword [ebp - 0x1a0], ebx
call fcn.00456470
mov ecx, 0x411
mov dword [ebp - 0x1ac], ecx
jmp 0x40af70
mov dword [esp + 4], 0x10
lea eax, [ebp - 0x1a8]
mov dword [esp + 8], eax
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov eax, dword [ebp - 0x1a8]
sub esp, 0xc
lea edx, [ebp - 0x128]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
sub esp, 8
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov dword [esp], 0x40a040
call fcn.00433d70
jmp 0x40aca9