Function at 0x403a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor eax, eax
neg edx
sbb eax, ecx
jl 0x403a76
jmp 0x403a61
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
jmp 0x403c4b
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x38], 0
je 0x403ab2
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov edx, dword [ebp + 8]
mov eax, esp
mov dword [eax + 8], edi
mov dword [eax + 4], esi
mov dword [eax], edx
call fcn.00404830
sub esp, 0xc
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
jmp 0x403c4b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0x28], xmm0
call fcn.00404cd0
mov dword [esp + 0x24], eax
xor eax, eax
cmp eax, dword [esp + 0x24]
jae 0x403b4e
lea ecx, [esp + 0x30]
lea eax, [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00405850
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.00404d60
mov ecx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00404d20
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
sub eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00404d80
sub esp, 4
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x4c], 0
je 0x403c32
mov ecx, dword [esp + 0x14]
call fcn.00403050
mov dword [esp + 0x1c], 0xfff
mov eax, 0xfff
cmp eax, dword [esp + 0x30]
jae 0x403bef
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x4c]
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], 0xfff
mov dword [esp + 0xc], eax
call fcn.0042067e
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x30], eax
cmp dword [esp + 0x18], 0xfff
je 0x403bea
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub ecx, edx
sbb eax, 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
jmp 0x403c4b
jmp 0x403b6d
xor eax, eax
cmp eax, dword [esp + 0x30]
jae 0x403c2d
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x4c]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0042067e
mov ecx, eax
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x30], eax
jmp 0x403c32
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub ecx, edx
sbb eax, 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret 0xc