Function at 0x475480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [esp + 4], 0x52f43b
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4756d1
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov dword [esp + 8], 0
mov dword [esp + 4], 8
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x52f5cd
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004508c4
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x47561a
mov edi, 0x30
xor esi, esi
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x475663
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 4
lea eax, [ebp - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x52f5e2
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004508c4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x475639
mov eax, dword [ebp - 0x20]
shl eax, 9
xor edx, edx
add eax, dword [ebx + 0x28]
adc edx, dword [ebx + 0x2c]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x52f5f2
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004508c4
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x52f609
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004508c4
mov dword [ebp - 0x20], 0
inc esi
add edi, 0x18
cmp dword [ebp - 0x1c], esi
ja 0x475530
fild qword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
js 0x475631
fstp dword [ebx + 0x3c]
mov al, 1
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
fadd dword [0x52f6fc]
jmp 0x475624
mov dword [esp], 4
call fcn.0050981c
mov dword [eax], 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5373fc
mov dword [esp], eax
call fcn.0050a02c
mov dword [esp], 4
call fcn.0050981c
mov dword [eax], 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5373fc
mov dword [esp], eax
call fcn.0050a02c
cmp edx, 3
je 0x475749
cmp edx, 2
je 0x47570e
mov dword [esp], eax
call fcn.005099c0
mov dword [esp + 0xc], 0x52f6cc
mov dword [esp + 8], 0x52f479
mov dword [esp + 4], 8
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004508c4
call fcn.00509b8c
xor eax, eax
jmp 0x475629
mov dword [esp], 4
call fcn.0050981c
mov dword [eax], 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5373fc
mov dword [esp], eax
call fcn.0050a02c
mov dword [ebp - 0x34], eax
call fcn.00509b8c
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov dword [esp], eax
call fcn.005099c0
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x52f6cc
mov dword [esp + 8], 0x52f462
mov dword [esp + 4], 8
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004508c4
jmp 0x4756c5
mov dword [esp], eax
call fcn.005099c0
mov esi, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x52f6cc
mov dword [esp + 8], 0x52f440
mov dword [esp + 4], 8
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004508c4
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004749ac
call fcn.00509b8c
test esi, esi
sete al
jmp 0x475629