Function at 0x407e50
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17c91c
call fcn.00425df0
mov eax, dword [0x431008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x407e7c
jmp 0x407e8e
lea eax, [ebp - 0x1782c8]
push 0x1782c0
push 0
push eax
call fcn.0040c210
add esp, 8
mov ecx, 0x4af100
call fcn.00403400
test al, al
je 0x40819d
push ecx
mov ecx, 0x4da0d0
call fcn.00404d50
test al, al
je 0x40819d
push ecx
mov ecx, 0x469b88
call fcn.00402f00
test al, al
je 0x40819d
push ecx
mov ecx, 0x466b10
call fcn.00402c60
test al, al
je 0x40819d
push ecx
mov ecx, 0x437368
call fcn.00401ff0
test al, al
je 0x40819d
push ecx
mov ecx, 0x432e98
call fcn.00401b30
test al, al
je 0x40819d
push ecx
mov ecx, 0x4a73f8
call fcn.004031a0
test al, al
je 0x40819d
push ecx
mov ecx, 0x50f9b8
call fcn.00408480
test al, al
je 0x40819d
push ecx
mov ecx, 0x50f9b8
call fcn.004086a0
test al, al
je 0x40819d
push ecx
call fcn.00409a10
test al, al
je 0x40819d
push ecx
mov ecx, 0x509bf0
call fcn.00408240
test al, al
je 0x40819d
push ecx
mov ecx, 0x4318b0
call fcn.00401830
test al, al
je 0x40819d
push 0x2260
lea eax, [ebp - 0x148b68]
push 0x432e9c
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x14d1b8]
push 0x4650
push 0x43736c
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x17c918]
push 0x4650
push 0x4af104
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x1782c8]
push 0xea60
push 0x4da0d4
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x169868]
push 0x19640
push 0x469b8c
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x150228]
push 0x3070
push 0x466b14
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x146908]
push 0x7d00
push 0x4a73fc
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x13ec08]
push 0x75300
push 0x50f9bc
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0xc9908]
push 0xbe6e0
push 0x584cbc
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0xb228]
push 0x3e80
push 0x6c3fd0
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x73a8]
push 0x5dc0
push 0x509bf4
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x15e8]
push 0x15e0
push 0x4318b4
push eax
call fcn.0040d790
add esp, 0xc
xor edx, edx
mov al, byte [ebp + edx - 0x17c918]
mov ecx, edx
xor al, dl
shr ecx, 8
xor cl, 0x9a
xor al, 0xdf
sub al, cl
mov byte [ebp + edx - 0x17c918], al
inc edx
cmp edx, 0x17c910
jb 0x4080b0
push str..DataLocal_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4080e9
test al, 0x10
jne 0x4080f6
push str.mkdir__DataLocal_
call fcn.0041508f
add esp, 4
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str..DataLocalItems.bmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4081aa
push 0
lea eax, [ebp - 0x17c91c]
mov dword [ebp - 0x17c91c], 0
push eax
push 0x17c910
lea eax, [ebp - 0x17c918]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x40815d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040adff
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408175
jmp 0x40818c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040adff
mov esp, ebp
pop ebp
ret
push str.pause
call fcn.0041508f
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adff
mov esp, ebp
pop ebp
ret