Function at 0x4241a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
push 0x47ab38
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
xor ebx, ebx
add esp, 8
cmp ebp, ebx
jne 0x4241d2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret
push 2
push 0xffffffffffffff80
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
cmp eax, ebx
je 0x4241fb
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x30]
push ebp
rep stosd dword es:[edi], eax
push 1
lea ecx, [esp + 0x38]
push 0x80
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42423a
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret
push 3
lea edx, [esp + 0x34]
push 0x47b6c0
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x42426a
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [esp + 0x33]
push 0x1e
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x3a], bl
call esi
mov edi, dword [esp + 0xc8]
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, edi
push edx
mov byte [esp + 0x32], bl
call sub.MFC42.DLL_CString::operator_2
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x51]
push 0x1e
lea ecx, [esp + 0x14]
push eax
push ecx
call esi
mov edi, dword [esp + 0xcc]
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, edi
push edx
mov byte [esp + 0x32], bl
call sub.MFC42.DLL_CString::operator_2
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x6f]
push 0x1e
lea ecx, [esp + 0x14]
push eax
push ecx
call esi
mov edi, dword [esp + 0xd0]
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, edi
push edx
mov byte [esp + 0x32], bl
call sub.MFC42.DLL_CString::operator_2
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x8d]
push 4
lea ecx, [esp + 0x14]
push eax
push ecx
call esi
mov edi, dword [esp + 0xd4]
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, edi
push edx
mov byte [esp + 0x18], bl
call sub.MFC42.DLL_CString::operator_2
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
mov al, byte [esp + 0xad]
push 0x1e
cmp al, 0x2e
jne 0x424376
lea eax, [esp + 0x95]
lea ecx, [esp + 0x14]
push eax
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0xaa]
mov byte [esp + 0x2e], bl
push edx
call dword [sym.imp.MSVCRT.dll_atof]
mov eax, dword [esp + 0xd8]
add esp, 4
mov byte [esp + 0x29], bl
fstp dword [eax]
jmp 0x42438c
lea ecx, [esp + 0x95]
lea edx, [esp + 0x14]
push ecx
push edx
call esi
add esp, 0xc
mov byte [esp + 0x2e], bl
mov esi, dword [esp + 0xcc]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0xaf]
mov ecx, dword [0x47b1a8]
and eax, 0xff
cmp eax, ecx
jge 0x4243c6
mov ecx, dword [eax*8 + 0x47adb4]
push ecx
jmp 0x4243cb
push 0x47c7c0
mov ecx, dword [esp + 0xd4]
call sub.MFC42.DLL_CString::operator_2
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret