Function at 0x4093d0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [0x4726c0]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
mov byte [esp + 0x2f], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x40943f
cmp dword [0x4726bc], 0
je 0x40960d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4726bc]
push esi
push str.Unable_to_open_file__s.__Error_code___d_.
push eax
call fcn.00408010
mov al, byte [esp + 0x23]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x409480
mov eax, dword [0x4726bc]
test eax, eax
je 0x409602
push esi
push str.The_file__s_appears_to_be_an_empty_file_
push eax
call fcn.00408010
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0042c1de
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4094b2
mov eax, dword [0x4726bc]
test eax, eax
je 0x4095f5
push esi
push str.Unable_to_allocate_memory_to_load_file__s.
push eax
call fcn.00408010
add esp, 0xc
jmp 0x4095f5
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4094ee
cmp dword [0x4726bc], eax
je 0x4095f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4726bc]
push esi
push str.Unable_to_read_file__s.__Error_code___d_.
push eax
jmp 0x4095ed
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4726bc]
mov eax, esi
cmp dword [eax], 0x4e494145
jne 0x409539
add edi, 0xfffffffc
lea esi, [eax + 4]
test ecx, ecx
je 0x409524
mov edx, dword [ebp + 8]
push edx
push str.Processing_EAIN_file__s.
push ecx
call fcn.00408010
mov ecx, dword [0x4726bc]
add esp, 0xc
xor eax, eax
test edi, edi
jbe 0x409539
lea ebx, [ebx]
xor byte [eax + esi], 0xb4
inc eax
cmp eax, edi
jb 0x409530
cmp edi, 3
jbe 0x409567
cmp byte [esi], 0xef
jne 0x409567
cmp byte [esi + 1], 0xbb
jne 0x409567
cmp byte [esi + 2], 0xbf
jne 0x409567
add esi, 3
sub edi, 3
test ecx, ecx
je 0x409567
push str.Processing_..._n
push ecx
call fcn.00408010
add esp, 8
push edi
mov eax, str.InstData
mov ecx, esi
mov edx, ebx
call fcn.00411250
add esp, 4
test eax, eax
jne 0x4095d8
mov eax, dword [ebx + 8]
sub eax, 0x10
mov dword [esp + 0x20], eax
sub eax, dword [ebx + 0x20]
xor edx, edx
push eax
lea eax, [esp + 0x24]
push eax
push 0x40fcf0
mov eax, ebx
mov dword [esp + 0x30], 0xffffffff
call fcn.00418070
mov ecx, dword [ebx + 0x14]
mov ebx, dword [ebx + 8]
add esp, 0xc
cmp ebx, dword [ecx + 8]
jb 0x4095b7
mov dword [ecx + 8], ebx
test eax, eax
jne 0x4095c2
mov byte [esp + 0x13], 1
jmp 0x4095f5
mov ecx, dword [0x4726bc]
test ecx, ecx
je 0x4095f5
mov edx, dword [ebp + 8]
push eax
push edx
push str.Failed_to_process_data_file__s.____d_
jmp 0x4095ec
mov ecx, dword [0x4726bc]
test ecx, ecx
je 0x4095f5
push eax
mov eax, dword [ebp + 8]
push eax
push str.Unable_to_initialize_from_data_file__s.____d_
push ecx
call fcn.00408010
add esp, 0x10
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042cd84
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret