Function at 0x10003800
Capabilities:
Check if file exists
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x424
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
mov ebx, str.C:Usersunname_1989dataFile_appCfg.cfg
push edi
mov eax, ebx
mov ecx, 0x104
lea edx, [esp + 0x18]
call fcn.10003cf0
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x18]
push eax
call ebp
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Pncryptatase.dat
lea ecx, [esp + 0x1c]
push ecx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call edi
lea edx, [esp + 0x18]
push edx
test eax, eax
jne 0x1000392a
call edi
test eax, eax
jne 0x10003925
push eax
push 0x1a
lea eax, [esp + 0x228]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1000388a
xor al, al
jmp 0x10003a5b
push str.unname_1989
lea ecx, [esp + 0x224]
push ecx
call esi
lea edx, [esp + 0x220]
push edx
call edi
test eax, eax
je 0x10003883
push str.dataFile
lea eax, [esp + 0x224]
push eax
call esi
lea ecx, [esp + 0x220]
push ecx
call edi
test eax, eax
je 0x10003883
push str.appCfg.cfg
lea edx, [esp + 0x224]
push edx
call esi
lea eax, [esp + 0x220]
mov ecx, 0x104
lea edx, [esp + 0x18]
call fcn.10003cf0
lea eax, [esp + 0x18]
push eax
call ebp
push str.Pncryptatase.dat
lea ecx, [esp + 0x1c]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
mov esi, 0x101e2b94
call fcn.100200b0
lea eax, [esp + 0x220]
push eax
call edi
test eax, eax
je 0x10003883
lea ebx, [esp + 0x220]
jmp 0x10003934
lea ecx, [esp + 0x18]
push ecx
mov esi, 0x101e2b94
call fcn.100200b0
push 0
push 0x80
push 3
push 0
push 1
push 0x120089
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x10003883
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x78
jb 0x10003883
cmp esi, 0x100000
jae 0x10003a3e
push esi
call fcn.100cf8cb
add esp, 4
push 0
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100cf8cb
mov edi, eax
mov eax, dword [esp + 0x14]
add esp, 4
xor ecx, ecx
test eax, eax
jbe 0x100039ea
mov ebx, ebp
sub ebx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
mov eax, ecx
sub eax, edx
mov dl, byte [eax + 0x10128024]
lea esi, [ecx + edi]
xor dl, byte [ebx + esi]
inc ecx
mov byte [esi], dl
mov eax, dword [esp + 0x10]
cmp ecx, eax
jb 0x100039b4
mov ebx, dword [esp + 0x14]
cmp dword [0x101e2b8c], 0
lea ecx, [eax - 0x78]
mov dword [0x101e2b90], ecx
jne 0x10003a10
push ecx
call fcn.100cf8cb
mov ecx, dword [0x101e2b90]
add esp, 4
mov dword [0x101e2b8c], eax
xor eax, eax
test ecx, ecx
jle 0x10003a2c
mov cl, byte [edi + eax + 0x78]
mov edx, dword [0x101e2b8c]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [0x101e2b90]
jl 0x10003a16
push ebp
call fcn.100d1ecb
add esp, 4
push edi
call fcn.100d1ecb
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x101e2b8c], 0
je 0x10003883
mov byte [0x101e2b88], 1
mov al, 1
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x424
ret