Function at 0x4016bd
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40839c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x568
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], esi
mov bl, 0x42
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xc8]
push eax
push ecx
lea edx, [esp + 0x18]
push str._sMyGame__s.dat
push edx
mov dword [esp + 0x590], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
push 0x40b0c0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x18
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x40190e
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebp
call edi
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebp
mov esi, eax
call edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0x20
mov edi, eax
test esi, esi
mov dword [esp + 0x14], edi
push ebp
jne 0x401759
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x40190e
push esi
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
xor ecx, ecx
test esi, esi
jle 0x40178d
mov al, cl
mov dl, 0xa
imul dl
mov dl, al
mov eax, dword [esp + 0x14]
add dl, bl
mov bl, byte [ecx + eax]
xor bl, dl
mov byte [ecx + eax], bl
inc ecx
cmp ecx, esi
jl 0x40176c
mov ebp, dword [esp + 0x18]
mov edi, eax
lea ecx, [esp + 0x3c]
call fcn.00401e80
push esi
push edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x588], 1
call fcn.00402080
lea eax, [esp + 0x178]
push 0x400
push eax
push str.MyGame
lea ecx, [esp + 0x48]
mov byte [esp + 0x184], 0
call fcn.004028e0
mov al, byte [esp + 0x178]
xor esi, esi
test al, al
lea edi, [esp + 0x178]
mov dword [esp + 0x20], esi
je 0x4018df
mov bl, byte [esp + 0x1f]
jmp 0x4017f0
xor esi, esi
cmp dword [esp + 0x20], 1
jge 0x4018df
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
push 0x40b538
push edi
lea ecx, [esp + 0x3c]
push str.MyGame
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x590], 2
call fcn.00402790
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x588], 3
call fcn.004015a0
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x580], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x401896
mov ecx, dword [esp + 0x2c]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 8
jne 0x401896
mov edx, dword [esp + 0x38]
push eax
lea ecx, [edx + 0xcc]
call sub.MFC42.DLL_CStringList::AddTail
cmp byte [edi], 0
je 0x401888
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401880
mov eax, dword [esp + 0x20]
inc edi
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov byte [esp + 0x580], 1
cmp eax, ebp
mov esi, eax
je 0x4018ba
mov ecx, esi
call sub.MFC42.DLL_CString::CString
add esi, 4
cmp esi, ebp
jne 0x4018a8
mov eax, dword [esp + 0x28]
push eax
call sub.MFC42.DLL_operatordelete
mov ebp, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov al, byte [edi]
add esp, 4
test al, al
jne 0x4017ee
lea ecx, [esp + 0x3c]
call fcn.00401f50
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x580], 0
call fcn.00401ee0
lea ecx, [esp + 0x10]
mov dword [esp + 0x580], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x578]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x574
ret