Function at 0x40d5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword [0x509040]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [0x5887f0]
push edi
push 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], esi
call fcn.004039d0
add esp, 4
lea ecx, [esi + 0x1c30]
push eax
call fcn.00403fb0
mov edi, eax
mov dword [esp + 0x1c], eax
test edi, edi
sete cl
mov byte [esp + 0x18], cl
test eax, eax
jne 0x40d62b
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
call fcn.0040ae60
mov edi, eax
mov edx, dword [esp + 0x14]
mov ecx, edx
and ecx, 0xc0200
cmp ecx, 0xc0200
jne 0x40d646
or edx, 6
mov dword [esp + 0x14], edx
cmp dword [esi + 0x1c24], 0
mov ecx, dword [esi + 0x1be0]
mov eax, dword [edi + 0x294]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], eax
jne 0x40d670
cmp byte [esi + 0x1bf1], 0
je 0x40d670
mov al, 1
jmp 0x40d672
xor al, al
mov byte [edi + 0xcb], al
lea eax, [ecx - 1]
cmp dword [esp + 0x64], eax
setl ch
mov byte [esp + 0x1b], ch
test edx, 0x4000000
je 0x40d6c4
mov eax, dword [esi + 0x1dc4]
lea esi, [eax + eax*8]
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x1dc0]
mov eax, dword [edi + 0xd8]
cmp edi, dword [edx + esi*4 + 4]
setne cl
cmp eax, dword [edx + esi*4]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
setne al
or cl, al
or ch, cl
mov byte [esp + 0x1b], ch
mov byte [edi + 0xc9], ch
test ch, ch
je 0x40d6ea
or byte [edi + 0xe8], 8
or byte [edi + 0xe9], 8
or byte [edi + 0xea], 8
or byte [edi + 0xeb], 8
mov ecx, dword [esp + 0x68]
mov eax, dword [edi + 8]
cmp dword [esp + 0x64], ecx
je 0x40d736
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 8], edx
mov dword [edi + 0x294], ecx
movsd xmm0, qword [esi + 0x1bd8]
cvtpd2ps xmm0, xmm0
mov word [edi + 0xd0], ax
movss dword [edi + 0x29c], xmm0
movzx eax, word [esi + 0x1c3c]
inc dword [esi + 0x1c3c]
mov word [edi + 0xd2], ax
jmp 0x40d73a
mov dword [esp + 0x14], eax
test dword [esi + 0x1cd0], 0x200
je 0x40d760
push dword [esi + 0x1ce0]
mov edx, dword [esi + 0x1d30]
mov ecx, edi
call fcn.0041eab0
mov ecx, dword [esp + 0x6c]
add esp, 4
cmp dword [esp + 0x64], ecx
je 0x40d7b7
cmp dword [edi + 0x3c8], 0
jne 0x40d79e
cmp dword [edi + 0x3c0], 0
jne 0x40d79e
mov eax, dword [0x5887f0]
cmp byte [eax + 0xb1], 0
jne 0x40d78c
cmp byte [edi + 0x2c], 0
je 0x40d7b7
test dword [edi + 8], 0x1200001
jne 0x40d7b7
cmp byte [edi + 0xcb], 0
jne 0x40d7b7
xor edx, edx
mov ecx, edi
call fcn.0041eec0
mov ecx, dword [edi + 8]
and dword [esi + 0x1cd0], 0xffffffef
mov dword [esp + 0x14], ecx
jmp 0x40d7bb
mov ecx, dword [esp + 0x14]
test byte [edi + 0x3a5], 1
je 0x40d7cf
mov eax, dword [edi + 0x3c0]
mov edx, dword [eax + 0x68]
jmp 0x40d7e3
mov edx, dword [esi + 0x1c24]
test edx, edx
je 0x40d7e3
mov eax, dword [esi + 0x1c2c]
mov edx, dword [eax + edx*4 - 4]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x54], edx
cmp eax, dword [esp + 0x68]
je 0x40d800
mov eax, ecx
and eax, 0x5000000
neg eax
sbb eax, eax
and eax, edx
jmp 0x40d806
mov eax, dword [edi + 0x35c]
cmp dword [edi + 0xfc], 0
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], eax
jne 0x40d8b8
cmp dword [edi + 0x100], 0
jne 0x40d8a0
mov eax, dword [0x5887f0]
test eax, eax
je 0x40d842
inc dword [eax + 0x374]
push 0x20
call ecx
mov edx, dword [edi + 0x104]
add esp, 4
mov dword [esp + 0x24], eax
test edx, edx
je 0x40d890
mov ecx, dword [edi + 0xfc]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x104]
add esp, 0xc
test ecx, ecx
je 0x40d884
mov eax, dword [0x5887f0]
test eax, eax
je 0x40d884
dec dword [eax + 0x374]
push ecx
call dword [esp + 0x38]
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [edi + 0x104], eax
mov dword [edi + 0x100], 8
mov edx, dword [edi + 0xfc]
mov ecx, dword [edi + 0x104]
mov eax, dword [edi + 4]
mov dword [ecx + edx*4], eax
inc dword [edi + 0xfc]
mov ecx, dword [esi + 0x1c28]
lea edx, [esi + 0x1c24]
cmp dword [edx], ecx
jne 0x40d8fc
test ecx, ecx
je 0x40d8dd
mov eax, ecx
cdq
sub eax, edx
lea edx, [esi + 0x1c24]
sar eax, 1
add eax, ecx
jmp 0x40d8e2
mov eax, 8
mov ecx, dword [edx]
mov esi, dword [esp + 0x30]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.00421330
lea edx, [esi + 0x1c24]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov dword [eax + ecx*4], edi
inc dword [edx]
mov ecx, dword [0x5887f0]
mov dword [esi + 0x1c48], edi
mov eax, dword [ecx + 0x1c48]
movzx eax, word [eax + 0xfc]
mov word [edi + 0x20c], ax
movzx eax, word [ecx + 0x1d70]
mov word [edi + 0x20e], ax
movzx eax, word [ecx + 0x1d7c]
mov word [edi + 0x210], ax
movzx eax, word [ecx + 0x1d88]
mov word [edi + 0x212], ax
movzx eax, word [ecx + 0x1d94]
mov word [edi + 0x214], ax
movzx eax, word [ecx + 0x1dac]
mov word [edi + 0x216], ax
movzx eax, word [ecx + 0x1dc4]
mov word [edi + 0x218], ax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1c48], 0
test eax, 0x4000000
je 0x40d9c1
mov eax, dword [esi + 0x1dc4]
lea ecx, [esi + 0x1dc4]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x1dc0]
mov dword [eax + edx*4 + 4], edi
lea esi, [eax + edx*4]
push esi
call fcn.00420ec0
mov eax, dword [esi]
mov esi, dword [esp + 0x30]
mov dword [edi + 0xd8], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
cmp ecx, dword [esp + 0x68]
je 0x40d9dc
mov edx, dword [esp + 0x2c]
mov ecx, edi
push edx
mov edx, eax
call fcn.0040d510
add esp, 4
test byte [esi + 0x1cd0], 1
mov byte [esp + 0x1a], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x19], 0
je 0x40da96
mov dl, byte [edi + 0xe8]
mov ecx, dword [esi + 0x1cd4]
movsx eax, dl
test ecx, eax
setne byte [esp + 0x1a]
test ecx, eax
je 0x40da85
movss xmm1, dword [esi + 0x1cf0]
movss xmm0, dword [esi + 0x1cec]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x4fe96c]
jbe 0x40da85
mov eax, dword [esi + 0x1ce4]
mov ecx, dword [esi + 0x1ce8]
mov dword [edi + 0xf0], ecx
mov dword [edi + 0xec], eax
mov eax, dword [esi + 0x1cec]
mov ecx, dword [esi + 0x1cf0]
mov dword [edi + 0xf8], ecx
mov dword [edi + 0xf4], eax
mov eax, dword [edi + 0xe8]
movzx ecx, dl
and eax, 0xffffff00
and ecx, 0xf1
or ecx, eax
mov dword [edi + 0xe8], ecx
jmp 0x40da96
push ecx
lea edx, [esi + 0x1ce4]
mov ecx, edi
call fcn.00410d50
add esp, 4
test byte [esi + 0x1cd0], 2
xorps xmm1, xmm1
je 0x40dafc
movsx eax, byte [edi + 0xe9]
mov ecx, dword [esi + 0x1cd8]
and eax, ecx
je 0x40dac7
movss xmm0, dword [esi + 0x1cf4]
comiss xmm0, xmm1
jbe 0x40dac7
mov byte [esp + 0x13], 1
jmp 0x40dad1
xor dl, dl
mov byte [esp + 0x13], dl
test eax, eax
je 0x40dae3
movss xmm0, dword [esi + 0x1cf8]
comiss xmm0, xmm1
mov byte [esp + 0x19], 1
ja 0x40dae8
mov byte [esp + 0x19], 0
push ecx
lea edx, [esi + 0x1cf4]
mov ecx, edi
call fcn.00410e70
add esp, 4
xorps xmm1, xmm1
test byte [esi + 0x1cd0], 0x80
je 0x40db43
movss xmm0, dword [esi + 0x1d04]
comiss xmm0, xmm1
jb 0x40db24
movss dword [edi + 0xa0], xmm0
mov dword [edi + 0xa8], 0
movss xmm0, dword [esi + 0x1d08]
comiss xmm0, xmm1
jb 0x40db43
movss dword [edi + 0xa4], xmm0
mov dword [edi + 0xac], 0
test byte [esi + 0x1cd0], 4
je 0x40db60
mov eax, dword [esi + 0x1cfc]
mov ecx, dword [esi + 0x1d00]
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], ecx
jmp 0x40db78
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
je 0x40db78
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
test dword [esi + 0x1cd0], 0x400
je 0x40db9a
movups xmm0, xmmword [esi + 0x1d34]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x1d44]
movups xmmword [edi + 0x20], xmm0
test byte [esi + 0x1cd0], 8
je 0x40dbe7
mov ecx, dword [esi + 0x1cdc]
mov dl, byte [esi + 0x1d0d]
test ecx, ecx
je 0x40dbbe
movsx eax, byte [edi + 0xea]
test ecx, eax
je 0x40dbe7
movzx ecx, byte [edi + 0xea]
mov eax, dword [edi + 0xe8]
and ecx, 0xf1
shl ecx, 0x10
and eax, 0xff00ffff
or ecx, eax
mov byte [edi + 0xc6], dl
mov dword [edi + 0xe8], ecx
test byte [esi + 0x1cd0], 0x20
je 0x40dbf7
mov ecx, edi
call fcn.004109e0
cmp byte [edi + 0xc9], 0
je 0x40dc1c
and byte [edi + 0xe8], 0xf7
and byte [edi + 0xe9], 0xf7
and byte [edi + 0xea], 0xf7
and byte [edi + 0xeb], 0xf7
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
je 0x410340
mov eax, dword [esp + 0x14]
mov byte [edi + 0xc3], 1
and eax, 0x3000000
mov byte [edi + 0xcc], 0
mov dword [edi + 0x26c], 0xff7fffff
mov dword [edi + 0x270], 0xff7fffff
mov dword [edi + 0x274], 0x7f7fffff
mov dword [esp + 0x7c], eax
mov dword [edi + 0x278], 0x7f7fffff
mov eax, dword [edi + 0x100]
cmp eax, 1
jge 0x40dcab
test eax, eax
je 0x40dc8e
cdq
sub eax, edx
lea edx, [edi + 0xfc]
mov ecx, eax
sar ecx, 1
add ecx, dword [edx + 4]
jmp 0x40dc99
mov ecx, 8
lea edx, [edi + 0xfc]
mov eax, 1
cmp ecx, eax
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.00421330
mov dword [edi + 0xfc], 1
mov ecx, dword [edi + 0x2c8]
call fcn.00429ba0
cmp byte [edi + 0x3a4], 0
mov dword [edi + 0x1d4], 0xffffffff
je 0x40dd16
mov ecx, dword [edi + 0x2c8]
push dword [edi + 0x39c]
add ecx, 0xc
mov byte [edi + 0x3a4], 0
call fcn.00421530
mov ecx, dword [edi + 0x2c8]
push dword [edi + 0x3a0]
add ecx, 0x18
call fcn.004213b0
mov dword [edi + 0x3a0], 0
mov dword [edi + 0x39c], 0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40dd22
cmp dword [eax + 0x6c], edi
je 0x40dd45
test byte [edi + 0x3a5], 1
jne 0x40dd45
cmp dword [esi + 0x1f28], 0
je 0x40de15
test dword [edi + 8], 0x80000
jne 0x40de15
cmp dword [esp + 0x1c], 0
je 0x40de15
mov eax, dword [edi]
mov ecx, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40dd80
test dl, dl
je 0x40dd7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40dd80
add eax, 2
add ecx, 2
test dl, dl
jne 0x40dd60
xor eax, eax
jmp 0x40dd85
sbb eax, eax
or eax, 1
test eax, eax
je 0x40de15
mov ecx, dword [esp + 0x78]
mov edx, dword [edi + 0x84]
mov dword [esp + 0x40], edx
lea eax, [ecx + 1]
mov dword [esp + 0x24], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dda2
sub ecx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x38], eax
cmp edx, eax
jae 0x40ddfb
test ecx, ecx
je 0x40ddcf
mov eax, dword [0x5887f0]
test eax, eax
je 0x40ddcf
dec dword [eax + 0x374]
push ecx
call dword [esp + 0x38]
mov eax, dword [0x5887f0]
add esp, 4
test eax, eax
je 0x40dde6
inc dword [eax + 0x374]
push dword [esp + 0x38]
call dword [esp + 0x2c]
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], eax
push eax
push dword [esp + 0x7c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov dword [edi], eax
add esp, 0xc
mov eax, dword [esp + 0x40]
mov dword [edi + 0x84], eax
mov al, byte [edi + 0xe5]
lea edx, [edi + 0x5c]
mov byte [esp + 0x53], al
mov ecx, edi
lea eax, [edi + 0x64]
push eax
call fcn.0040b470
mov al, byte [edi + 0xe4]
add esp, 4
test al, al
jle 0x40de42
dec al
mov byte [edi + 0xe4], al
mov al, byte [edi + 0xe5]
test al, al
jle 0x40de54
dec al
mov byte [edi + 0xe5], al
mov al, byte [edi + 0xe6]
test al, al
jle 0x40de66
dec al
mov byte [edi + 0xe6], al
cmp dword [esp + 0x1c], 0
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x19]
jne 0x40de84
test cl, cl
je 0x40de7d
test dl, dl
jne 0x40de84
mov byte [edi + 0xe5], 1
cmp byte [esp + 0x1b], 0
je 0x40dee1
mov eax, dword [esp + 0x14]
test eax, 0x6000000
je 0x40dee1
mov byte [edi + 0xe5], 1
test al, 0x40
je 0x40dee1
test cl, cl
jne 0x40deb3
mov dword [edi + 0x54], 0
mov dword [edi + 0x4c], 0
test dl, dl
jne 0x40dec5
mov dword [edi + 0x58], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov ecx, edi
call fcn.00418360
mov ecx, dword [edi + 0x30]
mov edx, dword [0x5887f0]
test ecx, ecx
je 0x40defe
mov eax, dword [edx + 0x1be0]
mov dword [ecx + 0x4c], eax
movss xmm0, dword [0x4fe9fc]
cmp dword [edx + 0x1de0], ecx
je 0x40df51
test ecx, ecx
je 0x40df41
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x1ddc], eax
mov eax, dword [edx + 0x1560]
mov dword [edx + 0x1de0], ecx
test eax, eax
je 0x40df51
push ecx
call eax
mov edx, dword [0x5887f0]
add esp, 4
movss xmm0, dword [0x4fe9fc]
jmp 0x40df51
mov dword [edx + 0x1ddc], 0x3f800000
mov dword [edx + 0x1de0], ecx
test dword [esi + 8], 0x8000
je 0x40df62
mov eax, dword [edi + 0x30]
movss xmm0, dword [eax + 0x28]
movss dword [edi + 0x2c0], xmm0
mov dword [edx + 0x1c48], edi
mov eax, dword [edi + 0x1d4]
cmp eax, 0xffffffff
je 0x40df89
imul eax, eax, 0x228
add eax, dword [edx + 0x1ff8]
jmp 0x40df8b
xor eax, eax
movss xmm0, dword [edx + 0x19dc]
mov dword [edx + 0x1fec], eax
mulss xmm0, dword [edi + 0x2bc]
mov eax, dword [edi + 0x35c]
mulss xmm0, dword [edi + 0x2c0]
test eax, eax
je 0x40dfbb
mulss xmm0, dword [eax + 0x2bc]
movss dword [edx + 0x19ec], xmm0
movss dword [edx + 0x19d8], xmm0
mov ecx, dword [edi + 8]
mov dword [esp + 0x14], ecx
test ecx, 0x1000000
je 0x40dfe4
movss xmm0, dword [esi + 0x15c4]
jmp 0x40e006
test ecx, 0x6000000
je 0x40dffe
test ecx, 0x8000000
jne 0x40dffe
movss xmm0, dword [esi + 0x15cc]
jmp 0x40e006
movss xmm0, dword [esi + 0x15a8]
mov eax, edi
xorps xmm7, xmm7
movss dword [eax + 0x80], xmm0
test byte [edi + 0x3a5], 1
jne 0x40e050
mov eax, ecx
and eax, 0x5010000
cmp eax, 0x1000000
jne 0x40e050
ucomiss xmm0, xmm7
lahf
test ah, 0x44
jp 0x40e050
test ecx, 0x400
je 0x40e048
movss xmm0, dword [esi + 0x15a0]
xorps xmm1, xmm1
jmp 0x40e060
xorps xmm0, xmm0
xorps xmm1, xmm1
jmp 0x40e060
movss xmm1, dword [esi + 0x159c]
movss xmm0, dword [esi + 0x15a0]
mov eax, edi
movss dword [eax + 0x74], xmm1
movss dword [eax + 0x78], xmm0
movss xmm0, dword [eax + 0x74]
maxss xmm0, dword [esi + 0x15e0]
maxss xmm0, dword [esi + 0x1d54]
movss dword [edi + 0x18c], xmm0
mov eax, dword [esi + 0x1d58]
mov dword [edi + 0x190], eax
test cl, 0x21
jne 0x40e23e
test byte [edi + 0x3a5], 1
jne 0x40e23e
test byte [edi + 8], 1
je 0x40e0b6
xorps xmm3, xmm3
jmp 0x40e0f0
movss xmm0, dword [edx + 0x19dc]
mulss xmm0, dword [edi + 0x2bc]
mov eax, dword [edi + 0x35c]
mulss xmm0, dword [edi + 0x2c0]
test eax, eax
je 0x40e0e0
mulss xmm0, dword [eax + 0x2bc]
movss xmm3, dword [edx + 0x15d4]
addss xmm3, xmm3
addss xmm3, xmm0
movss xmm5, dword [edi + 0x44]
movaps xmm4, xmm5
movss xmm6, dword [edi + 0x48]
addss xmm4, dword [edi + 0x54]
addss xmm3, dword [edi + 0x48]
cmp dword [esi + 0x1c4c], edi
jne 0x40e208
cmp dword [esi + 0x1c70], 0
jne 0x40e208
cmp dword [esi + 0x1c74], 0
jne 0x40e208
mov eax, dword [edx + 0x1c48]
movss xmm1, dword [edx + 0x15f8]
minss xmm4, dword [eax + 0x274]
minss xmm3, dword [eax + 0x278]
maxss xmm5, dword [eax + 0x26c]
maxss xmm6, dword [eax + 0x270]
movaps xmm0, xmm4
addss xmm0, xmm1
movaps xmm2, xmm3
movss dword [esp + 0x58], xmm6
movss dword [esp + 0x24], xmm0
movss xmm0, dword [edx + 0x15fc]
addss xmm2, xmm0
subss xmm6, xmm0
movss xmm0, dword [edx + 0xe4]
movss dword [esp + 0x38], xmm2
movaps xmm2, xmm5
subss xmm2, xmm1
comiss xmm0, xmm2
jb 0x40e208
movss xmm0, dword [edx + 0xe8]
comiss xmm0, xmm6
jb 0x40e208
movss xmm1, dword [esp + 0x24]
comiss xmm1, dword [edx + 0xe4]
jbe 0x40e208
movss xmm1, dword [esp + 0x38]
comiss xmm1, xmm0
jbe 0x40e208
mov eax, dword [edx + 0x1de4]
movss xmm2, dword [eax + 0xc]
movss xmm6, dword [eax + 8]
movaps xmm0, xmm2
addss xmm0, dword [eax + 0x14]
movaps xmm1, xmm6
addss xmm1, dword [eax + 0x10]
comiss xmm0, dword [esp + 0x58]
jbe 0x40e208
comiss xmm3, xmm2
jbe 0x40e208
comiss xmm1, xmm5
jbe 0x40e208
comiss xmm4, xmm6
jbe 0x40e208
cmp byte [esi + 0x3e5], 0
je 0x40e208
mov byte [edi + 0xc7], 1
cmp byte [edi + 0xc7], 0
je 0x40e245
cmp byte [edi + 0xc6], 0
sete al
test dword [edi + 8], 0x100
mov byte [edi + 0xc6], al
jne 0x40e245
comiss xmm7, dword [edx + 0x2fe4]
jb 0x40e245
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x2fe4], eax
jmp 0x40e245
mov byte [edi + 0xc6], 0
lea eax, [edi + 0x64]
mov byte [edi + 0xc7], 0
push eax
mov edx, edi
lea ecx, [esp + 0xf8]
call fcn.0040b5a0
mov cl, byte [esp + 0x1c]
add esp, 4
test byte [esp + 0x14], 0x40
mov byte [esp + 0x12], cl
je 0x40e2b6
cmp byte [edi + 0xc6], 0
jne 0x40e2b6
cmp byte [esp + 0x13], 0
jne 0x40e293
movss xmm0, dword [esp + 0xf4]
movss dword [edi + 0x54], xmm0
mov byte [esp + 0x18], 1
cmp byte [esp + 0x19], 0
jne 0x40e36d
movss xmm0, dword [esp + 0xf8]
movss dword [edi + 0x58], xmm0
mov byte [esp + 0x12], 1
jmp 0x40e36d
mov al, byte [edi + 0xdc]
test al, al
jg 0x40e2cd
cmp byte [edi + 0xdd], 0
jle 0x40e36d
cmp byte [esp + 0x13], 0
jne 0x40e304
test al, al
jle 0x40e304
cmp byte [edi + 0xdf], 0
je 0x40e2f1
movss xmm0, dword [edi + 0x54]
maxss xmm0, dword [esp + 0xf4]
jmp 0x40e2fa
movss xmm0, dword [esp + 0xf4]
movss dword [edi + 0x54], xmm0
mov byte [esp + 0x18], 1
cmp byte [esp + 0x19], 0
jne 0x40e340
cmp byte [edi + 0xdd], 0
jle 0x40e340
cmp byte [edi + 0xdf], 0
je 0x40e32d
movss xmm0, dword [edi + 0x58]
maxss xmm0, dword [esp + 0xf8]
jmp 0x40e336
movss xmm0, dword [esp + 0xf8]
movss dword [edi + 0x58], xmm0
mov byte [esp + 0x12], 1
cmp byte [edi + 0xc6], 0
jne 0x40e36d
test dword [edi + 8], 0x100
mov ecx, dword [0x5887f0]
jne 0x40e36d
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x2fe4]
jb 0x40e36d
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2fe4], eax
lea eax, [edi + 0x54]
mov edx, edi
push eax
lea ecx, [esp + 0xc4]
call fcn.0040b220
mov edx, dword [0x5887f0]
add esp, 4
cmp byte [edi + 0xc6], 0
mov dword [esp + 0x20], edx
movss xmm2, dword [eax]
movss xmm0, dword [eax + 4]
movss dword [edi + 0x54], xmm2
movss dword [edi + 0x58], xmm0
je 0x40e419
test dword [esp + 0x14], 0x1000000
jne 0x40e419
test byte [edi + 8], 1
je 0x40e3bd
xorps xmm1, xmm1
jmp 0x40e3f7
movss xmm0, dword [edx + 0x19dc]
mulss xmm0, dword [edi + 0x2bc]
mov eax, dword [edi + 0x35c]
mulss xmm0, dword [edi + 0x2c0]
test eax, eax
je 0x40e3e7
mulss xmm0, dword [eax + 0x2bc]
movss xmm1, dword [edx + 0x15d4]
addss xmm1, xmm1
addss xmm1, xmm0
addss xmm2, dword [edi + 0x44]
addss xmm1, dword [edi + 0x48]
subss xmm2, dword [edi + 0x44]
subss xmm1, dword [edi + 0x48]
movss dword [esp + 0x70], xmm2
movss dword [esp + 0x74], xmm1
jmp 0x40e427
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x58]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x70]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x50], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 0x4c], eax
test cl, 1
je 0x40e443
xorps xmm1, xmm1
jmp 0x40e47d
movss xmm0, dword [edx + 0x19dc]
mulss xmm0, dword [edi + 0x2bc]
mov eax, dword [edi + 0x35c]
mulss xmm0, dword [edi + 0x2c0]
test eax, eax
je 0x40e46d
mulss xmm0, dword [eax + 0x2bc]
movss xmm1, dword [edx + 0x15d4]
addss xmm1, xmm1
addss xmm1, xmm0
test ecx, 0x400
je 0x40e4c9
movss xmm2, dword [edx + 0x19dc]
mulss xmm2, dword [edi + 0x2bc]
mov eax, dword [edi + 0x35c]
mulss xmm2, dword [edi + 0x2c0]
test eax, eax
je 0x40e4af
mulss xmm2, dword [eax + 0x2bc]
movss xmm0, dword [edx + 0x15d4]
addss xmm2, dword [edi + 0x190]
addss xmm0, xmm0
addss xmm2, xmm0
jmp 0x40e4cc
xorps xmm2, xmm2
cmp byte [esp + 0x1b], 0
addss xmm2, xmm1
movss dword [esp + 0x58], xmm2
je 0x40e523
mov eax, dword [esp + 0x14]
and eax, 0xc000000
mov dword [edi + 0xe0], 0xffffffff
cmp eax, 0x4000000
jne 0x40e523
cmp byte [esp + 0x1a], 0
jne 0x40e523
mov eax, dword [esi + 0x1dc4]
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x1dcc]
movss xmm0, dword [eax + ecx*4 - 0x10]
movss xmm1, dword [eax + ecx*4 - 0xc]
movss dword [edi + 0x44], xmm0
movss dword [edi + 0x48], xmm1
test dword [esp + 0x14], 0x1000000
je 0x40e669
mov ecx, dword [esp + 0x2c]
mov ax, word [ecx + 0x1c0]
mov word [edi + 0xd0], ax
mov eax, dword [ecx + 0x1c4]
mov ecx, dword [ecx + 0x1c0]
cmp ecx, eax
jne 0x40e616
inc ecx
test eax, eax
je 0x40e571
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add eax, dword [edx + 0x1c4]
mov edx, dword [esp + 0x20]
jmp 0x40e576
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
cmp ecx, dword [eax + 0x1c4]
jle 0x40e616
test edx, edx
je 0x40e599
inc dword [edx + 0x374]
lea eax, [ecx*4]
push eax
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x24], eax
mov edx, dword [ecx + 0x1c8]
test edx, edx
je 0x40e5fb
mov ecx, dword [ecx + 0x1c0]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [eax + 0x1c8]
test ecx, ecx
je 0x40e5eb
mov eax, dword [0x5887f0]
test eax, eax
je 0x40e5eb
dec dword [eax + 0x374]
push ecx
call dword [esp + 0x38]
mov eax, dword [esp + 0x28]
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x1c8], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x1c4], eax
mov eax, dword [0x5887f0]
mov dword [esp + 0x20], eax
jmp 0x40e61a
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ecx + 0x1c0]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x1c8]
mov dword [eax + ecx*4], edi
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0x1a]
inc dword [ecx + 0x1c0]
test edx, 0x4000000
jne 0x40e671
test al, al
jne 0x40e671
cmp dword [esp + 0x7c], 0x3000000
je 0x40e671
mov eax, dword [ecx + 0x108]
mov ecx, dword [ecx + 0x10c]
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], ecx
jmp 0x40e66d
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x1a]
movss xmm1, dword [edi + 0xec]
ucomiss xmm1, dword [0x4feb00]
lahf
test ah, 0x44
jnp 0x40e6d7
cmp byte [edi + 0xe5], 0
jne 0x40e6d7
movss xmm0, dword [edi + 0x4c]
lea edx, [esp + 0x70]
mulss xmm0, dword [edi + 0xf4]
mov ecx, edi
push 0
subss xmm1, xmm0
movss xmm0, dword [edi + 0xf0]
movss dword [esp + 0x74], xmm1
movss xmm1, dword [edi + 0x50]
mulss xmm1, dword [edi + 0xf8]
subss xmm0, xmm1
movss dword [esp + 0x78], xmm0
call fcn.00410d50
add esp, 4
jmp 0x40e73a
test edx, 0x10000000
je 0x40e6e8
lea ecx, [esp + 0xa0]
jmp 0x40e720
test edx, 0x4000000
je 0x40e703
test al, al
jne 0x40e703
cmp byte [esp + 0x53], al
jle 0x40e703
lea ecx, [esp + 0xb0]
jmp 0x40e720
test edx, 0x2000000
je 0x40e73a
test al, al
jne 0x40e73a
cmp dword [esp + 0x7c], 0x3000000
je 0x40e73a
lea ecx, [esp + 0x90]
mov edx, edi
call fcn.00412c60
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
movss dword [edi + 0x44], xmm0
movss dword [edi + 0x48], xmm1
cmp dword [edi + 0x40], 0
jl 0x40e8ab
cmp byte [edi + 0xc2], 0
jne 0x40e8ab
mov eax, dword [edi + 0x30]
test dword [eax + 4], 0x400
jne 0x40e8ab
movss xmm0, dword [edi + 0x44]
lea ecx, [edi + 0x44]
comiss xmm0, dword [eax + 8]
movss xmm6, dword [eax + 0xc]
movaps xmm2, xmm0
movss xmm7, dword [edi + 0x48]
movaps xmm5, xmm6
movss xmm3, dword [eax + 8]
movaps xmm4, xmm7
addss xmm3, dword [eax + 0x10]
addss xmm5, dword [eax + 0x14]
addss xmm2, dword [edi + 0x4c]
addss xmm4, dword [edi + 0x50]
jb 0x40e7ae
comiss xmm7, xmm6
jb 0x40e7ae
comiss xmm3, xmm2
jb 0x40e7ae
comiss xmm5, xmm4
jae 0x40e8ab
mov edx, dword [edi + 4]
lea eax, [edi + 0x4c]
push 0x20
push eax
push ecx
mov ecx, edi
call fcn.00418090
mov edx, dword [0x5887f0]
mov ecx, eax
add esp, 0xc
mov dword [edi + 0x30], ecx
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x40e7de
mov eax, dword [edx + 0x1be0]
mov dword [ecx + 0x4c], eax
cmp dword [edx + 0x1de0], ecx
je 0x40e825
test ecx, ecx
je 0x40e815
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x1ddc], eax
mov eax, dword [edx + 0x1560]
mov dword [edx + 0x1de0], ecx
test eax, eax
je 0x40e825
push ecx
call eax
mov edx, dword [0x5887f0]
add esp, 4
mov dword [esp + 0x20], edx
jmp 0x40e825
mov dword [edx + 0x1ddc], 0x3f800000
mov dword [edx + 0x1de0], ecx
test dword [esi + 8], 0x8000
je 0x40e838
mov eax, dword [edi + 0x30]
movss xmm0, dword [eax + 0x28]
jmp 0x40e840
movss xmm0, dword [0x4fe9fc]
movss dword [edi + 0x2c0], xmm0
mov dword [edx + 0x1c48], edi
mov eax, dword [edi + 0x1d4]
cmp eax, 0xffffffff
je 0x40e867
imul eax, eax, 0x228
add eax, dword [edx + 0x1ff8]
jmp 0x40e869
xor eax, eax
movss xmm0, dword [edx + 0x19dc]
mov dword [edx + 0x1fec], eax
mulss xmm0, dword [edi + 0x2bc]
mov eax, dword [edi + 0x35c]
mulss xmm0, dword [edi + 0x2c0]
test eax, eax
je 0x40e899
mulss xmm0, dword [eax + 0x2bc]
movss dword [edx + 0x19ec], xmm0
movss dword [edx + 0x19d8], xmm0
jmp 0x40e8af
mov edx, dword [esp + 0x20]
cmp byte [edi + 0xc2], 0
mov byte [esp + 0x13], 0
je 0x40eb25
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x34], ecx
cmp byte [ecx + 0x44], 0
mov eax, dword [ecx + 8]
je 0x40e8fa
test dword [edi + 8], 0x100
xorps xmm3, xmm3
mov ecx, dword [ecx + 0xc]
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], ecx
jne 0x40e925
comiss xmm3, dword [edx + 0x2fe4]
jb 0x40e925
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x2fe4], eax
jmp 0x40e925
cmp eax, dword [edi + 0x44]
jne 0x40e907
mov eax, dword [ecx + 0xc]
cmp eax, dword [edi + 0x48]
je 0x40e922
mov esi, dword [esp + 0x34]
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x48]
mov byte [esp + 0x13], 1
mov dword [esi + 8], eax
mov eax, esi
mov esi, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
xorps xmm3, xmm3
mov ecx, dword [edi + 0x30]
cmp byte [ecx + 0x45], 0
je 0x40e969
test dword [edi + 8], 0x100
movss xmm0, dword [ecx + 0x10]
movss xmm1, dword [ecx + 0x14]
movss dword [edi + 0x54], xmm0
movss dword [edi + 0x58], xmm1
movss dword [edi + 0x4c], xmm0
movss dword [edi + 0x50], xmm1
jne 0x40e98d
comiss xmm3, dword [edx + 0x2fe4]
jb 0x40e98d
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x2fe4], eax
jmp 0x40e98d
mov eax, dword [ecx + 0x10]
cmp eax, dword [edi + 0x4c]
jne 0x40e979
mov eax, dword [ecx + 0x14]
cmp eax, dword [edi + 0x50]
je 0x40e98d
mov edx, dword [edi + 0x30]
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x50]
mov byte [esp + 0x13], 1
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
cmp byte [esp + 0x13], 0
mov eax, dword [edi + 0x30]
movss xmm0, dword [eax + 0xe4]
addss xmm0, dword [eax + 0xc]
movss xmm2, dword [eax + 0xe0]
movaps xmm1, xmm2
addss xmm1, dword [eax + 8]
movss dword [eax + 0x1c], xmm0
movss xmm0, dword [eax + 0x10]
subss xmm0, xmm2
xorps xmm2, xmm2
movss dword [eax + 0x18], xmm1
xorps xmm1, xmm1
addss xmm0, dword [eax + 0xe8]
maxss xmm2, xmm0
movss xmm0, dword [eax + 0x14]
subss xmm0, dword [eax + 0xe4]
addss xmm0, dword [eax + 0xec]
movss dword [eax + 0x20], xmm2
maxss xmm1, xmm0
movss dword [eax + 0x24], xmm1
je 0x40ea04
mov ecx, dword [edi + 0x30]
call fcn.00418c30
mov eax, dword [edi + 0x30]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 0x1b
and ecx, 0xfffffce7
and eax, 0xffffff01
mov dword [esp + 0x40], ecx
or dword [esp + 0x40], 0x200
mov dword [esp + 0x38], eax
mov eax, edx
and eax, 0x16000000
test edx, 0x2000000
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
cmove eax, ecx
cmp byte [esi + 0xb4], 0
mov dword [esp + 0x40], eax
jne 0x40ea5e
cmp dword [esp + 0x34], 0
mov dword [esp + 0x28], eax
je 0x40ea77
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
test cl, cl
jne 0x40ea7b
mov eax, dword [esp + 0x40]
or eax, 0x10
mov dword [esp + 0x28], eax
jmp 0x40ea7b
mov ecx, dword [esp + 0x38]
cmp byte [esi + 0xb5], 0
jne 0x40ea94
cmp dword [esp + 0x34], 0
je 0x40eaad
or eax, 8
mov dword [esp + 0x28], eax
jmp 0x40eaa2
or eax, 8
cmp dword [esp + 0x34], 0
mov dword [esp + 0x28], eax
je 0x40eaad
test cl, cl
jne 0x40eaad
or eax, 0x60
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x40eabc
mov ecx, dword [edi + 0x30]
mov dword [ecx + 0x2c], eax
jmp 0x40eaef
test edx, 0x6000000
je 0x40ead9
mov eax, dword [esp + 0x54]
test eax, eax
je 0x40ead9
mov eax, dword [eax + 0x30]
mov ecx, dword [edi + 0x30]
mov eax, dword [eax]
mov dword [ecx + 0x2c], eax
jmp 0x40eaef
xor eax, eax
mov ecx, 0x11111111
cmp byte [esi + 0xb6], al
cmovne ecx, eax
mov eax, dword [edi + 0x30]
mov dword [eax + 0x2c], ecx
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x40eb00
or ecx, eax
mov dword [esp + 0x28], ecx
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40eb0f
not eax
and ecx, eax
mov dword [esp + 0x28], ecx
mov eax, dword [edi + 0x30]
or ecx, 0x100
test dl, 0x80
cmovne ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
jmp 0x40eb29
mov edx, dword [esp + 0x14]
cmp byte [esp + 0x1a], 0
mov eax, dword [edi + 0x30]
movss xmm6, dword [esi + 0x1640]
movss xmm4, dword [esi + 0x163c]
maxss xmm6, dword [esi + 0x1648]
movss xmm0, dword [eax + 8]
movss xmm7, dword [eax + 0x18]
movss xmm5, dword [eax + 0x1c]
movss xmm1, dword [eax + 0xc]
addss xmm7, dword [eax + 0x20]
addss xmm5, dword [eax + 0x24]
maxss xmm4, dword [esi + 0x1644]
movss dword [esp + 0x40], xmm0
movaps xmm3, xmm6
addss xmm3, dword [eax + 0x1c]
movss dword [esp + 0xe0], xmm0
addss xmm0, dword [eax + 0x10]
movaps xmm2, xmm4
movss dword [esp + 0x28], xmm1
addss xmm2, dword [eax + 0x18]
subss xmm7, xmm4
movss dword [esp + 0xe4], xmm1
subss xmm5, xmm6
movss dword [esp + 0x38], xmm0
movss dword [esp + 0xe8], xmm0
movaps xmm0, xmm1
addss xmm0, dword [eax + 0x14]
movss dword [esp + 0x100], xmm2
movss dword [esp + 0x104], xmm3
movss dword [esp + 0x108], xmm7
movss dword [esp + 0x10c], xmm5
movss dword [esp + 0x54], xmm0
movss dword [esp + 0xec], xmm0
jne 0x40edec
test edx, 0x1000000
jne 0x40edec
cmp byte [edi + 0xdc], 0
jg 0x40edec
cmp byte [edi + 0xdd], 0
jg 0x40edec
cmp byte [edi + 0xc2], 0
jne 0x40ece4
movss xmm0, dword [esp + 0x38]
xorps xmm4, xmm4
subss xmm0, dword [esp + 0x40]
comiss xmm0, xmm4
jbe 0x40edec
movss xmm0, dword [esp + 0x54]
subss xmm0, xmm1
comiss xmm0, xmm4
jbe 0x40edec
mov edx, dword [esp + 0x20]
movss xmm1, dword [edi + 0x50]
cmp byte [edx + 0xbc], 0
je 0x40ecaa
test byte [edi + 8], 1
jne 0x40ecaa
movss xmm0, dword [edx + 0x19dc]
mulss xmm0, dword [edi + 0x2bc]
mov eax, dword [edi + 0x35c]
mulss xmm0, dword [edi + 0x2c0]
test eax, eax
je 0x40ec9a
mulss xmm0, dword [eax + 0x2bc]
movss xmm1, dword [edx + 0x15d4]
addss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [edi + 0x48]
subss xmm3, xmm1
subss xmm2, dword [edi + 0x4c]
comiss xmm3, xmm0
ja 0x40ecc4
movaps xmm3, xmm5
minss xmm3, xmm0
movss xmm0, dword [edi + 0x44]
comiss xmm2, xmm0
ja 0x40ecd5
movaps xmm2, xmm7
minss xmm2, xmm0
movss dword [edi + 0x44], xmm2
movss dword [edi + 0x48], xmm3
jmp 0x40edec
cmp dword [esi + 0x1580], 0
jle 0x40edec
movsx eax, word [eax + 0x68]
mov edx, dword [esp + 0x20]
test eax, eax
js 0x40ed13
cmp eax, dword [edx + 0x1580]
jge 0x40ed13
lea ecx, [eax + eax*8]
mov eax, dword [edx + 0x1588]
lea eax, [eax + ecx*4]
jmp 0x40ed19
lea eax, [edx + 0x1df0]
movaps xmm1, xmm4
movss xmm3, dword [edi + 0x50]
addss xmm1, dword [eax + 0x10]
movaps xmm2, xmm6
addss xmm2, dword [eax + 0x14]
movss dword [esp + 0x100], xmm1
movss dword [esp + 0x104], xmm2
movss xmm5, dword [eax + 0x18]
addss xmm5, dword [eax + 0x10]
subss xmm5, xmm4
movss xmm4, dword [eax + 0x1c]
addss xmm4, dword [eax + 0x14]
movss dword [esp + 0x108], xmm5
subss xmm4, xmm6
movss dword [esp + 0x10c], xmm4
cmp byte [edx + 0xbc], 0
je 0x40edb7
test byte [edi + 8], 1
jne 0x40edb7
movss xmm0, dword [edx + 0x19dc]
mulss xmm0, dword [edi + 0x2bc]
mov eax, dword [edi + 0x35c]
mulss xmm0, dword [edi + 0x2c0]
test eax, eax
je 0x40eda7
mulss xmm0, dword [eax + 0x2bc]
movss xmm3, dword [edx + 0x15d4]
addss xmm3, xmm3
addss xmm3, xmm0
movss xmm0, dword [edi + 0x48]
subss xmm2, xmm3
subss xmm1, dword [edi + 0x4c]
comiss xmm2, xmm0
ja 0x40edd1
movaps xmm2, xmm4
minss xmm2, xmm0
movss xmm0, dword [edi + 0x44]
comiss xmm1, xmm0
ja 0x40ede2
movaps xmm1, xmm5
minss xmm1, xmm0
movss dword [edi + 0x44], xmm1
movss dword [edi + 0x48], xmm2
cmp byte [edi + 0xc2], 0
cvttss2si eax, dword [edi + 0x44]
movd xmm1, eax
cvttss2si eax, dword [edi + 0x48]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x44], xmm1
movss dword [edi + 0x48], xmm0
jne 0x40ee58
test byte [edi + 0x3a5], 1
jne 0x40ee58
mov ecx, dword [esp + 0x14]
test ecx, 0x1000000
je 0x40ee36
movss xmm0, dword [esi + 0x15c0]
jmp 0x40ee5f
mov eax, ecx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x40ee4e
movss xmm0, dword [esi + 0x15c8]
jmp 0x40ee5f
movss xmm0, dword [esi + 0x15a4]
jmp 0x40ee5f
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
mov eax, edi
movss dword [eax + 0x7c], xmm0
xor al, al
mov dword [esp + 0x34], eax
cmp byte [esp + 0x1b], al
je 0x40eeaf
test ecx, 0x1000
jne 0x40eeaf
test ecx, 0x4000000
je 0x40ee89
mov byte [esp + 0x34], 1
jmp 0x40eeaf
test byte [edi + 0x3a5], 1
jne 0x40ee9a
test ecx, 0x1000000
jne 0x40eeaf
test ecx, 0x2000000
movzx eax, al
mov ecx, 1
cmove eax, ecx
mov dword [esp + 0x34], eax
cmp dword [edi + 0x3c4], 0
jne 0x40eec5
test byte [edi + 0x3a5], 1
je 0x40eec5
xor al, al
jmp 0x40eec7
mov al, 1
movss xmm2, dword [esi + 0x19d8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmm1, xmm2
movss xmm0, dword [edi + 0x7c]
xor ecx, ecx
addss xmm0, dword [0x4fe9fc]
mulss xmm2, dword [0x4fe9a0]
cmp byte [esi + 0xbb], cl
mulss xmm1, dword [0x4fea00]
setne cl
mov byte [esp + 0x24], al
addss xmm0, xmm2
mov dword [esp + 0xfc], 0xffffffff
inc ecx
mov dword [esp + 0x70], ecx
maxss xmm1, xmm0
cvttss2si esi, xmm1
test al, al
je 0x40ef73
cmp byte [edi + 0xc6], 0
jne 0x40ef73
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x114]
push eax
push ecx
lea eax, [esp + 0x108]
mov ecx, edi
push eax
lea edx, [esp + 0x104]
call fcn.0040b860
add esp, 0x10
test al, al
mov eax, dword [0x5887f0]
mov dword [esp + 0x20], eax
je 0x40ef73
mov byte [esp + 0x12], 1
mov byte [esp + 0x18], 1
cmp byte [edi + 0xc2], 0
mov al, byte [esp + 0xfc]
mov byte [edi + 0xcd], al
je 0x40f0a6
mov edx, dword [edi + 0x30]
cmp byte [edx + 0x44], 0
jne 0x40efa2
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x48]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [edi + 0x30]
cmp byte [edx + 0x45], 0
jne 0x40efb7
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x50]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov eax, dword [edi + 0x30]
movss xmm0, dword [eax + 0xe4]
addss xmm0, dword [eax + 0xc]
movss xmm2, dword [eax + 0xe0]
movaps xmm1, xmm2
addss xmm1, dword [eax + 8]
movss dword [eax + 0x1c], xmm0
movss xmm0, dword [eax + 0x10]
subss xmm0, xmm2
xorps xmm2, xmm2
movss dword [eax + 0x18], xmm1
xorps xmm1, xmm1
addss xmm0, dword [eax + 0xe8]
maxss xmm2, xmm0
movss xmm0, dword [eax + 0x14]
subss xmm0, dword [eax + 0xe4]
addss xmm0, dword [eax + 0xec]
movss dword [eax + 0x20], xmm2
maxss xmm1, xmm0
movss dword [eax + 0x24], xmm1
mov eax, dword [edi + 0x30]
movss xmm0, dword [eax + 0xc]
movss xmm1, dword [eax + 8]
movss dword [esp + 0xe4], xmm0
addss xmm0, dword [eax + 0x14]
movss dword [esp + 0xe0], xmm1
addss xmm1, dword [eax + 0x10]
movss dword [esp + 0xec], xmm0
movss dword [esp + 0xe8], xmm1
movaps xmm0, xmmword [esp + 0xe0]
movaps xmmword [esp + 0xe0], xmm0
movss xmm0, dword [esp + 0xec]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0xe8]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0xe4]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0xe0]
movss dword [esp + 0x40], xmm0
cmp byte [edi + 0xc6], 0
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], eax
jne 0x40f21e
cmp dword [esp + 0x1c], 0
lea eax, [esp + 0x5c]
movss xmm2, dword [edi + 0x234]
movss xmm3, dword [edi + 0x238]
subss xmm2, dword [edi + 0x22c]
subss xmm3, dword [edi + 0x230]
movss xmm4, dword [edi + 0x58]
movss xmm5, dword [edi + 0x54]
subss xmm4, dword [esp + 0x58]
addss xmm2, dword [edi + 0xb8]
addss xmm3, dword [edi + 0xbc]
jne 0x40f11f
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
jmp 0x40f147
movss xmm0, dword [edi + 0x74]
movss xmm1, dword [edi + 0x78]
addss xmm0, xmm0
addss xmm1, xmm1
addss xmm0, dword [edi + 0x5c]
addss xmm1, dword [edi + 0x60]
movss dword [esp + 0x5c], xmm0
movss dword [esp + 0x60], xmm1
cmp byte [esp + 0x18], 0
movss xmm7, dword [eax]
movss xmm1, dword [eax + 4]
jne 0x40f15a
movaps xmm5, xmm2
cmp byte [esp + 0x12], 0
jne 0x40f164
movaps xmm4, xmm3
mov ecx, dword [esp + 0x14]
test ecx, 0x4000
jne 0x40f17e
comiss xmm1, xmm4
jbe 0x40f17a
test cl, 8
je 0x40f17e
xor al, al
jmp 0x40f180
mov al, 1
mov byte [esp + 0x12], al
mov byte [edi + 0xc1], al
test ecx, 0x8000
jne 0x40f1ce
mov edx, dword [esp + 0x30]
test al, al
je 0x40f1a4
movss xmm0, dword [edx + 0x1608]
jmp 0x40f1a7
xorps xmm0, xmm0
subss xmm5, xmm0
comiss xmm7, xmm5
jbe 0x40f1c2
mov eax, ecx
and eax, 0x808
cmp eax, 0x800
mov al, byte [esp + 0x12]
je 0x40f1ce
mov byte [edi + 0xc0], 0
xorps xmm1, xmm1
jmp 0x40f1fb
mov byte [edi + 0xc0], 1
test al, al
jne 0x40f1ef
comiss xmm1, xmm4
jbe 0x40f1e7
test cl, 8
jne 0x40f1e7
mov al, 1
jmp 0x40f1e9
xor al, al
mov byte [edi + 0xc1], al
mov edx, dword [esp + 0x30]
movss xmm1, dword [edx + 0x1608]
test al, al
je 0x40f209
movss xmm0, dword [edx + 0x1608]
jmp 0x40f20c
xorps xmm0, xmm0
movss dword [edi + 0xb8], xmm0
movss dword [edi + 0xbc], xmm1
jmp 0x40f226
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov eax, ecx
and eax, 0x5000000
cmp eax, 0x1000000
jne 0x40f249
cmp dword [esp + 0x7c], 0x3000000
je 0x40f249
mov eax, dword [esp + 0x2c]
add eax, 0x26c
jmp 0x40f250
lea eax, [esp + 0xe0]
movss xmm1, dword [edi + 0x48]
movups xmm4, xmmword [eax]
mov eax, dword [edi + 8]
movss xmm5, dword [edi + 0x44]
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x50]
and eax, 1
movaps xmmword [esp + 0x80], xmm4
movaps xmm7, xmm5
mov dword [esp + 0x5c], eax
addss xmm7, dword [edi + 0x4c]
mov eax, dword [esp + 0x20]
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x6c], xmm0
je 0x40f296
xorps xmm3, xmm3
jmp 0x40f2dd
cmp dword [edi + 0x35c], 0
movss xmm0, dword [eax + 0x19dc]
mulss xmm0, dword [edi + 0x2bc]
mov edx, dword [esp + 0x30]
mulss xmm0, dword [edi + 0x2c0]
je 0x40f2cd
mov ecx, dword [edi + 0x35c]
mulss xmm0, dword [ecx + 0x2bc]
mov ecx, dword [esp + 0x14]
movss xmm3, dword [eax + 0x15d4]
addss xmm3, xmm3
addss xmm3, xmm0
movss xmm0, dword [edi + 0x48]
addss xmm1, xmm3
movaps xmm2, xmm5
movss dword [esp + 0xd4], xmm0
addss xmm2, dword [edi + 0x54]
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0xd0], xmm5
movss dword [esp + 0xdc], xmm1
movss dword [esp + 0xd8], xmm2
movss dword [edi + 0x21c], xmm5
movss dword [edi + 0x220], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [edi + 0x224], xmm7
movss dword [edi + 0x228], xmm0
test byte [edi + 0x3a5], 1
je 0x40f3aa
cmp dword [esp + 0x5c], 0
je 0x40f353
xorps xmm1, xmm1
jmp 0x40f39a
cmp dword [edi + 0x35c], 0
movss xmm0, dword [eax + 0x19dc]
mulss xmm0, dword [edi + 0x2bc]
mov edx, dword [esp + 0x30]
mulss xmm0, dword [edi + 0x2c0]
je 0x40f38a
mov ecx, dword [edi + 0x35c]
mulss xmm0, dword [ecx + 0x2bc]
mov ecx, dword [esp + 0x14]
movss xmm1, dword [eax + 0x15d4]
addss xmm1, xmm1
addss xmm1, xmm0
addss xmm1, dword [edi + 0x220]
movss dword [edi + 0x220], xmm1
movss xmm0, dword [edi + 0x220]
movaps xmm5, xmm4
movss xmm1, dword [edi + 0x21c]
movaps xmm2, xmm4
shufps xmm5, xmm4, 0x55
maxss xmm1, xmm4
maxss xmm0, xmm5
shufps xmm2, xmm4, 0xff
and ecx, 0x401
movups xmmword [esp + 0xc0], xmm5
movss dword [edi + 0x21c], xmm1
movss dword [edi + 0x220], xmm0
movaps xmm0, xmm4
movss xmm1, dword [edi + 0x224]
shufps xmm0, xmm4, 0xaa
minss xmm1, xmm0
movups xmmword [esp + 0xb0], xmm0
movss xmm0, dword [edi + 0x228]
minss xmm0, xmm2
movss dword [edi + 0x224], xmm1
movups xmmword [esp + 0xa0], xmm2
movss dword [edi + 0x228], xmm0
movss xmm7, dword [edi + 0x44]
movss xmm6, dword [edi + 0x48]
movss dword [edi + 0x22c], xmm7
movaps xmm0, xmm6
addss xmm7, dword [edi + 0x4c]
addss xmm6, dword [edi + 0x50]
addss xmm0, dword [esp + 0x58]
subss xmm7, dword [edi + 0xb8]
subss xmm6, dword [edi + 0xbc]
movss dword [esp + 0x5c], xmm0
movss dword [edi + 0x230], xmm0
movss dword [edi + 0x234], xmm7
movss dword [edi + 0x238], xmm6
cmp ecx, 1
jne 0x40f48f
movss xmm0, dword [edi + 0x80]
jmp 0x40f497
movss xmm0, dword [edx + 0x15dc]
movss xmm2, dword [0x4fe9b8]
movss dword [esp + 0x1c], xmm0
addss xmm7, xmm2
movss xmm0, dword [edi + 0x74]
addss xmm6, xmm2
mulss xmm0, xmm2
movss xmm3, dword [edi + 0x80]
cvttss2si eax, xmm0
movss xmm0, dword [edi + 0x44]
subss xmm6, xmm3
addss xmm0, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
maxss xmm1, xmm3
movups xmm3, xmmword [esp + 0xa0]
addss xmm0, xmm1
subss xmm7, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x23c], xmm0
movss xmm0, dword [esp + 0x5c]
addss xmm0, xmm2
addss xmm0, dword [esp + 0x1c]
cvttss2si ecx, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvttss2si ecx, xmm7
movss dword [edi + 0x240], xmm0
movd xmm0, ecx
cvttss2si ecx, xmm6
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x244], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x248], xmm0
movss xmm0, dword [edi + 0x240]
comiss xmm5, xmm0
jbe 0x40f558
movaps xmm1, xmm5
jmp 0x40f55f
movaps xmm1, xmm3
minss xmm1, xmm0
movups xmm6, xmmword [esp + 0xb0]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm4, xmm2
jbe 0x40f578
movaps xmm0, xmm4
jmp 0x40f57f
movaps xmm0, xmm6
minss xmm0, xmm2
movss dword [edi + 0x23c], xmm0
movss dword [edi + 0x240], xmm1
movss xmm1, dword [edi + 0x248]
comiss xmm5, xmm1
jbe 0x40f5a1
movaps xmm0, xmm5
jmp 0x40f5a8
movaps xmm0, xmm3
minss xmm0, xmm1
movss xmm1, dword [edi + 0x244]
comiss xmm4, xmm1
ja 0x40f5bc
movaps xmm4, xmm6
minss xmm4, xmm1
movss dword [edi + 0x244], xmm4
xorps xmm2, xmm2
movss dword [edi + 0x248], xmm0
movss xmm0, dword [edi + 0x4c]
comiss xmm0, xmm2
jbe 0x40f5ed
test dword [esp + 0x14], 0x2000040
jne 0x40f5ed
mulss xmm0, dword [0x4fe9c4]
jmp 0x40f5fd
movss xmm0, dword [edx + 0x19d8]
mulss xmm0, dword [0x4fea74]
cvttss2si eax, xmm0
mov ecx, edi
mov edx, edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x2a0], xmm0
lea ecx, [esp + 0x90]
movss xmm1, dword [edi + 0x74]
movss xmm0, dword [edi + 0x234]
addss xmm1, xmm1
subss xmm0, dword [edi + 0x22c]
addss xmm1, dword [edi + 0x5c]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss xmm1, dword [edi + 0x78]
addss xmm1, xmm1
movss dword [edi + 0x98], xmm0
movss xmm0, dword [edi + 0x238]
subss xmm0, dword [edi + 0x230]
addss xmm1, dword [edi + 0x60]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [edi + 0x9c], xmm0
call fcn.00411b00
mov ecx, dword [edi + 0x2c8]
mov dword [esp + 0x6c], ecx
add ecx, 0x48
mov dword [esp + 0x1c], ecx
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, dword [esp + 0x30]
movss dword [edi + 0x90], xmm0
movss dword [edi + 0x94], xmm1
mov dword [edi + 0xa0], 0x7f7fffff
mov dword [edi + 0xa4], 0x7f7fffff
mov eax, dword [eax + 0x19d4]
mov edx, dword [ecx]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
cmp edx, eax
jne 0x40f708
inc edx
mov dword [esp + 0x5c], edx
test eax, eax
je 0x40f6f4
cdq
sub eax, edx
mov edx, dword [esp + 0x5c]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40f6f9
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.00421330
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x20]
mov dword [eax + edx*4], ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc dword [ecx]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x70], eax
call fcn.00429f60
mov ecx, dword [0x5887f0]
movaps xmm0, xmmword [esp + 0x80]
comiss xmm0, dword [esp + 0xb0]
mov eax, dword [ecx + 0x1c48]
mov byte [eax + 0xc5], 1
mov eax, dword [ecx + 0x1c48]
mov dword [esp + 0x20], eax
movaps xmmword [esp + 0x90], xmm0
mov eax, dword [eax + 0x2c8]
mov dword [esp + 0x1c], eax
jb 0x40f784
movss dword [esp + 0x98], xmm0
movaps xmm0, xmmword [esp + 0x90]
movaps xmmword [esp + 0x80], xmm0
movups xmm0, xmmword [esp + 0xc0]
comiss xmm0, dword [esp + 0xa0]
jb 0x40f7af
movss dword [esp + 0x9c], xmm0
movaps xmm0, xmmword [esp + 0x90]
movaps xmmword [esp + 0x80], xmm0
mov edx, dword [eax + 0x3c]
lea ecx, [eax + 0x3c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], ecx
cmp edx, eax
jne 0x40f7eb
inc edx
mov dword [esp + 0x5c], edx
test eax, eax
je 0x40f7d7
cdq
sub eax, edx
mov edx, dword [esp + 0x5c]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40f7dc
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.00421690
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
add eax, eax
movaps xmm0, xmmword [esp + 0x80]
movups xmmword [edx + eax*8], xmm0
inc dword [ecx]
mov ecx, dword [esp + 0x1c]
movups xmmword [ecx + 0x60], xmm0
call fcn.00429e60
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x2c8]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
add ecx, ecx
test dword [esp + 0x14], 0x8000000
movss xmm0, dword [eax + ecx*8 - 0xc]
movss xmm1, dword [eax + ecx*8 - 8]
movss xmm2, dword [eax + ecx*8 - 4]
mov eax, dword [eax + ecx*8 - 0x10]
mov dword [edx + 0x26c], eax
movss dword [edx + 0x270], xmm0
movss dword [edx + 0x274], xmm1
movss dword [edx + 0x278], xmm2
mov edx, dword [esp + 0x30]
je 0x40f8c4
mov eax, dword [0x5887f0]
mov eax, dword [eax + 0x1db8]
sub eax, 1
mov dword [esp + 0x5c], eax
js 0x40f8b0
lea ecx, [eax + eax*8]
mov eax, dword [0x5887f0]
lea ecx, [ecx + 1]
mov eax, dword [eax + 0x1dc0]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x40f8a0
test dword [ecx + 8], 0x8000000
jne 0x40f8b2
mov ecx, dword [esp + 0x1c]
sub ecx, 0x24
sub eax, 1
mov dword [esp + 0x1c], ecx
jns 0x40f891
xor ecx, ecx
cmp edi, ecx
jne 0x40f8c4
cmp byte [edi + 0xe5], 0
mov byte [esp + 0x12], 1
jle 0x40f8c9
mov byte [esp + 0x12], 0
mov ecx, dword [edx + 0x1f24]
test ecx, ecx
je 0x40f8f1
cmp edi, dword [ecx + 0x364]
je 0x40f8ed
mov eax, dword [edx + 0x1f28]
cmp edi, eax
jne 0x40f8f1
mov eax, dword [eax + 0x30]
cmp eax, dword [ecx + 0x30]
je 0x40f8f1
mov al, 1
jmp 0x40f8f3
xor al, al
mov cl, byte [esp + 0x12]
mov byte [esp + 0x18], al
test cl, cl
jne 0x40f907
test al, al
je 0x40fa1b
movss xmm1, dword [edx + 0x1f54]
push 0
push ecx
movzx ecx, cl
add ecx, 0x35
mov dword [esp], 0
call fcn.004041e0
mov ecx, dword [edi + 0x2c8]
push eax
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0xf0]
push eax
call fcn.0042c1d0
cmp byte [esp + 0x18], 0
je 0x40fa1b
mov edx, dword [esp + 0x30]
cmp edi, dword [edx + 0x1f24]
jne 0x40fa1b
movss xmm2, dword [edi + 0x44]
movss xmm3, dword [edi + 0x48]
movaps xmm1, xmm2
movss xmm0, dword [edx + 0x19d8]
movaps xmm4, xmm3
addss xmm2, dword [edi + 0x4c]
addss xmm3, dword [edi + 0x50]
subss xmm1, xmm0
subss xmm4, xmm0
addss xmm2, xmm0
addss xmm3, xmm0
movss xmm0, dword [esp + 0x40]
comiss xmm0, xmm1
movss dword [esp + 0xe0], xmm1
movss dword [esp + 0xe4], xmm4
movss dword [esp + 0xe8], xmm2
movss dword [esp + 0xec], xmm3
jb 0x40f9d5
movss xmm0, dword [esp + 0x28]
comiss xmm0, xmm4
jb 0x40f9d5
comiss xmm2, dword [esp + 0x38]
jb 0x40f9d5
comiss xmm3, dword [esp + 0x54]
jae 0x40fa1b
movss xmm1, dword [edx + 0x1f30]
mulss xmm1, dword [0x4fe9a4]
push 0
movss xmm0, dword [edx + 0x15a4]
push ecx
mov ecx, 0x34
movss dword [esp], xmm0
call fcn.004041e0
mov ecx, dword [edi + 0x2c8]
push eax
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0xf0]
push eax
call fcn.0042c1d0
mov al, byte [edi + 0x3a5]
test al, 1
je 0x40fa2d
test al, 2
je 0x40fb0c
mov eax, dword [esp + 0x14]
and eax, 0x5000000
mov byte [esp + 0x12], 0
cmp eax, 0x1000000
jne 0x40fa7c
cmp dword [esp + 0x7c], 0x3000000
je 0x40fa7c
mov edx, dword [edi + 0x2c8]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x40fa7c
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x2c8]
cmp dword [eax + 0x18], 0
jle 0x40fa7c
mov byte [esp + 0x12], 1
mov dword [edi + 0x2c8], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x1f20]
test ecx, ecx
jne 0x40fa90
mov ecx, dword [eax + 0x1e18]
cmp byte [esp + 0x34], 0
jne 0x40fac2
test ecx, ecx
je 0x40fabb
mov eax, dword [edi + 0x368]
cmp eax, dword [ecx + 0x368]
je 0x40fac2
mov eax, dword [edi + 0x3c0]
test eax, eax
je 0x40fabb
cmp eax, dword [ecx + 0x3c0]
je 0x40fac2
mov byte [esp + 0x1c], 0
jmp 0x40fac7
mov byte [esp + 0x1c], 1
movd xmm0, esi
lea eax, [esp + 0x110]
push ecx
cvtdq2ps xmm0, xmm0
lea edx, [esp + 0xd4]
mov ecx, edi
movss dword [esp], xmm0
push eax
push dword [esp + 0x78]
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.0040c780
add esp, 0x14
cmp byte [esp + 0x12], 0
je 0x40fb0c
lea eax, [edi + 0x2cc]
mov dword [edi + 0x2c8], eax
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x1f24], edi
jne 0x40fc33
movss xmm3, dword [edi + 0x44]
movss xmm2, dword [edi + 0x48]
movaps xmm4, xmm3
movss xmm1, dword [esi + 0x19d8]
movaps xmm0, xmm2
addss xmm3, dword [edi + 0x4c]
addss xmm2, dword [edi + 0x50]
movss xmm6, dword [edi + 0x7c]
subss xmm4, xmm1
movss xmm7, dword [esp + 0x40]
subss xmm0, xmm1
movaps xmm5, xmm6
maxss xmm5, dword [esi + 0x15a4]
addss xmm3, xmm1
comiss xmm7, xmm4
addss xmm2, xmm1
movss dword [esp + 0xe0], xmm4
movss dword [esp + 0xe4], xmm0
movss dword [esp + 0xe8], xmm3
movss dword [esp + 0xec], xmm2
jb 0x40fbef
movss xmm7, dword [esp + 0x28]
comiss xmm7, xmm0
jb 0x40fbef
comiss xmm3, dword [esp + 0x38]
jb 0x40fbef
comiss xmm2, dword [esp + 0x54]
jb 0x40fbef
xorps xmm1, xmmword [0x501370]
movaps xmm5, xmm6
subss xmm1, dword [0x4fe9fc]
subss xmm0, xmm1
subss xmm4, xmm1
movss dword [esp + 0xe4], xmm0
movaps xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0xe0], xmm4
addss xmm1, xmm2
movss dword [esp + 0xe8], xmm0
movss dword [esp + 0xec], xmm1
movss xmm1, dword [esi + 0x1f30]
push ecx
mov dword [esp], 0x40400000
mov ecx, 0x34
push 0
sub esp, 8
movss dword [esp + 4], xmm5
call fcn.004041e0
mov ecx, dword [edi + 0x2c8]
add esp, 4
push eax
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.0042c0f0
mov ecx, dword [esp + 0x14]
xorps xmm2, xmm2
movss xmm5, dword [edi + 0x6c]
mov edx, ecx
shr edx, 3
not dl
and dl, 1
ucomiss xmm5, xmm2
lahf
test ah, 0x44
jnp 0x40fc5a
movss dword [esp + 0x24], xmm5
jmp 0x40fc96
movss xmm0, dword [edi + 0x74]
mov eax, ecx
movss xmm1, dword [edi + 0x4c]
addss xmm0, xmm0
and eax, 0x808
subss xmm1, xmm0
subss xmm1, dword [edi + 0xb8]
cmp eax, 0x800
jne 0x40fc89
movss xmm0, dword [edi + 0x5c]
jmp 0x40fc8c
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [esp + 0x24], xmm0
movss xmm4, dword [edi + 0x70]
ucomiss xmm4, xmm2
lahf
test ah, 0x44
jnp 0x40fca9
movaps xmm7, xmm4
jmp 0x40fcdb
movss xmm0, dword [edi + 0x78]
movss xmm1, dword [edi + 0x50]
addss xmm0, xmm0
subss xmm1, xmm0
subss xmm1, dword [esp + 0x58]
subss xmm1, dword [edi + 0xbc]
test dl, dl
je 0x40fcd4
movss xmm7, dword [edi + 0x60]
jmp 0x40fcd7
xorps xmm7, xmm7
maxss xmm7, xmm1
movss xmm6, dword [edi + 0x74]
movss xmm3, dword [edi + 0x80]
movaps xmm1, xmm6
movss xmm2, dword [edi + 0x90]
maxss xmm1, xmm3
movss xmm0, dword [edi + 0x22c]
subss xmm0, xmm2
movss dword [esp + 0x1c], xmm2
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movss dword [edi + 0x24c], xmm2
movss xmm0, dword [edi + 0x94]
movss xmm1, dword [edi + 0x78]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [edi + 0x230]
subss xmm0, dword [esp + 0x54]
movss dword [esp + 0x70], xmm1
maxss xmm1, xmm3
xorps xmm3, xmm3
ucomiss xmm5, xmm3
addss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x24]
addss xmm1, xmm2
movss xmm2, dword [esp + 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
lahf
movss dword [edi + 0x250], xmm0
addss xmm7, xmm0
movss dword [edi + 0x254], xmm1
movss dword [edi + 0x258], xmm7
movups xmm0, xmmword [edi + 0x24c]
movups xmmword [edi + 0x25c], xmm0
movss xmm0, dword [edi + 0x44]
movss dword [esp + 0x5c], xmm0
movaps xmm1, xmm0
movss xmm0, dword [esp + 0x58]
subss xmm1, dword [esp + 0x1c]
addss xmm1, xmm6
movss dword [edi + 0x27c], xmm1
movss xmm7, dword [edi + 0x48]
subss xmm7, dword [esp + 0x54]
addss xmm7, xmm2
addss xmm7, xmm0
movss dword [edi + 0x280], xmm7
test ah, 0x44
jp 0x40fdff
movss xmm5, dword [edi + 0x4c]
movaps xmm0, xmm6
addss xmm0, xmm6
subss xmm5, xmm0
movss xmm0, dword [esp + 0x58]
subss xmm5, dword [edi + 0xb8]
ucomiss xmm4, xmm3
addss xmm1, xmm5
lahf
movss dword [edi + 0x284], xmm1
test ah, 0x44
jp 0x40fe36
movss xmm4, dword [edi + 0x50]
movaps xmm0, xmm2
addss xmm0, xmm2
subss xmm4, xmm0
movss xmm0, dword [esp + 0x58]
subss xmm4, xmm0
subss xmm4, dword [edi + 0xbc]
addss xmm6, xmm3
addss xmm7, xmm4
addss xmm0, xmm2
lea ecx, [edi + 0x1ac]
subss xmm6, dword [esp + 0x1c]
movss dword [edi + 0x288], xmm7
subss xmm0, dword [esp + 0x54]
movss dword [edi + 0x148], xmm6
addss xmm6, xmm3
mov dword [edi + 0x150], 0
mov dword [edi + 0x14c], 0
addss xmm0, dword [edi + 0x48]
addss xmm6, dword [esp + 0x5c]
movss dword [edi + 0x118], xmm6
movss dword [edi + 0x11c], xmm0
movss dword [edi + 0x108], xmm6
movss dword [edi + 0x10c], xmm0
movss dword [edi + 0x110], xmm6
movss dword [edi + 0x114], xmm0
movss dword [edi + 0x120], xmm6
movss dword [edi + 0x124], xmm0
movss dword [edi + 0x128], xmm6
movss dword [edi + 0x12c], xmm0
mov dword [edi + 0x138], 0
mov dword [edi + 0x13c], 0
mov dword [edi + 0x130], 0
mov dword [edi + 0x134], 0
mov dword [edi + 0x144], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x17c], 0
mov ax, word [edi + 0x182]
mov word [edi + 0x180], ax
xor eax, eax
mov word [edi + 0x182], ax
mov byte [edi + 0x188], al
movss xmm0, dword [edi + 0x9c]
comiss xmm0, xmm3
seta al
cmp byte [esp + 0x1b], 0
mov byte [edi + 0x189], al
mov byte [edi + 0x18a], 0
movss xmm0, dword [esi + 0x15e0]
mov dword [edi + 0x19c], 0
mov dword [edi + 0x198], 0
movss dword [edi + 0x194], xmm0
je 0x40ff8e
xorps xmm0, xmm0
movq qword [ecx], xmm0
mov dword [ecx + 8], 0
xor edx, edx
test edx, edx
je 0x40ffb5
movss xmm0, dword [ecx]
comiss xmm0, xmm3
jbe 0x40ffb5
movss xmm0, dword [edi + 0x194]
addss xmm0, dword [edi + 0x198]
movss dword [edi + 0x198], xmm0
cvttss2si eax, dword [edi + 0x198]
inc edx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx - 0xc], xmm0
movss xmm0, dword [edi + 0x198]
addss xmm0, dword [ecx]
movss dword [edi + 0x198], xmm0
mov dword [ecx], 0
add ecx, 4
cmp edx, 3
jl 0x40ff90
mov dword [edi + 0x1b8], 0
lea eax, [edi + 0x1c0]
mov dword [edi + 0x1bc], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x41002f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x1c0]
call fcn.00421330
lea eax, [edi + 0x1c0]
mov dword [eax], 0
lea eax, [edi + 0x2a4]
mov dword [edi + 0x1cc], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x1d0], 0
mov dword [edi + 0x1d8], 1
test eax, eax
je 0x410065
mov eax, dword [eax + 0x1d8]
jmp 0x41006a
mov eax, 1
mov dword [edi + 0x1dc], eax
mov dword [edi + 0x1e4], 0xffffffff
mov dword [edi + 0x1e0], 0xffffffff
mov eax, dword [edi + 0x2a0]
mov dword [edi + 0x1ec], eax
lea eax, [edi + 0x1f4]
mov dword [edi + 0x1f0], 0xbf800000
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x4100c9
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x1f4]
call fcn.00421330
lea eax, [edi + 0x1f4]
mov dword [eax], 0
lea eax, [edi + 0x200]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x4100fe
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x200]
call fcn.00421330
lea eax, [edi + 0x200]
mov dword [eax], 0
mov al, byte [edi + 0xdc]
test al, al
jle 0x410116
dec al
mov byte [edi + 0xdc], al
mov al, byte [edi + 0xdd]
test al, al
jle 0x410128
dec al
mov byte [edi + 0xdd], al
cmp byte [esp + 0x34], 0
je 0x41013f
mov ecx, edi
call fcn.004109e0
xor dl, dl
mov ecx, edi
call fcn.004137f0
test byte [esp + 0x14], 1
jne 0x4101be
test byte [edi + 0x3a5], 1
jne 0x4101be
movss xmm1, dword [edi + 0x80]
lea edx, [esp + 0x80]
movss xmm0, dword [esp + 0xd0]
mov ecx, edi
addss xmm0, xmm1
push 0
push dword [esp + 0x7c]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esp + 0xdc]
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0xe0]
subss xmm0, xmm1
movss dword [esp + 0x90], xmm0
movss xmm0, dword [esp + 0xe4]
movss dword [esp + 0x94], xmm0
call fcn.0040cff0
add esp, 8
xor eax, eax
mov dword [edi + 0x28c], eax
test byte [esi + 8], 0x40
je 0x41022f
cmp dword [esi + 0x1c58], edi
jne 0x4101f2
cmp byte [esi + 0x101], al
jne 0x4101f2
mov eax, dword [edi + 0x364]
test dword [eax + 8], 0x200000
jne 0x4101f2
mov ecx, edi
call fcn.0041f390
cmp byte [esi + 0x1f5c], 0
je 0x41022f
test dword [esp + 0x14], 0x200000
jne 0x41022f
mov eax, dword [esi + 0x1c58]
test eax, eax
je 0x410217
cmp dword [eax + 0x364], edi
je 0x41022f
cmp edi, dword [edi + 0x364]
jne 0x41022f
test dword [edi + 8], 0x20000000
jne 0x41022f
mov ecx, edi
call fcn.0041f550
test byte [edi + 0x3a5], 1
je 0x410260
mov ecx, dword [edi + 0x3cc]
mov eax, dword [edi + 4]
mov dword [edi + 0x154], eax
mov dword [edi + 0x158], ecx
movups xmm0, xmmword [edi + 0x3d0]
movups xmmword [edi + 0x15c], xmm0
jmp 0x4103f9
mov eax, dword [0x5887f0]
movss xmm1, dword [esp + 0xd0]
movss xmm6, dword [esp + 0xd8]
movss xmm7, dword [esp + 0xdc]
movaps xmm3, xmm6
movss xmm2, dword [eax + 0x15f8]
movaps xmm4, xmm7
movss xmm0, dword [eax + 0x15fc]
subss xmm1, xmm2
movss xmm5, dword [eax + 0xe4]
addss xmm3, xmm2
movss xmm2, dword [esp + 0xd4]
addss xmm4, xmm0
subss xmm2, xmm0
comiss xmm5, xmm1
jb 0x410318
movss xmm0, dword [eax + 0xe8]
comiss xmm0, xmm2
jb 0x410318
comiss xmm3, xmm5
jbe 0x410318
comiss xmm4, xmm0
jbe 0x410318
mov eax, dword [eax + 0x1de4]
movss xmm3, dword [eax + 0xc]
movss xmm2, dword [eax + 8]
movaps xmm0, xmm3
addss xmm0, dword [eax + 0x14]
movaps xmm1, xmm2
addss xmm1, dword [eax + 0x10]
comiss xmm0, dword [esp + 0xd4]
jbe 0x410318
comiss xmm7, xmm3
jbe 0x410318
comiss xmm1, dword [esp + 0xd0]
jbe 0x410318
comiss xmm6, xmm2
jbe 0x410318
mov ecx, 1
jmp 0x41031a
xor ecx, ecx
mov eax, dword [edi + 0x88]
movups xmm0, xmmword [esp + 0xd0]
mov dword [edi + 0x154], eax
mov dword [edi + 0x158], ecx
movups xmmword [edi + 0x15c], xmm0
jmp 0x4103f9
mov ecx, dword [edi + 0x30]
mov edx, dword [0x5887f0]
test ecx, ecx
je 0x410356
mov eax, dword [edx + 0x1be0]
mov dword [ecx + 0x4c], eax
cmp dword [edx + 0x1de0], ecx
je 0x410393
test ecx, ecx
je 0x410383
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x1ddc], eax
mov eax, dword [edx + 0x1560]
mov dword [edx + 0x1de0], ecx
test eax, eax
je 0x410393
push ecx
call eax
add esp, 4
jmp 0x410393
mov dword [edx + 0x1ddc], 0x3f800000
mov dword [edx + 0x1de0], ecx
mov eax, dword [0x5887f0]
mov dword [eax + 0x1c48], edi
mov ecx, dword [edi + 0x1d4]
cmp ecx, 0xffffffff
je 0x4103b7
imul ecx, ecx, 0x228
add ecx, dword [eax + 0x1ff8]
jmp 0x4103b9
xor ecx, ecx
movss xmm0, dword [eax + 0x19dc]
mov dword [eax + 0x1fec], ecx
mulss xmm0, dword [edi + 0x2bc]
mov ecx, dword [edi + 0x35c]
mulss xmm0, dword [edi + 0x2c0]
test ecx, ecx
je 0x4103e9
mulss xmm0, dword [ecx + 0x2bc]
movss dword [eax + 0x19ec], xmm0
movss dword [eax + 0x19d8], xmm0
mov ecx, dword [esi + 0x1da0]
mov eax, dword [esi + 0x1da8]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1c6c], eax
test ecx, 0x1000000
je 0x410427
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x184]
jmp 0x410429
xor eax, eax
mov dword [edi + 0x184], eax
test ecx, 0x20000000
jne 0x4105d6
mov ecx, dword [0x5887f0]
mov eax, dword [ecx + 0x1c48]
mov byte [eax + 0xc5], 1
mov eax, dword [ecx + 0x1c48]
movss xmm1, dword [edi + 0x23c]
movss xmm3, dword [edi + 0x244]
movss xmm2, dword [edi + 0x248]
mov edx, dword [eax + 0x2c8]
movss xmm0, dword [edi + 0x240]
mov dword [esp + 0x24], eax
mov dword [esp + 0x6c], edx
movups xmm4, xmmword [edx + 0x60]
movss dword [esp + 0xe0], xmm1
comiss xmm4, xmm1
movss dword [esp + 0xe4], xmm0
movss dword [esp + 0xe8], xmm3
movss dword [esp + 0xec], xmm2
movaps xmmword [esp + 0x80], xmm4
jbe 0x4104c3
movaps xmm1, xmm4
movss dword [esp + 0xe0], xmm1
movss xmm4, dword [esp + 0x84]
comiss xmm4, xmm0
jbe 0x4104dd
movaps xmm0, xmm4
movss dword [esp + 0xe4], xmm0
movss xmm4, dword [esp + 0x88]
comiss xmm3, xmm4
jbe 0x4104f7
movaps xmm3, xmm4
movss dword [esp + 0xe8], xmm3
movss xmm4, dword [esp + 0x8c]
comiss xmm2, xmm4
jbe 0x410511
movaps xmm2, xmm4
movss dword [esp + 0xec], xmm2
comiss xmm1, xmm3
jb 0x41051f
movss dword [esp + 0xe8], xmm1
comiss xmm0, xmm2
jb 0x41052d
movss dword [esp + 0xec], xmm0
mov eax, dword [edx + 0x40]
lea ecx, [edx + 0x3c]
mov dword [esp + 0x5c], ecx
cmp dword [ecx], eax
jne 0x41056c
mov edx, dword [ecx]
inc edx
mov dword [esp + 0x70], edx
test eax, eax
je 0x410554
cdq
sub eax, edx
mov edx, dword [esp + 0x70]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x410559
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.00421690
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x6c]
mov eax, dword [ecx]
movaps xmm0, xmmword [esp + 0xe0]
shl eax, 4
add eax, dword [ecx + 8]
movups xmmword [eax], xmm0
inc dword [ecx]
mov ecx, edx
movups xmmword [edx + 0x60], xmm0
call fcn.00429e60
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x2c8]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
add ecx, ecx
movss xmm0, dword [eax + ecx*8 - 0xc]
movss xmm1, dword [eax + ecx*8 - 8]
movss xmm2, dword [eax + ecx*8 - 4]
mov eax, dword [eax + ecx*8 - 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edx + 0x26c], eax
movss dword [edx + 0x270], xmm0
movss dword [edx + 0x274], xmm1
movss dword [edx + 0x278], xmm2
mov eax, dword [esp + 0x64]
mov byte [edi + 0xc5], 0
inc word [edi + 0xce]
mov dword [esi + 0x1cd0], 0
cmp eax, dword [esp + 0x68]
je 0x41074e
mov al, byte [edi + 0x3a5]
test al, 1
je 0x410628
test al, 2
jne 0x410628
mov eax, dword [edi + 0x298]
cmp eax, dword [esi + 0x1be0]
jne 0x410621
mov byte [edi + 0xe5], 1
jmp 0x410628
mov byte [edi + 0xe4], 1
test ecx, 0x1000000
je 0x4106b7
test cl, 0x40
jne 0x41067d
cmp byte [edi + 0xdc], 0
jg 0x41067d
cmp byte [edi + 0xdd], 0
jg 0x41067d
cmp byte [esi + 0x3028], 0
jne 0x41067d
movss xmm0, dword [edi + 0x21c]
comiss xmm0, dword [edi + 0x224]
jae 0x410676
movss xmm0, dword [edi + 0x220]
comiss xmm0, dword [edi + 0x228]
jb 0x41067d
mov byte [edi + 0xe4], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4106b7
cmp byte [eax + 0xc6], 0
jne 0x410697
cmp byte [eax + 0xe4], 0
jle 0x41069e
mov byte [edi + 0xe4], 1
cmp byte [eax + 0xc6], 0
jne 0x4106b0
cmp byte [eax + 0xe5], 0
jle 0x4106b7
mov byte [edi + 0xe5], 1
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x1598]
jb 0x4106ca
mov byte [edi + 0xe4], 1
cmp byte [edi + 0xe4], 0
jg 0x4106e9
cmp byte [edi + 0xe5], 0
jg 0x4106e9
cmp byte [edi + 0xe6], 0
jg 0x4106e9
xor cl, cl
jmp 0x4106eb
mov cl, 1
mov byte [edi + 0xca], cl
mov al, byte [edi + 0xe7]
test al, al
jle 0x41070e
dec al
mov byte [edi + 0xe7], al
mov eax, dword [edi + 8]
or eax, 0xc0200
mov dword [edi + 8], eax
xor al, al
cmp byte [edi + 0xc6], al
jne 0x410724
cmp byte [edi + 0xc3], al
je 0x410724
test cl, cl
je 0x410748
cmp byte [edi + 0xdc], 0
jg 0x410748
cmp byte [edi + 0xdd], 0
jg 0x410748
cmp byte [edi + 0xe5], 0
mov ecx, 1
movzx eax, al
cmovle eax, ecx
mov byte [edi + 0xc8], al
cmp byte [edi + 0xc8], 0
mov ecx, dword [esp + 0x12c]
pop edi
sete al
pop esi
xor ecx, esp
call fcn.004870f9
mov esp, ebp
pop ebp
ret