Function at 0x40a5c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4c9b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4f0100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov ecx, 0x674840
push 0
mov dword [ebp - 0x38], eax
push 0x4d7f3c
mov dword [ebp - 0x38], 0x674840
movups xmmword [0x674840], xmm0
mov dword [0x674850], 0
mov dword [0x674854], 0
call fcn.0041cad0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
push 0x4d7f3c
mov ecx, 0x674858
mov dword [0x674868], 0
movups xmmword [0x674858], xmm0
mov dword [0x67486c], 0
call fcn.0041cad0
mov byte [ebp - 4], 1
mov ecx, 0x674878
push 0
mov dword [ebp - 0x1c], 0x674870
mov byte [0x674870], 0
call fcn.00418ef0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push 0x4b2440
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x40a97e
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x88], eax
push 0x4d823c
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], eax
movups xmmword [ebp - 0x98], xmm0
call fcn.0041cad0
mov byte [ebp - 4], 5
xorps xmm0, xmm0
push 1
push 0x4d823c
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x70], 0
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x6c], 0
call fcn.0041cad0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a712
sub eax, esi
sar eax, 1
mov byte [ebp - 4], 8
xorps xmm0, xmm0
push eax
push edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
call fcn.0041cad0
mov esi, 2
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x18], esi
and esi, 0xfffffffd
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 7
or esi, 1
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 6
and esi, 0xfffffffe
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004142a0
or esi, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
call fcn.00421710
or esi, 8
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xc
mov eax, 0x67495c
cmp dword [0x674970], 7
lea ecx, [ebp - 0xb0]
push dword [0x67496c]
cmova eax, dword [0x67495c]
push eax
call fcn.004140b0
xor ecx, ecx
mov dword [ebp - 0x58], 0
or esi, 0x10
mov dword [ebp - 0x54], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x58], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x50]
call fcn.00421710
or esi, 0x20
mov ecx, 0x674840
mov dword [ebp - 0x18], esi
call fcn.00416820
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [0x674840], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [0x674850], xmm0
xor eax, eax
mov dword [ebp - 0x40], 0
and esi, 0xffffffdf
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x50]
call fcn.00416820
and esi, 0xffffffef
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x68]
call fcn.00416820
and esi, 0xfffffff7
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xb0]
call fcn.00416820
and esi, 0xfffffffb
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc8]
call fcn.00416820
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.00416820
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.00416820
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
call fcn.00416820
mov byte [ebp - 4], 0xf
mov eax, 0x7ffffffe
mov ecx, dword [0x674850]
sub eax, ecx
cmp eax, dword [0x6748ac]
jb 0x40a9b2
cmp dword [0x674854], 7
mov edx, 0x674840
push dword [0x6748ac]
cmova edx, dword [0x674840]
mov eax, 0x67489c
cmp dword [0x6748b0], 7
cmova eax, dword [0x67489c]
push eax
push ecx
push edx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.004218c0
or esi, 0x40
mov ecx, 0x674858
mov dword [ebp - 0x18], esi
call fcn.00416820
movups xmm0, xmmword [ebp - 0x34]
xor eax, eax
and esi, 0xffffffbf
mov word [ebp - 0x34], ax
movups xmmword [0x674858], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [0x674868], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00416820
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.0040a9c0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x674840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047b4e2
mov esp, ebp
pop ebp
ret
call fcn.00403950
int3