Function at 0x40fac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452395
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x476040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x60], ecx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x90], ecx
push eax
push 0
push 0
push 0x458e94
mov dword [ebp - 0x5c], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x40fde9
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x94], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x64]
movzx eax, word [eax]
push eax
call fcn.0043eb67
mov cx, ax
mov dword [ebp - 0x1c], 0x5c005c
mov eax, dword [ebp - 0x64]
add esp, 4
mov dword [ebp - 0x18], 0x5c003f
mov word [eax], cx
xor eax, eax
mov edi, dword [ebp - 0x64]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x40fb72
lea eax, [ebp - 0x1c]
mov eax, dword [eax + 4]
cmp eax, dword [edi + 4]
jne 0x40fb72
mov al, 1
jmp 0x40fb74
xor al, al
test al, al
jne 0x40fc23
xor eax, eax
mov dword [ebp - 0x28], 0x5c005c
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], 0x5c002e
mov word [ebp - 0x20], ax
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40fba5
mov eax, dword [edx + 4]
cmp eax, dword [edi + 4]
jne 0x40fba5
mov al, 1
jmp 0x40fba7
xor al, al
test al, al
jne 0x40fc23
movzx eax, cx
cmp eax, 0x5c
je 0x40fbe9
cmp eax, 0x2f
je 0x40fbe9
push ecx
call fcn.0043e97a
add esp, 4
test eax, eax
je 0x40fc29
cmp word [edi + 2], 0x3a
jne 0x40fc29
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x40fbdf
cmp eax, 0x2f
mov eax, 3
jne 0x40fbe4
mov eax, 2
mov edi, dword [ebp - 0x64]
jmp 0x40fc1e
movzx eax, word [edi + 2]
cmp eax, 0x5c
je 0x40fbf7
cmp eax, 0x2f
jne 0x40fc29
cmp word [edi + 4], 0x2e
jne 0x40fc29
movzx eax, word [edi + 6]
cmp eax, 0x5c
je 0x40fc10
cmp eax, 0x2f
je 0x40fc10
xor cl, cl
jmp 0x40fc12
mov cl, 1
xor eax, eax
mov edx, 6
test cl, cl
cmovne eax, edx
cmp eax, 6
jne 0x40fc29
add edi, 8
mov dword [ebp - 0x64], edi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x64]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fc40
sub ecx, edi
sar ecx, 1
mov byte [ebp - 4], 3
xorps xmm0, xmm0
push ecx
push edx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x68], 0
call fcn.00404650
mov eax, 4
mov dword [ebp - 0x5c], 4
mov dword [ebp - 0x5c], eax
and eax, 0xfffffffb
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 2
or eax, 2
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 1
and eax, 0xfffffffd
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 5
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 7
lea ecx, [ebp - 0x88]
push dword [ebp - 0x6c]
cmova eax, dword [ebp - 0x7c]
push eax
call fcn.0040b8c0
add esp, 8
cmp dword [eax + 4], 0
je 0x40fcea
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404240
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x60]
or eax, 8
jmp 0x40fd05
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040bbf0
mov ecx, eax
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x60]
or eax, 0x10
mov dword [ebp - 0x5c], eax
xorps xmm0, xmm0
mov edi, dword [ebp - 0x80]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 4], 8
xor edx, edx
mov dword [ecx + 0x10], 0
or eax, 0x20
mov dword [ecx + 0x14], 7
mov word [ecx], dx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 7
test al, 0x10
je 0x40fd78
and eax, 0xffffffef
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00404310
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], 5
test al, 8
je 0x40fd98
and eax, 0xfffffff7
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00404310
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x7c]
call fcn.00404310
mov eax, dword [ebp - 0x60]
and eax, 0xffffffdf
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 1
or eax, 1
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
test esi, esi
je 0x40fdcc
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043488a
mov esp, ebp
pop ebp
ret
push str.Failed_to_get_known_folder_path
lea ecx, [ebp - 0x8c]
call fcn.00409d10
push 0x4743c4
lea eax, [ebp - 0x8c]
push eax
call fcn.0043685a
int3