Function at 0x4094c0
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 [0x4736c0]
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 0x40952f
cmp dword [0x4736bc], 0
je 0x4096fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4736bc]
push esi
push str.Unable_to_open_file__s.__Error_code___d_.
push eax
call fcn.00408140
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 0x409570
mov eax, dword [0x4736bc]
test eax, eax
je 0x4096f2
push esi
push str.The_file__s_appears_to_be_an_empty_file_
push eax
call fcn.00408140
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.0042c9de
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4095a2
mov eax, dword [0x4736bc]
test eax, eax
je 0x4096e5
push esi
push str.Unable_to_allocate_memory_to_load_file__s.
push eax
call fcn.00408140
add esp, 0xc
jmp 0x4096e5
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 0x4095de
cmp dword [0x4736bc], eax
je 0x4096e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4736bc]
push esi
push str.Unable_to_read_file__s.__Error_code___d_.
push eax
jmp 0x4096dd
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4736bc]
mov eax, esi
cmp dword [eax], 0x4e494145
jne 0x409629
add edi, 0xfffffffc
lea esi, [eax + 4]
test ecx, ecx
je 0x409614
mov edx, dword [ebp + 8]
push edx
push str.Processing_EAIN_file__s.
push ecx
call fcn.00408140
mov ecx, dword [0x4736bc]
add esp, 0xc
xor eax, eax
test edi, edi
jbe 0x409629
lea ebx, [ebx]
xor byte [eax + esi], 0xb4
inc eax
cmp eax, edi
jb 0x409620
cmp edi, 3
jbe 0x409657
cmp byte [esi], 0xef
jne 0x409657
cmp byte [esi + 1], 0xbb
jne 0x409657
cmp byte [esi + 2], 0xbf
jne 0x409657
add esi, 3
sub edi, 3
test ecx, ecx
je 0x409657
push str.Processing_..._n
push ecx
call fcn.00408140
add esp, 8
push edi
mov eax, str.InstData
mov ecx, esi
mov edx, ebx
call fcn.00411a40
add esp, 4
test eax, eax
jne 0x4096c8
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 0x4104e0
mov eax, ebx
mov dword [esp + 0x30], 0xffffffff
call fcn.00418860
mov ecx, dword [ebx + 0x14]
mov ebx, dword [ebx + 8]
add esp, 0xc
cmp ebx, dword [ecx + 8]
jb 0x4096a7
mov dword [ecx + 8], ebx
test eax, eax
jne 0x4096b2
mov byte [esp + 0x13], 1
jmp 0x4096e5
mov ecx, dword [0x4736bc]
test ecx, ecx
je 0x4096e5
mov edx, dword [ebp + 8]
push eax
push edx
push str.Failed_to_process_data_file__s.____d_
jmp 0x4096dc
mov ecx, dword [0x4736bc]
test ecx, ecx
je 0x4096e5
push eax
mov eax, dword [ebp + 8]
push eax
push str.Unable_to_initialize_from_data_file__s.____d_
push ecx
call fcn.00408140
add esp, 0x10
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042d587
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