Function at 0x408990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
push 0x4aa200
push str.DNODES2
push 0x4a9c00
push str._s_s_s
push 0x4a9a00
call fcn.004015c0
push 0x48a470
push 0x4a9a00
call fcn.0044c7ec
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x408d3a
push ebx
push 1
lea eax, [esp + 0x14]
push 4
push eax
call fcn.0044ca9e
mov edi, 1
add esp, 0x10
cmp dword [esp + 0xc], edi
jl 0x408a16
mov esi, 0x612bd4
push ebx
push 1
push 0x94
push esi
call fcn.0044ca9e
inc edi
add esp, 0x10
add esi, 0x94
cmp edi, dword [esp + 0xc]
jle 0x4089f8
push ebx
call fcn.0044c4fe
add esp, 4
mov dword [esp + 0x1c], 1
cmp dword [esp + 0xc], 1
jl 0x408cc2
mov ecx, 0x612c3c
mov edx, 1
mov dword [esp + 0x18], ecx
movss xmm0, dword [ecx - 0x18]
xor edi, edi
movss dword [esp + 0x20], xmm0
xor eax, eax
movss xmm0, dword [ecx - 0x14]
movss dword [esp + 0x24], xmm0
lea ebx, [edi + 1]
movss xmm0, dword [0x48d848]
mov dword [esp + 0x10], eax
movss dword [esp + 0x14], xmm0
mov dword [ecx], eax
mov dword [ecx + 4], eax
cmp dx, word [0x58272a]
jg 0x408be3
movsx esi, word [ebx*2 + 0x582740]
push esi
push 0x48a8ec
push 0x51920a
call fcn.004015c0
lea eax, [esi + esi*8]
add esp, 0xc
movzx eax, word [eax*8 + 0x4f3362]
mov word [0x51910c], ax
test ax, ax
jle 0x408bcf
push 0x4aa200
push 0x51920a
push 0x48a8f0
push 0x4a9c00
push str._s_s_s_s
push 0x4a9a00
call fcn.004015c0
push 0x4a9a00
call fcn.004026f0
push 0x48a470
push 0x4a9a00
call fcn.0044c7ec
mov esi, 1
mov dword [0x630d94], eax
mov ecx, esi
add esp, 0x24
cmp cx, word [0x51910c]
jg 0x408bc6
movss xmm1, dword [esp + 0x14]
push eax
push 1
push 0x3c
push 0x4e779c
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x3c], xmm1
call fcn.0044ca9e
movss xmm1, dword [esp + 0x30]
add esp, 0x10
movss xmm0, dword [esp + 0x24]
subss xmm0, dword [0x4e77a0]
subss xmm1, dword [0x4e779c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x408b6c
sqrtsd xmm0, xmm0
jmp 0x408b71
call fcn.0045bb50
movss xmm1, dword [esp + 0x14]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x408b89
movaps xmm1, xmm0
movss dword [esp + 0x14], xmm1
movss xmm2, dword [esp + 0x28]
mov ecx, ebx
comiss xmm2, xmm0
mov eax, esi
movss xmm2, dword [esp + 0x2c]
cmovbe ecx, dword [esp + 0x10]
comiss xmm2, xmm0
mov dword [esp + 0x10], ecx
cmovbe eax, edi
inc esi
mov edi, eax
movsx eax, word [0x51910c]
cmp esi, eax
mov eax, dword [0x630d94]
jle 0x408b14
mov dword [esp + 0x10], ecx
push eax
call fcn.0044c4fe
add esp, 4
movsx eax, word [0x58272a]
inc ebx
cmp ebx, eax
jle 0x408a81
mov eax, dword [esp + 0x10]
push 0x4aa200
push eax
push str.SP_ASN
push 0x4a9c00
push str._s_s_i_s
push 0x4a9a00
call fcn.004015c0
push 0x48a470
push 0x4a9a00
call fcn.0044c7ec
mov esi, eax
add esp, 0x20
test esi, esi
je 0x408c9c
shl edi, 4
push 0
sub edi, 0x10
push edi
push esi
call fcn.0045c24c
push esi
push 1
lea eax, [esp + 0x48]
push 4
push eax
call fcn.0044ca9e
push esi
push 1
lea eax, [esp + 0x54]
push 4
push eax
call fcn.0044ca9e
push esi
push 1
lea eax, [esp + 0x70]
push 4
push eax
call fcn.0044ca9e
push esi
push 1
lea eax, [esp + 0x7c]
push 4
push eax
call fcn.0044ca9e
add esp, 0x4c
push esi
call fcn.0044c4fe
movss xmm0, dword [esp + 0x34]
add esp, 4
maxss xmm0, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
movss dword [ecx], xmm0
movss xmm0, dword [esp + 0x38]
maxss xmm0, dword [esp + 0x3c]
movss dword [ecx + 4], xmm0
jmp 0x408ca0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add ecx, 0x94
inc edx
mov dword [esp + 0x18], ecx
cmp edx, dword [esp + 0xc]
mov dword [esp + 0x1c], edx
mov edx, 1
jle 0x408a40
push 0x4aa200
push str.DNODES2
push 0x4a9c00
push str._s_s_s
push 0x4a9a00
call fcn.004015c0
push 0x48a574
push 0x4a9a00
call fcn.0044c7ec
mov ebx, eax
lea eax, [esp + 0x28]
push ebx
push 1
push 4
push eax
call fcn.0044d1b5
mov edi, 1
add esp, 0x2c
cmp dword [esp + 0xc], edi
jl 0x408d31
mov esi, 0x612bd4
push ebx
push 1
push 0x94
push esi
call fcn.0044d1b5
inc edi
add esp, 0x10
add esi, 0x94
cmp edi, dword [esp + 0xc]
jle 0x408d13
push ebx
call fcn.0044c4fe
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret