Function at 0x42e0f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48561c
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x4a4b34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
fldz
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
fstp qword [ebp - 0x440]
xor ebx, ebx
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x470], edi
mov dword [ebp - 0x444], ebx
call dword [sym.imp.mfc100.dll_Ordinal_316]
push ebx
lea eax, [ebp - 0x44c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00401645
lea ecx, [ebp - 0x438]
push ecx
call dword [sym.imp.MSVCR100.dll__time64]
lea edx, [ebp - 0x440]
push edx
call fcn.00402a77
add esp, 0x14
test eax, eax
jne 0x42e1c1
mov eax, dword [ebp - 0x440]
push 5
push 0x4a4550
push eax
call fcn.00403012
xor ecx, ecx
add esp, 0xc
cmp ecx, dword [ebp - 0x434]
jl 0x42e1c1
jg 0x42e1a1
cmp eax, dword [ebp - 0x438]
jbe 0x42e1c1
push 0x246
call fcn.004018ac
add esp, 4
lea ecx, [ebp - 0x430]
call dword [sym.imp.mfc100.dll_Ordinal_901]
xor eax, eax
jmp 0x42e4f2
mov ecx, dword [ebp - 0x438]
push 5
push 0x4a4550
push ecx
call fcn.00402450
xor ecx, ecx
push ecx
push eax
call fcn.004011e5
add esp, 0x14
test eax, eax
jne 0x42e1ae
call sub.mfc100.dll_Ordinal_1929
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x44]
push 0x3ff
lea edx, [ebp - 0x410]
push edx
push 0x245
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x410]
push ecx
call fcn.00401a8c
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x410]
push str.F002
push eax
call fcn.00401703
add esp, 0x10
test eax, eax
jne 0x42e1ae
mov ecx, dword [ebp - 0x42c]
push 5
push 0x4a453c
push ecx
call fcn.00403012
mov dword [ebp - 0x42c], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e280
sub eax, edx
je 0x42e4d4
push 0x493ba8
push esi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0x450], eax
cmp eax, ebx
je 0x42e4d4
push eax
push 1
lea edx, [ebp - 0x428]
push 0x18
push edx
call dword [sym.imp.MSVCR100.dll_fread]
push 0x18
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x478]
push ecx
call fcn.00402ad6
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x420]
add esp, 0x1c
mov dword [ebp - 0x46c], edx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x464], ecx
mov ecx, dword [ebp - 0x414]
xor edi, edi
mov dword [ebp - 0x460], edx
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], ecx
mov dword [ebp - 0x448], edi
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x44c]
push 0x64
push 0x18
test edi, edi
jne 0x42e351
lea ecx, [edx + eax + 0x4d3]
push ecx
call fcn.00402996
mov esi, eax
mov dword [ebp - 0x454], esi
jmp 0x42e366
lea ecx, [edx + eax + 0x162e]
push ecx
call fcn.00402996
mov esi, eax
mov dword [ebp - 0x454], eax
add esp, 0xc
test esi, esi
je 0x42e458
lea edx, [ebp - 0x478]
push esi
push edx
call fcn.00402d1a
mov eax, dword [ebp - 0x428]
add esp, 8
cmp eax, dword [ebp - 0x44c]
jne 0x42e46a
mov ecx, dword [ebp - 0x424]
cmp ecx, dword [ebp - 0x42c]
jne 0x42e46a
test edi, edi
jne 0x42e4a8
mov ebx, dword [ebp - 0x41c]
cmp ebx, dword [ebp - 0x434]
jg 0x42e407
mov edi, dword [ebp - 0x420]
jl 0x42e3cb
cmp edi, dword [ebp - 0x438]
ja 0x42e401
mov edx, dword [ebp - 0x418]
mov esi, dword [ebp - 0x414]
mov ecx, edx
add ecx, edi
mov eax, esi
adc eax, ebx
mov ebx, dword [ebp - 0x434]
cmp eax, ebx
jg 0x42e47e
jl 0x42e3fb
cmp ecx, dword [ebp - 0x438]
jae 0x42e47e
mov esi, dword [ebp - 0x454]
mov edi, dword [ebp - 0x448]
push esi
call fcn.00402897
mov edx, dword [ebp - 0x46c]
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x428], edx
mov edx, dword [ebp - 0x460]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x420], ecx
mov ecx, dword [ebp - 0x458]
add esp, 4
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], ecx
inc edi
mov dword [ebp - 0x448], edi
cmp edi, 2
jl 0x42e326
jmp 0x42e4be
cmp edi, 1
jne 0x42e407
push 0x241
call fcn.004018ac
add esp, 4
jmp 0x42e407
sub edx, dword [ebp - 0x438]
sbb esi, ebx
add edx, edi
adc esi, dword [ebp - 0x41c]
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x43c], esi
fild qword [ebp - 0x440]
fdiv qword [0x494b68]
jmp 0x42e4ae
fld qword [0x494b58]
fstp qword [ebp - 0x440]
mov dword [ebp - 0x444], 1
mov edx, dword [ebp - 0x450]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov edi, dword [ebp - 0x470]
add esp, 4
test edi, edi
je 0x42e4e0
fld qword [ebp - 0x440]
fstp qword [edi]
lea ecx, [ebp - 0x430]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047e7ac
mov esp, ebp
pop ebp
ret