Function at 0x40b140
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, 0x4b4cca
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x184], eax
mov eax, 0x40b5f0
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
dec eax
and eax, 0xffffffeb
add eax, 0x17
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], 0x409c80
call fcn.00433d70
cmp byte [ebp - 0x128], 0
je 0x40b536
mov dword [esp + 4], 0x409cf2
lea edx, [ebp - 0x128]
mov dword [esp], edx
call sub.msvcrt.dll_strcat
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x168]
mov dword [esp + 4], eax
mov eax, 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x1a0], eax
call fcn.00456350
mov dword [esp + 8], 0x4093c0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, 8
mov dword [esp], edx
mov dword [ebp - 0x1a0], eax
call fcn.00457c10
mov eax, dword [ebp + 8]
sub esp, 4
lea edx, [ebp - 0x158]
mov dword [esp + 4], edx
mov edi, 7
mov dword [ebp - 0x1a0], edi
mov dword [esp + 8], eax
lea eax, [ebp - 0x148]
mov dword [esp], eax
call fcn.00457b60
sub esp, 4
lea edx, [ebp - 0x148]
lea eax, [ebp - 0x138]
mov dword [esp + 8], 0x4093c2
mov esi, 6
mov dword [esp + 4], edx
mov dword [esp], eax
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
lea eax, [ebp - 0x168]
mov dword [esp], eax
mov eax, 0xffffffff
mov dword [ebp - 0x1a0], eax
call fcn.00456470
lea edx, [ebp - 0x138]
mov eax, 5
mov dword [esp], edx
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
jne 0x40b383
lea eax, [ebp - 0x138]
mov dword [esp], eax
mov eax, 0xffffffff
xor edi, edi
mov dword [ebp - 0x1a0], eax
call fcn.00456470
mov dword [ebp - 0x1ac], edi
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 - 0x128]
lea edx, [ebp - 0x178]
mov dword [esp + 4], eax
mov eax, 5
mov dword [esp], edx
mov dword [ebp - 0x1a0], eax
call fcn.00456350
mov dword [esp + 8], 0x4093c0
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, 4
mov dword [esp], edx
mov dword [ebp - 0x1a0], eax
call fcn.00457c10
mov eax, dword [ebp + 8]
sub esp, 4
lea edx, [ebp - 0x148]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x158]
mov dword [esp], eax
mov eax, 3
mov dword [ebp - 0x1a0], eax
call fcn.00457b60
sub esp, 4
lea edx, [ebp - 0x158]
lea eax, [ebp - 0x168]
mov dword [esp + 8], 0x40abcc
mov edi, 2
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x1a0], edi
call fcn.00457c10
mov eax, dword [ebp - 0x168]
sub esp, 4
mov edx, dword [ebp - 0x138]
inc dword [eax]
mov dword [ebp - 0x1b4], edx
mov eax, dword [edx]
dec eax
mov dword [edx], eax
test eax, eax
jne 0x40b46d
mov dword [esp], edx
mov esi, 1
mov dword [ebp - 0x1a0], esi
call fcn.00456230
mov eax, dword [ebp - 0x1b4]
mov dword [esp], eax
call fcn.00475b80
mov eax, dword [ebp - 0x168]
mov ecx, 2
mov dword [ebp - 0x1a0], ecx
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 0x40b50d
lea edx, [ebp - 0x138]
mov dword [esp], edx
jmp 0x40b34f
lea eax, [ebp - 0x138]
mov esi, 0xffffffff
mov ebx, 0x412
mov dword [esp], eax
mov dword [ebp - 0x1a0], esi
call fcn.00456470
mov dword [ebp - 0x1ac], ebx
jmp 0x40b367
mov dword [esp + 4], 2
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], 0x409cc0
call fcn.00433d70
jmp 0x40b20c