Function at 0x40ef21
Capabilities:
Check if file exists
Create directory
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x57c
mov eax, dword [0x41f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x320]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x40f1d6
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [ebp - 0x320]
push eax
mov esi, 0x104
lea eax, [ebp - 0x110]
push esi
push eax
call ebx
movaps xmm0, xmmword [0x401cf0]
add esp, 0xc
movups xmmword [ebp - 0x550], xmm0
mov dword [ebp - 0x540], 0x711160c
xor ecx, ecx
mov dword [ebp - 0x53c], 0x10071410
mov dword [ebp - 0x538], 0xf1a4c11
mov word [ebp - 0x534], 0xe
mov al, byte [ebp - 0x550]
xor byte [ebp + ecx - 0x54f], al
inc ecx
cmp ecx, 0x1c
jb 0x40efa9
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x54f]
push eax
lea eax, [ebp - 0x110]
mov byte [ebp - 0x533], 0
push esi
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call ebx
movaps xmm0, xmmword [0x402340]
add esp, 0xc
movups xmmword [ebp - 0x550], xmm0
mov dword [ebp - 0x540], 0x65726571
xor ecx, ecx
mov dword [ebp - 0x53c], 0x3276696b
mov dword [ebp - 0x538], 0x70717c
movsx eax, byte [ebp - 0x550]
and eax, 0x8000000f
jns 0x40f032
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx - 0x54f], al
inc ecx
cmp ecx, 0x1a
jb 0x40f01f
lea eax, [ebp - 0x54f]
mov byte [ebp - 0x535], 0
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x110]
add esp, 0xc
push eax
call esi
test eax, eax
jne 0x40f07e
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x40f1d6
movaps xmm0, xmmword [0x401db0]
xor edx, edx
movups xmmword [ebp - 0x578], xmm0
mov ecx, edx
mov dword [ebp - 0x558], 0x282d1e21
movaps xmm0, xmmword [0x401ed0]
movups xmmword [ebp - 0x568], xmm0
mov word [ebp - 0x554], 0x2528
mov byte [ebp - 0x552], dl
mov al, byte [ebp - 0x578]
xor byte [ebp + ecx - 0x577], al
inc ecx
cmp ecx, 0x25
jb 0x40f0b7
push edx
lea eax, [ebp - 0x577]
mov byte [ebp - 0x552], dl
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x577]
mov esi, 0x104
push eax
lea eax, [ebp - 0x428]
push esi
push eax
call ebx
movaps xmm0, xmmword [0x401ff0]
add esp, 0xc
movups xmmword [ebp - 0x548], xmm0
mov dword [ebp - 0x538], 0x787984
xor ecx, ecx
movsx eax, byte [ebp - 0x548]
and eax, 0x8000000f
jns 0x40f124
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx - 0x547], al
inc ecx
cmp ecx, 0x12
jb 0x40f111
lea eax, [ebp - 0x547]
mov byte [ebp - 0x535], 0
push eax
lea eax, [ebp - 0x428]
push esi
push eax
call edi
add esp, 0xc
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x110]
call fcn.00413c79
lea eax, [ebp - 0x577]
push eax
lea eax, [ebp - 0x530]
push esi
push eax
call ebx
movaps xmm0, xmmword [0x4023d0]
add esp, 0xc
movups xmmword [ebp - 0x544], xmm0
mov word [ebp - 0x534], 0x6d
xor ecx, ecx
movsx eax, byte [ebp - 0x544]
and eax, 0x8000000f
jns 0x40f19d
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx - 0x543], al
inc ecx
cmp ecx, 0x10
jb 0x40f18a
lea eax, [ebp - 0x543]
mov byte [ebp - 0x533], 0
push eax
lea eax, [ebp - 0x530]
push esi
push eax
call edi
add esp, 0xc
lea edx, [ebp - 0x530]
lea ecx, [ebp - 0x218]
call fcn.00413c79
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418755
leave
ret