Function at 0x408d60
Capabilities:
Get common file path
Get program files directory
Get startup folder

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 0x4485bc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x45701c]
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, ecx
mov dword [ebp - 0x244], esi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x244], esi
mov ecx, dword [eax]
mov eax, dword [0x459810]
cmp eax, dword [ecx + 4]
jg 0x409186
cmp dword [0x457940], 0
jne 0x4090d6
push 0
push 0x26
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
lea edx, [ecx + 2]
mov word [ebp - 0x238], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408e20
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0040b200
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x274]
push 0xc
xor eax, eax
mov dword [ebp - 0x274], 0
push str.zd_yw_xBSiRx
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
call fcn.0040b200
lea edx, [ebp - 0x274]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.00404390
push 1
push 0x4523a4
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040cdb0
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0x28c], xmm1
mov dword [eax + 0x10], 0
movq qword [ebp - 0x27c], xmm0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
cmp dword [ebp - 0x278], 8
push dword [ebp - 0x27c]
movd eax, xmm1
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x238]
call fcn.0040a5a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x278]
cmp edx, 8
jb 0x408f42
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408f38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4091bf
push edx
push ecx
call fcn.0041391e
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x248]
cmp edx, 8
jb 0x408f86
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408f7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4091bf
push edx
push ecx
call fcn.0041391e
add esp, 8
xor eax, eax
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
cmp edx, 8
jb 0x408fe6
mov ecx, dword [ebp - 0x274]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408fdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4091bf
push edx
push ecx
call fcn.0041391e
add esp, 8
mov byte [ebp - 0x240], 0
lea edx, [ebp - 0x238]
push dword [ebp - 0x240]
lea ecx, [ebp - 0x25c]
call fcn.0040d3f0
add esp, 4
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 4
call fcn.00407560
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x248]
mov byte [ebp - 0x239], al
cmp edx, 8
jb 0x409066
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409056
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4091c4
push edx
push ecx
call fcn.0041391e
mov al, byte [ebp - 0x239]
add esp, 8
test al, al
je 0x40908f
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
mov ecx, 0x457930
push eax
call fcn.0040b200
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x4090d6
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4090cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4091c9
push edx
push ecx
call fcn.0041391e
add esp, 8
mov dword [esi], 0
mov eax, 0x457930
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [0x457944], 8
mov ecx, dword [0x457940]
cmovae eax, dword [0x457930]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x244], eax
cmp ecx, 8
jae 0x409121
movups xmm0, xmmword [eax]
mov edi, 7
movups xmmword [esi], xmm0
jmp 0x409160
mov edi, ecx
mov eax, 0x7ffffffe
or edi, 7
cmp edi, eax
cmova edi, eax
lea eax, [edi + 1]
push eax
call fcn.00404cc0
mov ecx, eax
mov eax, dword [ebp - 0x240]
mov dword [esi], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x244]
push ecx
call fcn.00414fc0
mov ecx, dword [ebp - 0x240]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov eax, esi
mov dword [esi + 0x14], 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.00413335
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x459810
call fcn.00413476
add esp, 4
cmp dword [0x459810], 0xffffffff
jne 0x408dc8
push 0x448e90
call fcn.00413909
add esp, 4
push 0x459810
call fcn.0041342c
add esp, 4
jmp 0x408dc8
call fcn.0041e009
call fcn.0041e009
call fcn.0041e009
int3