Function at 0x403ad8
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475736
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 0x88]
call fcn.0040f430
mov ecx, dword [esi + 0x88]
mov dword [esi + 0x98], eax
call fcn.0040f420
mov dword [esi + 0xa0], eax
cmp dword [esi + 0x98], 0xffffffff
jne 0x403b51
push 0x1b
push str.IDS_MESSAGE
call fcn.0040f390
add esp, 8
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.00402eb0
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
mov edi, dword [esi + 0x88]
test edi, edi
je 0x403b76
mov ecx, edi
call fcn.0040fca0
push edi
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov dword [esi + 0x88], 0
cmp dword [esi + 0x98], 0xffffff9c
jne 0x403bcd
push 8
push str.IDS_MESSAGE
call fcn.0040f390
add esp, 8
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x20], 1
call fcn.00402eb0
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
mov eax, 0xffffff9c
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 8]
call dword [0x47f138]
mov edx, dword [str.cVer.bin]
mov eax, dword [0x4db7c0]
push edx
push eax
lea ecx, [esp + 0x10]
push 0x4807c8
push ecx
mov dword [esp + 0x2c], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x4807c4
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x403c73
push 9
push str.IDS_MESSAGE
call fcn.0040f390
add esp, 8
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
mov byte [esp + 0x20], 3
call fcn.00402eb0
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebp
push edi
push 1
lea ebp, [esi + 0x94]
push 4
push ebp
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x403ceb
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push 9
push str.IDS_MESSAGE
call fcn.0040f390
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov byte [esp + 0x24], 4
call fcn.00402eb0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop ebp
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebx
push edi
push 1
lea ebx, [esi + 0x9c]
push 4
push ebx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
push edi
je 0x403d64
call dword [sym.imp.MSVCR71.dll_fclose]
push 9
push str.IDS_MESSAGE
call fcn.0040f390
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.00402eb0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop ebx
pop ebp
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
call dword [sym.imp.MSVCR71.dll_fclose]
mov edx, dword [esi + 0x98]
mov ecx, dword [ebp]
mov edi, dword [ebx]
xor eax, eax
add esp, 4
cmp edx, ecx
mov ecx, dword [esi + 0xa0]
setg al
xor edx, edx
inc eax
cmp ecx, edi
setg dl
lea ecx, [esp + 0x10]
mov dword [esi + 0xb4], eax
inc edx
mov dword [esi + 0xb8], edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x1c]
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret