Function at 0x408940
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 0x446495
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x6c
mov eax, dword [0x45e080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0
push 0
push 0x449300
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x408c3b
mov ecx, edx
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x4c], xmm0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4089c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00403110
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
cmp dword [0x460518], 7
mov eax, 0x460504
push dword [0x460514]
cmova eax, dword [0x460504]
push eax
call fcn.00402ef0
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x38]
cmp ecx, 7
jbe 0x408a79
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408a6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c58
push ecx
push edx
call fcn.004264e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x30], al
lea edx, [ebp - 0x2c]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.0040a800
add esp, 4
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00404dc0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 0x31], al
cmp ecx, 7
jbe 0x408af1
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408ae4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c5d
push ecx
push edx
call fcn.004264e6
mov al, byte [ebp - 0x31]
add esp, 8
test al, al
jne 0x408c05
mov ecx, dword [ebp - 0x1c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x12
jb 0x408c62
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push ecx
cmova eax, dword [ebp - 0x2c]
push eax
push 0x12
push str.cmd.exe__c_mkdir__
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x7c]
call fcn.0040a6c0
sub esp, 0x18
mov byte [ebp - 4], 4
mov esi, esp
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x30], esi
push 1
push 0x450ea0
call fcn.00402ef0
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 word [eax], cx
lea ecx, [ebp - 0x64]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00408510
mov ecx, dword [ebp - 0x50]
add esp, 0x18
cmp ecx, 0xf
jbe 0x408bbd
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408bb3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c67
push ecx
push edx
call fcn.004264e6
add esp, 8
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp ecx, 7
jbe 0x408c05
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408bfb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c67
push ecx
push edx
call fcn.004264e6
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x408c3b
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408c31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408c6c
push ecx
push edx
call fcn.004264e6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004264a8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042b25f
call fcn.0042b25f
call fcn.00401350
call fcn.0042b25f
call fcn.0042b25f
int3