Function at 0x47f6b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
push ebp
lea ecx, [esi + 0x2fc]
call sub.MFC42.DLL_CWnd::EnableWindow
push ebp
lea ecx, [esi + 0x278]
call sub.MFC42.DLL_CWnd::EnableWindow
push ebp
lea ecx, [esi + 0x1f4]
call sub.MFC42.DLL_CWnd::EnableWindow
push ebp
lea ecx, [esi + 0x170]
call sub.MFC42.DLL_CWnd::EnableWindow
push ebp
lea ecx, [esi + 0x130]
call sub.MFC42.DLL_CWnd::EnableWindow
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x47f719
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi + 0x90], ebp
mov eax, dword [esi + 0x9c]
mov dword [esi + 0x98], ebp
mov dword [esi + 0x94], ebp
cmp dword [eax - 8], ebp
je 0x47f8f7
push 0x581660
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x47f8f7
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 1
lea eax, [esp + 0x24]
push 0x90
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x47f8ed
cmp dword [esp + 0x1c], 1
jne 0x47f8ff
mov ecx, dword [esi + 0x88]
push ecx
call fcn.00472aa0
mov ecx, dword [esp + 0x6c]
add esp, 4
cmp ecx, eax
jne 0x47f8ff
mov edx, dword [ebx + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ecx, eax
mov eax, 0xcccccccd
sub ecx, 0x90
mul ecx
mov edi, edx
shr edi, 5
lea edx, [edi + edi*4 + 5]
shl edx, 3
push edx
call fcn.004c2e90
add esp, 8
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
push ebx
je 0x47f8ee
lea eax, [edi + edi*4]
push 1
shl eax, 3
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x47f801
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
push ebp
call fcn.004c2eb0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + edi*4 + 5]
lea edx, [edi + ecx*2 + 1]
shl edx, 2
push edx
call fcn.004c2e90
add esp, 4
mov dword [esi + 0x90], eax
test eax, eax
je 0x47f8e4
test edi, edi
jle 0x47f8de
xor ecx, ecx
lea edx, [ebp + 0x14]
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x90]
mov ebp, dword [edx - 0x14]
mov dword [ecx + eax], ebp
mov eax, dword [esi + 0x90]
mov ebp, dword [edx - 0x10]
mov dword [ecx + eax + 4], ebp
mov ebp, dword [edx - 0xc]
mov dword [ecx + eax + 8], ebp
mov eax, dword [esi + 0x90]
mov ebp, dword [edx]
mov dword [ecx + eax + 0x14], ebp
mov ebp, dword [edx + 4]
mov dword [ecx + eax + 0x18], ebp
mov eax, dword [esi + 0x90]
mov ebp, dword [edx - 8]
mov dword [ecx + eax + 0xc], ebp
mov ebp, dword [edx - 4]
mov dword [ecx + eax + 0x10], ebp
mov eax, dword [esi + 0x90]
mov ebp, dword [edx + 8]
mov dword [ecx + eax + 0x1c], ebp
mov ebp, dword [edx + 0xc]
mov dword [ecx + eax + 0x20], ebp
mov eax, dword [esi + 0x90]
fild dword [edx + 0x10]
fstp qword [ecx + eax + 0x24]
mov eax, dword [esi + 0x90]
fld qword [ecx + eax + 0x24]
fcomp qword [0x567050]
lea ebp, [ecx + eax + 0x24]
fnstsw ax
test ah, 1
je 0x47f8c5
mov dword [ebp], 0
mov dword [ebp + 4], 0x3ff00000
mov eax, dword [esp + 0x14]
add edx, 0x28
add ecx, 0x2c
dec eax
mov dword [esp + 0x14], eax
jne 0x47f834
mov ebp, dword [esp + 0x18]
mov dword [esi + 0x94], edi
push ebp
call fcn.004c2eb0
add esp, 4
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 1
lea ecx, [esp + 0xc0]
push 0x94
push ecx
call edi
add esp, 0x1c
cmp eax, 1
jne 0x47f8ed
cmp dword [esp + 0xac], 0x190
jne 0x47f8ed
mov edx, dword [esi + 0x88]
push edx
call fcn.00472aa0
mov ecx, dword [esp + 0x100]
add esp, 4
cmp ecx, eax
jne 0x47f8ed
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov ecx, eax
mov eax, 0xba2e8ba3
sub ecx, 0x94
mul ecx
shr edx, 5
mov dword [esi + 0x94], edx
lea eax, [edx + edx*4 + 5]
lea ecx, [edx + eax*2 + 1]
shl ecx, 2
push ecx
call fcn.004c2e90
add esp, 8
cmp eax, ebp
mov dword [esi + 0x90], eax
push ebx
jne 0x47f9a1
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x94], ebp
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x94]
push 1
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*2]
shl ecx, 2
push ecx
push eax
call edi
add esp, 0x10
cmp eax, 1
je 0x47f8ed
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x94], ebp
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret