Function at 0x402db0
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 0x402e06
jmp 0x402df1
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
jmp 0x402fe1
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x38], 0
je 0x402e42
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.00403bb0
sub esp, 0xc
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
jmp 0x402fe1
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.00404070
mov dword [esp + 0x24], eax
xor eax, eax
cmp eax, dword [esp + 0x24]
jae 0x402ee4
lea ecx, [esp + 0x30]
lea eax, [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00404c90
sub esp, 8
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.00404100
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.004040c0
sub esp, 0xc
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.00404120
sub esp, 4
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x4c], 0
je 0x402fc8
mov ecx, dword [esp + 0x14]
call fcn.00402400
mov dword [esp + 0x1c], 0xfff
mov eax, 0xfff
cmp eax, dword [esp + 0x30]
jae 0x402f85
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.00443490
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 0x402f80
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 0x402fe1
jmp 0x402f03
xor eax, eax
cmp eax, dword [esp + 0x30]
jae 0x402fc3
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.00443490
mov ecx, eax
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x30], eax
jmp 0x402fc8
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