Function at 0x471150
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ab8f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.00490d40
cmp edi, ebx
mov byte [esp + 0x30], 1
je 0x47119a
lea ebp, [edi + 4]
mov dword [esp + 0x1c], ebp
jmp 0x4711a0
mov dword [esp + 0x1c], ebx
mov ebp, ebx
mov ecx, dword [ebp]
mov esi, 0x659680
cmp ecx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
je 0x4711bf
call fcn.004016ae
mov dword [esp + 0x24], eax
mov esi, eax
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x659680
push edx
mov byte [esp + 0x38], 3
call edi
add esp, 8
test eax, eax
jne 0x47124c
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov al, byte [esi]
mov byte [esp + 0x30], 1
test al, al
je 0x4713cd
mov ebp, dword [ebp]
cmp ebp, ebx
je 0x4713cd
mov eax, dword [ebp + 4]
lea esi, [ebp + 4]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x659680
push eax
call edi
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4713cd
jmp 0x4713bb
mov eax, dword [esp + 0x10]
push 0x646a34
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4712c5
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov al, byte [esi]
mov byte [esp + 0x30], 1
test al, al
je 0x4713cd
mov ebp, dword [ebp]
test ebp, ebp
je 0x4713cd
mov edx, dword [ebp + 4]
lea esi, [ebp + 4]
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x659680
push eax
call edi
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4713cd
jmp 0x4713bb
mov esi, dword [esp + 0x38]
push 0x6498e0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x5c]
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov edx, dword [esi]
push 0x6498dc
mov ecx, esi
call dword [edx + 0x5c]
push 0x40000
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x38], ebp
mov al, byte [ebx + 0xc]
mov byte [esp + 0x30], 4
test al, 0x10
jne 0x47134a
push ebx
push 0x3ffff
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea ecx, [esp + 0x14]
push eax
push ebp
call fcn.00490d60
mov edi, eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x5c]
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov al, byte [ebx + 0xc]
add esp, 4
test al, 0x10
je 0x47130c
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edx, dword [esi]
push 0x6495a0
mov ecx, esi
call dword [edx + 0x5c]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
mov byte [esp + 0x30], 1
cmp byte [eax], 0
je 0x4713cd
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx]
test ebp, ebp
je 0x4713cd
mov edx, dword [ebp + 4]
lea esi, [ebp + 4]
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x659680
push eax
call edi
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4713cd
mov ebp, dword [ebp]
mov edx, dword [esi]
push 0
push 0x8010
push ebp
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.00490d50
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4