Function at 0x408fa0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab250
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x6360c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x23c], edi
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 0x23c], edi
push 0
push eax
mov dword [ebp - 0x240], 0
call fcn.00477510
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x409225
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x240]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
je 0x409225
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
push 0x62985c
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
call fcn.00401950
lea edi, [ebp - 0x220]
mov dword [ebp - 4], 0
lea ecx, [edi + 2]
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4090a0
mov esi, dword [ebp - 0x224]
sub edi, ecx
mov edx, dword [ebp - 0x228]
mov eax, esi
sar edi, 1
sub eax, edx
cmp edi, eax
ja 0x409186
lea eax, [edx + edi]
cmp esi, 7
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x238]
cmova ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x220]
lea eax, [eax + edi*2]
mov dword [ebp - 0x23c], ecx
cmp eax, ecx
jbe 0x409124
lea eax, [ecx + edx*2]
lea esi, [ebp - 0x220]
cmp esi, eax
ja 0x409124
mov eax, esi
cmp ecx, eax
ja 0x409110
xor esi, esi
mov dword [ebp - 0x244], esi
jmp 0x40912c
mov esi, ecx
lea eax, [ebp - 0x220]
sub esi, eax
sar esi, 1
mov dword [ebp - 0x244], esi
jmp 0x40912c
mov esi, edi
mov dword [ebp - 0x244], edi
lea eax, [edx*2 + 2]
push eax
push ecx
lea eax, [ecx + edi*2]
push eax
call fcn.00476ec0
add esi, esi
lea eax, [ebp - 0x220]
push esi
push eax
push dword [ebp - 0x23c]
call fcn.00476ec0
mov ecx, dword [ebp - 0x244]
mov eax, edi
sub eax, ecx
add eax, eax
push eax
lea eax, [ecx + edi]
lea ecx, [ebp - 0x220]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp - 0x23c]
add eax, esi
push eax
call fcn.00476ec0
add esp, 0x24
lea eax, [ebp - 0x238]
jmp 0x4091a8
push edi
lea eax, [ebp - 0x220]
mov byte [ebp - 0x23c], 0
push eax
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x238]
push edi
call fcn.0040c020
mov esi, dword [ebp - 0x248]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x409221
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409217
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409267
push ecx
push edx
call fcn.0042dc6f
add esp, 8
mov eax, esi
jmp 0x409249
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x6294d4
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00401950
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042d9e0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047a870
int3