Function at 0x40a310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496aab
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4e20c0]
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, 0x6664e8
push 0
mov dword [ebp - 0x38], eax
push 0x4c9f3c
mov dword [ebp - 0x38], 0x6664e8
movups xmmword [0x6664e8], xmm0
mov dword [0x6664f8], 0
mov dword [0x6664fc], 0
call fcn.0041c720
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
push 0x4c9f3c
mov ecx, 0x666500
mov dword [0x666510], 0
movups xmmword [0x666500], xmm0
mov dword [0x666514], 0
call fcn.0041c720
mov byte [ebp - 4], 1
mov ecx, 0x666520
push 0
mov dword [ebp - 0x1c], 0x666518
mov byte [0x666518], 0
call fcn.00418d30
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push 0x4a4440
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x40a6ce
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x88], eax
push 0x4ca23c
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], eax
movups xmmword [ebp - 0x98], xmm0
call fcn.0041c720
mov byte [ebp - 4], 5
xorps xmm0, xmm0
push 1
push 0x4ca23c
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x70], 0
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x6c], 0
call fcn.0041c720
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 0x40a462
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.0041c720
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.00414050
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.00421350
or esi, 8
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xc
mov eax, 0x666604
cmp dword [0x666618], 7
lea ecx, [ebp - 0xb0]
push dword [0x666614]
cmova eax, dword [0x666604]
push eax
call fcn.00413e60
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.00421350
or esi, 0x20
mov ecx, 0x6664e8
mov dword [ebp - 0x18], esi
call fcn.00416650
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [0x6664e8], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [0x6664f8], 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.00416650
and esi, 0xffffffef
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x68]
call fcn.00416650
and esi, 0xfffffff7
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xb0]
call fcn.00416650
and esi, 0xfffffffb
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc8]
call fcn.00416650
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.00416650
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.00416650
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
call fcn.00416650
mov byte [ebp - 4], 0xf
mov eax, 0x7ffffffe
mov ecx, dword [0x6664f8]
sub eax, ecx
cmp eax, dword [0x666554]
jb 0x40a702
cmp dword [0x6664fc], 7
mov edx, 0x6664e8
push dword [0x666554]
cmova edx, dword [0x6664e8]
mov eax, 0x666544
cmp dword [0x666558], 7
cmova eax, dword [0x666544]
push eax
push ecx
push edx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00421500
or esi, 0x40
mov ecx, 0x666500
mov dword [ebp - 0x18], esi
call fcn.00416650
movups xmm0, xmmword [ebp - 0x34]
xor eax, eax
and esi, 0xffffffbf
mov word [ebp - 0x34], ax
movups xmmword [0x666500], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [0x666510], 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.00416650
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.0040a710
mov dword [ebp - 4], 0xffffffff
mov eax, 0x6664e8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ea75
mov esp, ebp
pop ebp
ret
call fcn.00403770
int3