Function at 0x40f7f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4507a5
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x473018]
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 0x456334
mov dword [ebp - 0x5c], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x40fb19
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.0043d107
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 0x40f8a2
lea eax, [ebp - 0x1c]
mov eax, dword [eax + 4]
cmp eax, dword [edi + 4]
jne 0x40f8a2
mov al, 1
jmp 0x40f8a4
xor al, al
test al, al
jne 0x40f953
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 0x40f8d5
mov eax, dword [edx + 4]
cmp eax, dword [edi + 4]
jne 0x40f8d5
mov al, 1
jmp 0x40f8d7
xor al, al
test al, al
jne 0x40f953
movzx eax, cx
cmp eax, 0x5c
je 0x40f919
cmp eax, 0x2f
je 0x40f919
push ecx
call fcn.0043cf1a
add esp, 4
test eax, eax
je 0x40f959
cmp word [edi + 2], 0x3a
jne 0x40f959
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x40f90f
cmp eax, 0x2f
mov eax, 3
jne 0x40f914
mov eax, 2
mov edi, dword [ebp - 0x64]
jmp 0x40f94e
movzx eax, word [edi + 2]
cmp eax, 0x5c
je 0x40f927
cmp eax, 0x2f
jne 0x40f959
cmp word [edi + 4], 0x2e
jne 0x40f959
movzx eax, word [edi + 6]
cmp eax, 0x5c
je 0x40f940
cmp eax, 0x2f
je 0x40f940
xor cl, cl
jmp 0x40f942
mov cl, 1
xor eax, eax
mov edx, 6
test cl, cl
cmovne eax, edx
cmp eax, 6
jne 0x40f959
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 0x40f970
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.00404580
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], 8
lea ecx, [ebp - 0x88]
push dword [ebp - 0x6c]
cmovae eax, dword [ebp - 0x7c]
push eax
call fcn.0040b610
add esp, 8
cmp dword [eax + 4], 0
je 0x40fa1a
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403fa0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x60]
or eax, 8
jmp 0x40fa35
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040b970
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 0x40faa8
and eax, 0xffffffef
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.004040c0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], 5
test al, 8
je 0x40fac8
and eax, 0xfffffff7
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.004040c0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x7c]
call fcn.004040c0
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 0x40fafc
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.00432e76
mov esp, ebp
pop ebp
ret
push str.Failed_to_get_known_folder_path
lea ecx, [ebp - 0x8c]
call fcn.00409ae0
push 0x47198c
lea eax, [ebp - 0x8c]
push eax
call fcn.00434e2a
int3