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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x44300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
mov esi, dword [0x4598f8]
push edi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], esi
call fcn.0040b5f0
mov edi, eax
mov dword [ebp - 0x5c], eax
test edi, edi
mov dword [ebp - 0x78], edi
sete cl
mov byte [ebp - 0x46], cl
test eax, eax
jne 0x40d929
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x9c]
call fcn.0040b640
mov edi, eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, eax
and ecx, 0xc0200
or edx, 6
cmp ecx, 0xc0200
lea ecx, [esi + 0x19f4]
cmovne edx, eax
mov dword [ebp - 0x68], ecx
cmp dword [ecx], 0
mov eax, dword [esi + 0x19b8]
mov dword [ebp - 0x8c], eax
mov eax, dword [edi + 0x268]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x88], eax
jne 0x40d978
cmp byte [esi + 0x19c5], 0
je 0x40d978
mov al, 1
jmp 0x40d97a
xor al, al
mov byte [edi + 0x8a], al
mov eax, dword [ebp - 0x8c]
dec eax
cmp dword [ebp - 0x88], eax
mov eax, dword [edi + 0xa4]
setl byte [ebp - 0x43]
mov dword [ebp - 0x84], eax
test edx, 0x4000000
je 0x40d9de
mov eax, dword [esi + 0x1b3c]
lea esi, [eax + eax*8]
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x1b38]
mov eax, dword [edi + 0x94]
cmp edi, dword [edx + esi*4 + 4]
setne cl
cmp eax, dword [edx + esi*4]
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
setne al
or cl, al
mov eax, dword [ebp - 0x84]
or byte [ebp - 0x43], cl
mov ecx, dword [ebp - 0x68]
cmp byte [ebp - 0x43], 0
jne 0x40d9f1
test eax, eax
jg 0x40d9f1
mov byte [edi + 0x88], 0
jmp 0x40da0d
or dword [edi + 0xa8], 8
or dword [edi + 0xac], 8
or dword [edi + 0xb0], 8
mov byte [edi + 0x88], 1
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x88], eax
je 0x40da57
mov dword [edi + 0x268], eax
xor eax, eax
mov dword [edi + 8], edx
movsd xmm0, qword [esi + 0x19b0]
cvtpd2ps xmm0, xmm0
mov word [edi + 0x90], ax
movss dword [edi + 0x26c], xmm0
mov ax, word [esi + 0x1a0c]
mov word [edi + 0x92], ax
inc dword [esi + 0x1a0c]
jmp 0x40da5d
mov edx, dword [edi + 8]
mov dword [ebp - 0x4c], edx
cmp dword [ecx], 0
jne 0x40da6b
mov dword [ebp - 0x50], 0
jmp 0x40da7d
mov eax, dword [esi + 0x19fc]
mov esi, dword [ecx]
mov eax, dword [eax + esi*4 - 4]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x88], eax
je 0x40da9b
mov eax, edx
and eax, 0x5000000
neg eax
sbb eax, eax
and eax, dword [ebp - 0x50]
jmp 0x40daa1
mov eax, dword [edi + 0x324]
cmp dword [edi + 0xc4], 0
lea edx, [edi + 0xc4]
mov dword [ebp - 0x64], eax
jne 0x40daef
cmp dword [edx + 4], 0
mov dword [ebp - 0x50], 0
jne 0x40dad8
push 8
mov ecx, edx
call fcn.004159f0
mov eax, dword [edi + 0xc4]
lea edx, [edi + 0xc4]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 4]
mov ecx, dword [edx + 8]
mov edi, dword [ebp - 0x50]
mov dword [ecx + edi*4], eax
lea ecx, [esi + 0x19f4]
inc dword [edx]
mov edi, dword [ebp - 0x78]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp edx, eax
jne 0x40db29
inc edx
mov dword [ebp - 0x68], edx
test eax, eax
je 0x40db0d
cdq
sub eax, edx
mov edx, dword [ebp - 0x68]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40db12
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.004159f0
mov edx, dword [esi + 0x19f4]
lea ecx, [esi + 0x19f4]
mov eax, dword [ecx + 8]
mov dword [eax + edx*4], edi
lea edx, [edi + 0x1e4]
inc dword [ecx]
mov ecx, dword [0x4598f8]
mov dword [esi + 0x1a10], 0
movzx eax, word [edi + 0xc4]
mov word [edx], ax
movzx eax, word [edi + 0x1d8]
mov word [edx + 2], ax
movzx eax, word [ecx + 0x1b3c]
mov word [edx + 4], ax
movzx eax, word [ecx + 0x1b0c]
mov word [edx + 6], ax
movzx eax, word [ecx + 0x1b18]
mov word [edx + 8], ax
movzx eax, word [ecx + 0x1b24]
mov ecx, dword [ebp - 0x4c]
mov word [edx + 0xa], ax
mov eax, ecx
and eax, 0x4000000
mov dword [ebp - 0x50], eax
je 0x40dc37
mov eax, dword [esi + 0x1b3c]
lea ecx, [esi + 0x1b3c]
mov edx, dword [esi + 0x1b38]
mov dword [ebp - 0x60], edx
lea eax, [eax + eax*8]
mov dword [edx + eax*4 + 4], edi
mov dword [ebp - 0x70], eax
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x40dbf7
lea edx, [eax + 1]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x68], edx
test eax, eax
je 0x40dbdb
cdq
sub eax, edx
mov edx, dword [ebp - 0x68]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40dbe0
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.00415e40
mov eax, dword [esi + 0x1b3c]
lea ecx, [esi + 0x1b3c]
mov edi, dword [ebp - 0x60]
lea edx, [eax + eax*8]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ecx + 8]
movups xmm0, xmmword [edi + eax*4]
movups xmmword [ecx + edx*4], xmm0
movups xmm0, xmmword [edi + eax*4 + 0x10]
movups xmmword [ecx + edx*4 + 0x10], xmm0
mov eax, dword [edi + eax*4 + 0x20]
mov dword [ecx + edx*4 + 0x20], eax
mov ecx, edi
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp - 0x78]
inc dword [esi + 0x1b3c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 0x94], eax
cmp dword [ebp - 0x84], 0
jle 0x40dc52
test ecx, 0x1000000
jne 0x40dc52
mov dword [edi + 0x338], 0
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x8c]
je 0x40dcd7
mov edx, dword [ebp - 0x64]
mov dword [edi + 0x324], edx
mov dword [edi + 0x330], edi
mov dword [edi + 0x32c], edi
mov dword [edi + 0x328], edi
test edx, edx
je 0x40dcb5
mov eax, ecx
and eax, 0x3000000
cmp eax, 0x1000000
jne 0x40dc99
mov eax, dword [edx + 0x328]
mov dword [edi + 0x328], eax
test ecx, 0x8000000
jne 0x40dcb5
test ecx, 0x5000000
je 0x40dcb5
mov eax, dword [edx + 0x32c]
mov dword [edi + 0x32c], eax
test dword [edi + 8], 0x800000
je 0x40dcd7
mov ecx, edi
mov eax, dword [ecx + 0x324]
mov ecx, eax
mov dword [edi + 0x330], ecx
test dword [eax + 8], 0x800000
jne 0x40dcc0
test byte [esi + 0x1a98], 1
mov byte [ebp - 0x42], 0
mov byte [ebp - 0x45], 0
mov byte [ebp - 0x44], 0
je 0x40dd79
mov edx, dword [edi + 0xa8]
mov eax, edx
mov ecx, dword [esi + 0x1a9c]
and eax, ecx
setne byte [ebp - 0x42]
test ecx, eax
je 0x40dd68
movss xmm1, dword [esi + 0x1ab4]
movss xmm0, dword [esi + 0x1ab0]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x43ef58]
jbe 0x40dd68
mov eax, dword [esi + 0x1aa8]
and edx, 0xfffffff1
mov ecx, dword [esi + 0x1aac]
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], ecx
mov eax, dword [esi + 0x1ab0]
mov ecx, dword [esi + 0x1ab4]
mov dword [edi + 0xbc], eax
mov dword [edi + 0xc0], ecx
mov dword [edi + 0xa8], edx
jmp 0x40dd79
push ecx
lea edx, [esi + 0x1aa8]
mov ecx, edi
call fcn.004101a0
add esp, 4
mov eax, dword [esi + 0x1a98]
xorps xmm1, xmm1
movss dword [ebp - 0x58], xmm1
test al, 2
je 0x40dde3
mov eax, dword [edi + 0xac]
lea edx, [esi + 0x1ab8]
mov ecx, dword [esi + 0x1aa0]
and eax, ecx
je 0x40ddb0
movss xmm0, dword [edx]
comiss xmm0, xmm1
jbe 0x40ddb0
mov byte [ebp - 0x45], 1
jmp 0x40ddb8
mov byte [ebp - 0x45], 0
test eax, eax
je 0x40ddc9
movss xmm0, dword [esi + 0x1abc]
comiss xmm0, xmm1
mov byte [ebp - 0x44], 1
ja 0x40ddcd
mov byte [ebp - 0x44], 0
push ecx
mov ecx, edi
call fcn.00410280
mov eax, dword [esi + 0x1a98]
add esp, 4
movss xmm1, dword [ebp - 0x58]
test al, al
jns 0x40de19
movss xmm0, dword [esi + 0x1ac8]
comiss xmm0, xmm1
jb 0x40de00
movss dword [edi + 0x60], xmm0
mov dword [edi + 0x68], 0
movss xmm0, dword [esi + 0x1acc]
comiss xmm0, xmm1
jb 0x40de19
movss dword [edi + 0x64], xmm0
mov dword [edi + 0x6c], 0
test byte [esi + 0x1a98], 4
je 0x40de36
mov eax, dword [esi + 0x1ac0]
mov ecx, dword [esi + 0x1ac4]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
jmp 0x40de52
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x8c]
je 0x40de52
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov eax, dword [esi + 0x1a98]
test al, 8
je 0x40de87
mov ecx, dword [esi + 0x1aa4]
mov dl, byte [esi + 0x1ad0]
test ecx, ecx
je 0x40de74
test dword [edi + 0xb0], ecx
je 0x40de87
and dword [edi + 0xb0], 0xfffffff1
mov byte [edi + 0x85], dl
mov eax, dword [esi + 0x1a98]
test al, 0x20
je 0x40de92
mov ecx, edi
call fcn.0040fd80
cmp byte [edi + 0x88], 0
je 0x40deb0
and dword [edi + 0xa8], 0xfffffff7
and dword [edi + 0xac], 0xfffffff7
and dword [edi + 0xb0], 0xfffffff7
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x8c]
je 0x40fa91
mov eax, dword [ebp - 0x4c]
mov byte [edi + 0x82], 1
and eax, 0x3000000
mov byte [edi + 0x8b], 0
mov dword [edi + 0x240], 0xff7fffff
mov dword [edi + 0x244], 0xff7fffff
mov dword [edi + 0x248], 0x7f7fffff
mov dword [ebp - 0x60], eax
mov dword [edi + 0x24c], 0x7f7fffff
mov eax, dword [edi + 0xc8]
cmp eax, 1
jge 0x40df41
test eax, eax
je 0x40df24
cdq
sub eax, edx
lea edx, [edi + 0xc4]
mov ecx, eax
sar ecx, 1
add ecx, dword [edx + 4]
jmp 0x40df2f
mov ecx, 8
lea edx, [edi + 0xc4]
mov eax, 1
cmp ecx, eax
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.004159f0
mov dword [edi + 0xc4], 1
mov ecx, dword [edi + 0x294]
call fcn.0041d7d0
cmp byte [edi + 0x368], 0
je 0x40dfa2
mov ecx, dword [edi + 0x294]
push dword [edi + 0x360]
add ecx, 0xc
mov byte [edi + 0x368], 0
call fcn.00415dd0
mov ecx, dword [edi + 0x294]
push dword [edi + 0x364]
add ecx, 0x18
call fcn.00415bf0
mov dword [edi + 0x364], 0
mov dword [edi + 0x360], 0
cmp dword [esi + 0x1c58], 0
je 0x40e081
test dword [edi + 8], 0x80000
jne 0x40e081
cmp dword [ebp - 0x5c], 0
je 0x40e081
mov eax, dword [edi]
mov ecx, eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x9c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40dff3
test dl, dl
je 0x40dfef
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40dff3
add eax, 2
add ecx, 2
test dl, dl
jne 0x40dfd3
xor eax, eax
jmp 0x40dff8
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e081
mov ecx, dword [ebp - 0x9c]
mov edx, dword [edi + 0x44]
mov dword [ebp - 0x7c], edx
lea eax, [ecx + 1]
mov dword [ebp - 0x68], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e012
sub ecx, dword [ebp - 0x68]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x70], eax
cmp edx, eax
jae 0x40e069
test ecx, ecx
je 0x40e03c
mov eax, dword [0x4598f8]
test eax, eax
je 0x40e03c
dec dword [eax + 0x370]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4598f8]
add esp, 4
test eax, eax
je 0x40e055
inc dword [eax + 0x370]
push dword [ebp - 0x70]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x7c], eax
push eax
push dword [ebp - 0x9c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov dword [edi], eax
add esp, 0xc
mov eax, dword [ebp - 0x7c]
mov dword [edi + 0x44], eax
mov edx, edi
lea ecx, [ebp - 0x98]
call fcn.0040bb30
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0xa0]
mov dword [edi + 0x24], ecx
test eax, eax
jle 0x40e0aa
dec eax
mov dword [edi + 0xa0], eax
mov eax, dword [edi + 0xa4]
test eax, eax
jle 0x40e0bb
dec eax
mov dword [edi + 0xa4], eax
cmp dword [ebp - 0x5c], 0
mov al, byte [ebp - 0x45]
mov cl, byte [ebp - 0x44]
jne 0x40e0d9
test al, al
je 0x40e0cf
test cl, cl
jne 0x40e0d9
mov dword [edi + 0xa4], 1
cmp byte [ebp - 0x43], 0
mov edx, dword [ebp - 0x4c]
je 0x40e12b
test edx, 0x6000000
je 0x40e12b
mov dword [edi + 0xa4], 1
test dl, 0x40
je 0x40e12b
test al, al
jne 0x40e10b
mov dword [edi + 0x1c], 0
mov dword [edi + 0x14], 0
test cl, cl
jne 0x40e11d
mov dword [edi + 0x20], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov eax, dword [0x4598f8]
mov dword [ebp - 0x7c], eax
movss xmm0, dword [eax + 0x18dc]
mov dword [eax + 0x1a10], edi
mov ecx, dword [edi + 0x324]
mulss xmm0, dword [edi + 0x28c]
test ecx, ecx
je 0x40e15b
mulss xmm0, dword [ecx + 0x28c]
movss dword [eax + 0x18ec], xmm0
movss dword [eax + 0x18d8], xmm0
mov eax, edx
and eax, 0x1000000
mov dword [ebp - 0x70], eax
je 0x40e181
movss xmm0, dword [esi + 0x1544]
jmp 0x40e1a3
test edx, 0x6000000
je 0x40e19b
test edx, 0x8000000
jne 0x40e19b
movss xmm0, dword [esi + 0x154c]
jmp 0x40e1a3
movss xmm0, dword [esi + 0x1528]
movss dword [edi + 0x40], xmm0
mov eax, dword [esi + 0x151c]
mov ecx, dword [esi + 0x1520]
movss xmm2, dword [ebp - 0x58]
mov dword [edi + 0x34], eax
mov eax, edx
and eax, 0x5010000
mov dword [edi + 0x38], ecx
cmp eax, 0x1000000
jne 0x40e1fc
movss xmm0, dword [edi + 0x40]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x40e1fc
test edx, 0x400
je 0x40e1ed
movss xmm0, dword [esi + 0x1520]
jmp 0x40e1f0
movaps xmm0, xmm2
mov dword [edi + 0x34], 0
movss dword [edi + 0x38], xmm0
movss xmm0, dword [edi + 0x34]
maxss xmm0, dword [esi + 0x1560]
maxss xmm0, dword [esi + 0x1af0]
movss dword [edi + 0x150], xmm0
mov eax, dword [esi + 0x1af4]
mov dword [edi + 0x154], eax
test dl, 0x21
jne 0x40e363
mov edx, dword [edi + 8]
mov ecx, dword [ebp - 0x7c]
test dl, 1
je 0x40e23e
movaps xmm3, xmm2
jmp 0x40e270
movss xmm0, dword [ecx + 0x18dc]
mov eax, dword [edi + 0x324]
mulss xmm0, dword [edi + 0x28c]
test eax, eax
je 0x40e260
mulss xmm0, dword [eax + 0x28c]
movss xmm3, dword [ecx + 0x1554]
addss xmm3, xmm3
addss xmm3, xmm0
movss xmm5, dword [edi + 0xc]
movaps xmm4, xmm5
movss xmm6, dword [edi + 0x10]
addss xmm4, dword [edi + 0x1c]
addss xmm3, dword [edi + 0x10]
cmp dword [esi + 0x1a14], edi
jne 0x40e327
cmp dword [esi + 0x1a34], 0
jne 0x40e327
cmp dword [esi + 0x1a38], 0
jne 0x40e327
mov eax, dword [ecx + 0x1a10]
movss xmm1, dword [ecx + 0x1570]
movss xmm0, dword [ecx + 0x1574]
maxss xmm5, dword [eax + 0x240]
minss xmm4, dword [eax + 0x248]
maxss xmm6, dword [eax + 0x244]
minss xmm3, dword [eax + 0x24c]
subss xmm5, xmm1
addss xmm4, xmm1
movss xmm1, dword [ecx + 0xe4]
subss xmm6, xmm0
addss xmm3, xmm0
comiss xmm1, xmm5
jb 0x40e327
movss xmm0, dword [ecx + 0xe8]
comiss xmm0, xmm6
jb 0x40e327
comiss xmm4, xmm1
jbe 0x40e327
comiss xmm3, xmm0
jbe 0x40e327
cmp byte [esi + 0x3dd], 0
je 0x40e327
mov byte [edi + 0x86], 1
cmp byte [edi + 0x86], 0
je 0x40e36a
cmp byte [edi + 0x85], 0
sete al
mov byte [edi + 0x85], al
test edx, 0x100
jne 0x40e35a
comiss xmm2, dword [ecx + 0x2df8]
jb 0x40e35a
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2df8], eax
mov ecx, edi
call fcn.0040fd80
jmp 0x40e36a
mov byte [edi + 0x85], 0
lea eax, [edi + 0x24]
mov byte [edi + 0x86], 0
push eax
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.0040bbe0
mov al, byte [ebp - 0x46]
add esp, 4
test byte [ebp - 0x4c], 0x40
mov byte [ebp - 0x41], al
je 0x40e3c8
cmp byte [edi + 0x85], 0
jne 0x40e3c8
cmp byte [ebp - 0x45], 0
jne 0x40e3ab
movss xmm0, dword [ebp - 0x1c]
movss dword [edi + 0x1c], xmm0
mov byte [ebp - 0x46], 1
cmp byte [ebp - 0x44], 0
jne 0x40e46d
movss xmm0, dword [ebp - 0x18]
movss dword [edi + 0x20], xmm0
mov byte [ebp - 0x41], 1
jmp 0x40e46d
mov al, byte [edi + 0x98]
test al, al
jg 0x40e3df
cmp byte [edi + 0x99], 0
jle 0x40e46d
cmp byte [ebp - 0x45], 0
jne 0x40e40c
test al, al
jle 0x40e40c
cmp byte [edi + 0x9b], 0
je 0x40e3fe
movss xmm0, dword [edi + 0x1c]
maxss xmm0, dword [ebp - 0x1c]
jmp 0x40e403
movss xmm0, dword [ebp - 0x1c]
movss dword [edi + 0x1c], xmm0
mov byte [ebp - 0x46], 1
cmp byte [ebp - 0x44], 0
jne 0x40e43e
cmp byte [edi + 0x99], 0
jle 0x40e43e
cmp byte [edi + 0x9b], 0
je 0x40e430
movss xmm0, dword [edi + 0x20]
maxss xmm0, dword [ebp - 0x18]
jmp 0x40e435
movss xmm0, dword [ebp - 0x18]
movss dword [edi + 0x20], xmm0
mov byte [ebp - 0x41], 1
cmp byte [edi + 0x85], 0
jne 0x40e46d
test dword [edi + 8], 0x100
mov ecx, dword [0x4598f8]
jne 0x40e46d
movss xmm0, dword [ebp - 0x58]
comiss xmm0, dword [ecx + 0x2df8]
jb 0x40e46d
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2df8], eax
push dword [edi + 0x20]
mov edx, edi
lea ecx, [ebp - 0xd8]
push dword [edi + 0x1c]
call fcn.0040b920
add esp, 8
mov dword [ebp - 0x68], eax
cmp byte [edi + 0x85], 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], edx
je 0x40e515
cmp dword [ebp - 0x70], 0
jne 0x40e515
mov edx, dword [edi + 8]
test dl, 1
je 0x40e4b3
movss xmm2, dword [ebp - 0x58]
jmp 0x40e4ea
mov eax, dword [0x4598f8]
mov ecx, dword [edi + 0x324]
movss xmm0, dword [eax + 0x18dc]
mulss xmm0, dword [edi + 0x28c]
test ecx, ecx
je 0x40e4da
mulss xmm0, dword [ecx + 0x28c]
movss xmm2, dword [eax + 0x1554]
addss xmm2, xmm2
addss xmm2, xmm0
movss xmm0, dword [edi + 0xc]
addss xmm0, dword [edi + 0x1c]
addss xmm2, dword [edi + 0x10]
subss xmm0, dword [edi + 0xc]
subss xmm2, dword [edi + 0x10]
movss dword [ebp - 0x98], xmm0
movss dword [ebp - 0x94], xmm2
jmp 0x40e52c
mov ecx, dword [ebp - 0x68]
mov eax, dword [eax]
mov edx, dword [edi + 8]
mov dword [ebp - 0x98], eax
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x98]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x14], eax
mov eax, dword [0x4598f8]
mov dword [edi + 0x18], ecx
test dl, 1
je 0x40e551
movss xmm0, dword [ebp - 0x58]
movaps xmm1, xmm0
jmp 0x40e588
movss xmm0, dword [eax + 0x18dc]
mov ecx, dword [edi + 0x324]
mulss xmm0, dword [edi + 0x28c]
test ecx, ecx
je 0x40e573
mulss xmm0, dword [ecx + 0x28c]
movss xmm1, dword [eax + 0x1554]
addss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x58]
test edx, 0x400
je 0x40e5cc
movss xmm0, dword [eax + 0x18dc]
mov ecx, dword [edi + 0x324]
mulss xmm0, dword [edi + 0x28c]
test ecx, ecx
je 0x40e5b2
mulss xmm0, dword [ecx + 0x28c]
movss xmm2, dword [eax + 0x1554]
addss xmm0, dword [edi + 0x154]
addss xmm2, xmm2
addss xmm2, xmm0
jmp 0x40e5cf
movaps xmm2, xmm0
cmp byte [ebp - 0x43], 0
addss xmm2, xmm1
movss dword [ebp - 0x74], xmm2
je 0x40e61a
mov eax, dword [ebp - 0x4c]
and eax, 0xc000000
mov dword [edi + 0x9c], 0xffffffff
cmp eax, 0x4000000
jne 0x40e61a
cmp byte [ebp - 0x42], 0
jne 0x40e61a
mov eax, dword [esi + 0x1b3c]
mov ecx, dword [esi + 0x1b44]
lea edx, [eax + eax*8]
mov eax, dword [ecx + edx*4 - 0x10]
mov ecx, dword [ecx + edx*4 - 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
cmp dword [ebp - 0x70], 0
je 0x40e6a6
mov ecx, dword [ebp - 0x64]
add ecx, 0x184
mov ax, word [ecx]
mov word [edi + 0x90], ax
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp edx, eax
jne 0x40e670
inc edx
mov dword [ebp - 0x68], edx
test eax, eax
je 0x40e655
cdq
sub eax, edx
mov edx, dword [ebp - 0x68]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40e65a
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.004159f0
mov ecx, dword [ebp - 0x64]
add ecx, 0x184
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
mov dword [eax + edx*4], edi
inc dword [ecx]
mov edx, dword [ebp - 0x50]
mov al, byte [ebp - 0x42]
test edx, edx
jne 0x40e6ac
test al, al
jne 0x40e6ac
cmp dword [ebp - 0x60], 0x3000000
je 0x40e6ac
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx + 0xd0]
mov ecx, dword [ecx + 0xd4]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
jmp 0x40e6a9
mov edx, dword [ebp - 0x50]
mov al, byte [ebp - 0x42]
movss xmm7, dword [edi + 0xb4]
ucomiss xmm7, dword [0x43f0f8]
lahf
test ah, 0x44
jnp 0x40e7b7
cmp dword [edi + 0xa4], 0
jne 0x40e7b7
movss xmm2, dword [edi + 0x14]
movss xmm6, dword [edi + 0x18]
movss xmm3, dword [edi + 0xb8]
and dword [edi + 0xa8], 0xfffffff1
mov dword [edi + 0xb4], 0x7f7fffff
mov dword [edi + 0xb8], 0x7f7fffff
mulss xmm2, dword [edi + 0xbc]
mulss xmm6, dword [edi + 0xc0]
movss xmm4, dword [edi + 0xc]
subss xmm7, xmm2
movss xmm5, dword [edi + 0x10]
subss xmm3, xmm6
cvttss2si eax, xmm7
movd xmm2, eax
cvttss2si eax, xmm3
cvtdq2ps xmm2, xmm2
movd xmm1, eax
movss dword [edi + 0xc], xmm2
subss xmm2, xmm4
cvtdq2ps xmm1, xmm1
movaps xmm0, xmm2
movss dword [edi + 0x10], xmm1
subss xmm1, xmm5
addss xmm0, dword [edi + 0xd0]
movss dword [edi + 0xd0], xmm0
movaps xmm0, xmm1
addss xmm0, dword [edi + 0xd4]
movss dword [edi + 0xd4], xmm0
movaps xmm0, xmm2
addss xmm0, dword [edi + 0xe8]
addss xmm2, dword [edi + 0xe0]
movss dword [edi + 0xe8], xmm0
movaps xmm0, xmm1
addss xmm0, dword [edi + 0xec]
addss xmm1, dword [edi + 0xe4]
movss dword [edi + 0xe0], xmm2
movss dword [edi + 0xec], xmm0
movss dword [edi + 0xe4], xmm1
jmp 0x40e800
mov ecx, dword [ebp - 0x4c]
test ecx, 0x10000000
jne 0x40e7e8
test edx, edx
je 0x40e7d3
test al, al
jne 0x40e7d3
cmp dword [ebp - 0x84], 0
jg 0x40e7e8
test ecx, 0x2000000
je 0x40e803
test al, al
jne 0x40e803
cmp dword [ebp - 0x60], 0x3000000
je 0x40e803
mov edx, edi
lea ecx, [ebp - 0xc0]
call fcn.00411570
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov ecx, dword [ebp - 0x4c]
cmp byte [ebp - 0x42], 0
mov eax, dword [0x4598f8]
movss xmm3, dword [esi + 0x15b8]
movss xmm1, dword [esi + 0x15b4]
maxss xmm3, dword [esi + 0x15c0]
movss xmm0, dword [eax + 0x10]
movss xmm4, dword [eax + 0x14]
movaps xmm6, xmm0
maxss xmm1, dword [esi + 0x15bc]
movss xmm2, dword [ebp - 0x58]
movaps xmm5, xmm4
subss xmm5, xmm3
movss dword [ebp - 0x2c], xmm2
addss xmm3, xmm2
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0xa0], xmm0
subss xmm6, xmm1
movss dword [ebp - 0x24], xmm0
addss xmm1, xmm2
movss dword [ebp - 0x68], xmm4
movss dword [ebp - 0x20], xmm4
movss dword [ebp - 0x3c], xmm3
movss dword [ebp - 0x34], xmm5
movss dword [ebp - 0x38], xmm6
movss dword [ebp - 0x40], xmm1
jne 0x40e948
cmp dword [ebp - 0x70], 0
jne 0x40e948
cmp byte [edi + 0x98], 0
jg 0x40e948
cmp byte [edi + 0x99], 0
jg 0x40e948
subss xmm0, xmm2
comiss xmm0, xmm2
jbe 0x40e948
movaps xmm0, xmm4
subss xmm0, xmm2
comiss xmm0, xmm2
jbe 0x40e948
cmp byte [eax + 0xb4], 0
movss xmm4, dword [edi + 0x18]
je 0x40e913
test byte [edi + 8], 1
jne 0x40e913
movss xmm0, dword [eax + 0x18dc]
mov edx, dword [edi + 0x324]
mulss xmm0, dword [edi + 0x28c]
test edx, edx
je 0x40e903
mulss xmm0, dword [edx + 0x28c]
movss xmm4, dword [eax + 0x1554]
addss xmm4, xmm4
addss xmm4, xmm0
movss xmm0, dword [edi + 0x10]
subss xmm3, xmm4
subss xmm1, dword [edi + 0x14]
comiss xmm3, xmm0
ja 0x40e92d
movaps xmm3, xmm5
minss xmm3, xmm0
movss xmm0, dword [edi + 0xc]
comiss xmm1, xmm0
ja 0x40e93e
movaps xmm1, xmm6
minss xmm1, xmm0
movss dword [edi + 0xc], xmm1
movss dword [edi + 0x10], xmm3
cmp dword [ebp - 0x70], 0
cvttss2si eax, dword [edi + 0xc]
movd xmm0, eax
cvttss2si eax, dword [edi + 0x10]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [edi + 0xc], xmm0
movss dword [edi + 0x10], xmm1
je 0x40e97a
movss xmm3, dword [esi + 0x1540]
jmp 0x40e99a
mov eax, ecx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x40e992
movss xmm3, dword [esi + 0x1548]
jmp 0x40e99a
movss xmm3, dword [esi + 0x1524]
xor dl, dl
movss dword [edi + 0x3c], xmm3
mov dword [ebp - 0x84], edx
cmp byte [ebp - 0x43], dl
je 0x40e9d8
test ecx, 0x1000
jne 0x40e9d8
cmp dword [ebp - 0x50], 0
je 0x40e9c3
mov byte [ebp - 0x84], 1
jmp 0x40e9d8
cmp dword [ebp - 0x60], 0
mov eax, 1
movzx edx, dl
cmove edx, eax
mov dword [ebp - 0x84], edx
movss xmm1, dword [esi + 0x18d8]
xorps xmm0, xmm0
addss xmm3, dword [0x43efc0]
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x30], 0xffffffff
xor eax, eax
cmp byte [esi + 0xb3], al
movaps xmm0, xmm1
mulss xmm1, dword [0x43ef78]
setne al
mulss xmm0, dword [0x43efc8]
inc eax
cmp byte [edi + 0x85], 0
addss xmm1, xmm3
mov dword [ebp - 0x90], eax
maxss xmm0, xmm1
cvttss2si esi, xmm0
jne 0x40ea59
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
lea edx, [ebp - 0x1c]
call fcn.0040bf60
movss xmm2, dword [ebp - 0x58]
add esp, 0x10
test al, al
je 0x40ea59
mov cl, 1
mov dl, cl
jmp 0x40ea5f
mov dl, byte [ebp - 0x46]
mov cl, byte [ebp - 0x41]
cmp byte [edi + 0x85], 0
mov al, byte [ebp - 0x30]
mov byte [edi + 0x8c], al
jne 0x40ebcc
cmp dword [ebp - 0x5c], 0
lea eax, [ebp - 0x98]
movss xmm3, dword [edi + 0x208]
movss xmm4, dword [edi + 0x20c]
subss xmm3, dword [edi + 0x200]
subss xmm4, dword [edi + 0x204]
movss xmm5, dword [edi + 0x20]
movss xmm6, dword [edi + 0x1c]
subss xmm5, dword [ebp - 0x74]
addss xmm3, dword [edi + 0x78]
addss xmm4, dword [edi + 0x7c]
jne 0x40ead0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
jmp 0x40eafc
movss xmm0, dword [edi + 0x34]
movss xmm1, dword [edi + 0x38]
addss xmm0, xmm0
addss xmm1, xmm1
addss xmm0, dword [edi + 0x24]
addss xmm1, dword [edi + 0x28]
movss dword [ebp - 0x98], xmm0
movss dword [ebp - 0x94], xmm1
movss xmm7, dword [eax]
movss xmm1, dword [eax + 4]
test dl, dl
jne 0x40eb0c
movaps xmm6, xmm3
test cl, cl
jne 0x40eb13
movaps xmm5, xmm4
mov ecx, dword [ebp - 0x4c]
test ecx, 0x4000
jne 0x40eb2c
comiss xmm1, xmm5
jbe 0x40eb28
test cl, 8
je 0x40eb2c
xor al, al
jmp 0x40eb2e
mov al, 1
mov byte [ebp - 0x41], al
mov byte [edi + 0x81], al
test ecx, 0x8000
jne 0x40eb79
mov edx, dword [ebp - 0x54]
test al, al
je 0x40eb50
movss xmm0, dword [edx + 0x1580]
jmp 0x40eb53
movaps xmm0, xmm2
subss xmm6, xmm0
comiss xmm7, xmm6
jbe 0x40eb6d
mov eax, ecx
and eax, 0x808
cmp eax, 0x800
mov al, byte [ebp - 0x41]
je 0x40eb79
mov byte [edi + 0x80], 0
movaps xmm1, xmm2
jmp 0x40eba5
mov byte [edi + 0x80], 1
test al, al
jne 0x40eb9a
comiss xmm1, xmm5
jbe 0x40eb92
test cl, 8
jne 0x40eb92
mov al, 1
jmp 0x40eb94
xor al, al
mov byte [edi + 0x81], al
mov edx, dword [ebp - 0x54]
movss xmm1, dword [edx + 0x1580]
test al, al
je 0x40ebbd
movss xmm0, dword [edx + 0x1580]
movss dword [edi + 0x78], xmm0
movss dword [edi + 0x7c], xmm1
jmp 0x40ebd2
movaps xmm0, xmm2
movss dword [edi + 0x7c], xmm1
movss dword [edi + 0x78], xmm0
jmp 0x40ebd2
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
and eax, 0x5000000
mov dword [ebp - 0xa4], eax
cmp eax, 0x1000000
jne 0x40ebf9
cmp dword [ebp - 0x60], 0x3000000
je 0x40ebf9
mov eax, dword [ebp - 0x64]
add eax, 0x240
jmp 0x40ebfc
lea eax, [ebp - 0x2c]
test byte [edi + 8], 1
movss xmm6, dword [edi + 0xc]
movups xmm0, xmmword [eax]
movss xmm5, dword [edi + 0x10]
movaps xmm3, xmm6
addss xmm3, dword [edi + 0x14]
movaps xmm4, xmm5
movss dword [ebp - 0x94], xmm6
addss xmm4, dword [edi + 0x18]
movups xmmword [ebp - 0xb8], xmm0
je 0x40ec33
movaps xmm1, xmm2
jmp 0x40ec75
cmp dword [edi + 0x324], 0
mov eax, dword [0x4598f8]
mov edx, dword [ebp - 0x54]
movss xmm0, dword [eax + 0x18dc]
mulss xmm0, dword [edi + 0x28c]
je 0x40ec65
mov ecx, dword [edi + 0x324]
mulss xmm0, dword [ecx + 0x28c]
mov ecx, dword [ebp - 0x4c]
movss xmm1, dword [eax + 0x1554]
addss xmm1, xmm1
addss xmm1, xmm0
movaps xmm0, xmm6
movss dword [ebp - 0xd0], xmm6
addss xmm0, dword [edi + 0x1c]
movaps xmm7, xmm5
and ecx, 0x401
addss xmm7, xmm1
movss xmm1, dword [edi + 0x10]
movss dword [ebp - 0xcc], xmm1
movss dword [ebp - 0xbc], xmm0
movss dword [ebp - 0xc8], xmm0
movss dword [ebp - 0xd4], xmm7
movss dword [ebp - 0xc4], xmm7
movss dword [edi + 0x1f0], xmm6
movss dword [edi + 0x1f4], xmm5
movss dword [edi + 0x1f8], xmm3
movss dword [edi + 0x1fc], xmm4
movss xmm1, dword [edi + 0x1f0]
movss xmm0, dword [edi + 0x1f4]
movss xmm3, dword [ebp - 0xb8]
movss xmm4, dword [ebp - 0xb4]
maxss xmm1, xmm3
maxss xmm0, xmm4
movss dword [edi + 0x1f0], xmm1
movss dword [edi + 0x1f4], xmm0
movss xmm1, dword [edi + 0x1f8]
movss xmm0, dword [edi + 0x1fc]
minss xmm1, dword [ebp - 0xb0]
minss xmm0, dword [ebp - 0xac]
movss dword [edi + 0x1f8], xmm1
movss dword [edi + 0x1fc], xmm0
movss xmm0, dword [edi + 0x10]
movss xmm5, dword [edi + 0xc]
movaps xmm1, xmm0
movss dword [edi + 0x200], xmm5
addss xmm1, dword [ebp - 0x74]
addss xmm0, dword [edi + 0x18]
movss dword [ebp - 0x7c], xmm1
movss dword [edi + 0x204], xmm1
movaps xmm1, xmm5
addss xmm1, dword [edi + 0x14]
subss xmm0, dword [edi + 0x7c]
subss xmm1, dword [edi + 0x78]
movss dword [ebp - 0x50], xmm0
movss dword [edi + 0x20c], xmm0
movss dword [ebp - 0x5c], xmm1
movss dword [edi + 0x208], xmm1
cmp ecx, 1
jne 0x40edae
movss xmm6, dword [edi + 0x40]
movaps xmm7, xmm6
jmp 0x40edbb
movss xmm6, dword [edx + 0x155c]
movss xmm7, dword [edi + 0x40]
movss xmm5, dword [0x43ef90]
movss xmm0, dword [edi + 0x34]
mulss xmm0, xmm5
cvttss2si eax, xmm0
movss xmm0, dword [edi + 0xc]
addss xmm0, xmm5
movd xmm1, eax
cvtdq2ps xmm1, xmm1
maxss xmm1, xmm7
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x210], xmm0
movss xmm0, dword [ebp - 0x7c]
addss xmm0, xmm5
addss xmm0, xmm6
movss xmm6, dword [ebp - 0xac]
cvttss2si ecx, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x214], xmm0
movss xmm0, dword [ebp - 0x5c]
addss xmm0, xmm5
subss xmm0, xmm1
cvttss2si ecx, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x218], xmm0
movss xmm0, dword [ebp - 0x50]
addss xmm0, xmm5
subss xmm0, xmm7
cvttss2si ecx, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x21c], xmm0
movss xmm0, dword [edi + 0x214]
comiss xmm4, xmm0
jbe 0x40ee75
movaps xmm1, xmm4
jmp 0x40ee7c
movaps xmm1, xmm6
minss xmm1, xmm0
movss xmm7, dword [ebp - 0xb0]
movd xmm5, eax
cvtdq2ps xmm5, xmm5
comiss xmm3, xmm5
jbe 0x40ee95
movaps xmm0, xmm3
jmp 0x40ee9c
movaps xmm0, xmm7
minss xmm0, xmm5
movss dword [edi + 0x210], xmm0
movss dword [edi + 0x214], xmm1
movss xmm0, dword [edi + 0x21c]
comiss xmm4, xmm0
ja 0x40eec0
movaps xmm4, xmm6
minss xmm4, xmm0
movss xmm0, dword [edi + 0x218]
comiss xmm3, xmm0
ja 0x40eed4
movaps xmm3, xmm7
minss xmm3, xmm0
movss dword [edi + 0x218], xmm3
movss dword [edi + 0x21c], xmm4
movss xmm0, dword [edi + 0x14]
comiss xmm0, xmm2
jbe 0x40ef01
test dword [ebp - 0x4c], 0x2000040
jne 0x40ef01
mulss xmm0, dword [0x43ef98]
jmp 0x40ef11
movss xmm0, dword [edx + 0x18d8]
mulss xmm0, dword [0x43f070]
cvttss2si eax, xmm0
mov edx, edi
lea ecx, [ebp - 0x80]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x270], xmm0
movss xmm1, dword [edi + 0x34]
movss xmm0, dword [edi + 0x208]
addss xmm1, xmm1
subss xmm0, dword [edi + 0x200]
addss xmm1, dword [edi + 0x24]
subss xmm1, xmm0
movaps xmm0, xmm2
maxss xmm0, xmm1
movss xmm1, dword [edi + 0x38]
addss xmm1, xmm1
movss dword [edi + 0x58], xmm0
movss xmm0, dword [edi + 0x20c]
subss xmm0, dword [edi + 0x204]
addss xmm1, dword [edi + 0x28]
subss xmm1, xmm0
movaps xmm0, xmm2
maxss xmm0, xmm1
movss dword [edi + 0x5c], xmm0
call fcn.00410aa0
mov edx, dword [edi + 0x294]
mov dword [ebp - 0x5c], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [edi + 0x50], ecx
mov dword [edi + 0x60], 0x7f7fffff
mov dword [edi + 0x64], 0x7f7fffff
lea edi, [edx + 0x48]
mov eax, dword [eax + 0x18d4]
mov ecx, dword [edi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x40efed
inc ecx
test eax, eax
je 0x40efd9
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x40efde
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.004159f0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov edx, dword [ebp - 0x7c]
mov dword [eax + ecx*4], edx
mov edx, dword [ebp - 0x5c]
mov ecx, edx
inc dword [edi]
mov eax, dword [ebp - 0x7c]
mov dword [edx + 0x70], eax
call fcn.0041dbe0
mov ecx, dword [0x4598f8]
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
mov eax, dword [ecx + 0x1a10]
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
mov byte [eax + 0x84], 1
mov edi, dword [ecx + 0x1a10]
push 0
mov ecx, dword [edi + 0x294]
call fcn.0041dc50
mov eax, dword [edi + 0x294]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
add ecx, ecx
test dword [ebp - 0x4c], 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 [edi + 0x240], eax
movss dword [edi + 0x244], xmm0
movss dword [edi + 0x248], xmm1
movss dword [edi + 0x24c], xmm2
je 0x40f0aa
call fcn.00411110
mov edi, dword [ebp - 0x78]
cmp edi, eax
jne 0x40f0ad
cmp dword [edi + 0xa4], 0
jg 0x40f0ad
mov dl, 1
jmp 0x40f0af
mov edi, dword [ebp - 0x78]
xor dl, dl
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x1c54]
test ecx, ecx
je 0x40f0c8
cmp edi, dword [ecx + 0x328]
jne 0x40f0c8
mov cl, 1
jmp 0x40f0ca
xor cl, cl
mov byte [ebp - 0x41], cl
test dl, dl
jne 0x40f0d9
test cl, cl
je 0x40f1c5
movss xmm1, dword [eax + 0x1cc8]
push 0xf
push ecx
movzx ecx, dl
add ecx, 0x2e
mov dword [esp], 0
call fcn.00406460
mov ecx, dword [edi + 0x294]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041f770
cmp byte [ebp - 0x41], 0
mov eax, dword [ebp - 0x54]
je 0x40f1c5
cmp edi, dword [eax + 0x1c54]
jne 0x40f1c5
movss xmm2, dword [edi + 0xc]
movss xmm3, dword [edi + 0x10]
movaps xmm1, xmm2
movss xmm0, dword [eax + 0x18d8]
movaps xmm4, xmm3
addss xmm2, dword [edi + 0x14]
addss xmm3, dword [edi + 0x18]
subss xmm1, xmm0
subss xmm4, xmm0
addss xmm2, xmm0
addss xmm3, xmm0
movss xmm0, dword [ebp - 0x58]
comiss xmm0, xmm1
movss dword [ebp - 0x2c], xmm1
movss dword [ebp - 0x28], xmm4
movss dword [ebp - 0x24], xmm2
movss dword [ebp - 0x20], xmm3
jb 0x40f187
comiss xmm0, xmm4
jb 0x40f187
comiss xmm2, dword [ebp - 0xa0]
jb 0x40f187
comiss xmm3, dword [ebp - 0x68]
jae 0x40f1c5
movss xmm1, dword [eax + 0x1c60]
mulss xmm1, dword [0x43ef7c]
push 0xf
movss xmm0, dword [eax + 0x1524]
push ecx
mov ecx, 0x2d
movss dword [esp], xmm0
call fcn.00406460
mov ecx, dword [edi + 0x294]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041f770
cmp dword [ebp - 0xa4], 0x1000000
mov byte [ebp - 0x41], 0
jne 0x40f20c
cmp dword [ebp - 0x60], 0x3000000
je 0x40f20c
mov edx, dword [edi + 0x294]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x40f20c
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x294]
cmp dword [eax + 0x18], 0
jle 0x40f20c
mov byte [ebp - 0x41], 1
mov dword [edi + 0x294], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x1c50]
test ecx, ecx
jne 0x40f21f
mov ecx, dword [eax + 0x1b48]
cmp byte [ebp - 0x84], 0
jne 0x40f240
test ecx, ecx
je 0x40f23a
mov eax, dword [edi + 0x32c]
cmp eax, dword [ecx + 0x32c]
je 0x40f240
mov byte [ebp - 0x7c], 0
jmp 0x40f244
mov byte [ebp - 0x7c], 1
movd xmm0, esi
lea eax, [ebp - 0x14]
cvtdq2ps xmm0, xmm0
push ecx
lea edx, [ebp - 0xd0]
mov ecx, edi
movss dword [esp], xmm0
push eax
push dword [ebp - 0x90]
push dword [ebp - 0x7c]
call fcn.0040cdc0
add esp, 0x10
cmp byte [ebp - 0x41], 0
je 0x40f280
lea eax, [edi + 0x298]
mov dword [edi + 0x294], eax
mov edx, dword [ebp - 0x54]
cmp dword [edx + 0x1c54], edi
jne 0x40f415
movss xmm1, dword [edi + 0xc]
movss xmm5, dword [edi + 0x3c]
movaps xmm4, xmm1
movss xmm3, dword [edx + 0x18d8]
movaps xmm0, xmm5
addss xmm1, dword [edi + 0x14]
maxss xmm0, dword [edx + 0x1524]
movss xmm7, dword [edi + 0x10]
subss xmm4, xmm3
movaps xmm2, xmm7
addss xmm7, dword [edi + 0x18]
subss xmm2, xmm3
addss xmm1, xmm3
movss dword [ebp - 0x78], xmm0
movss xmm0, dword [ebp - 0x58]
comiss xmm0, xmm4
movss dword [ebp - 0x50], xmm4
addss xmm7, xmm3
movss dword [ebp - 0x60], xmm2
movss dword [ebp - 0x5c], xmm1
jb 0x40f339
comiss xmm0, xmm2
jb 0x40f339
comiss xmm1, dword [ebp - 0xa0]
jb 0x40f339
comiss xmm7, dword [ebp - 0x68]
jb 0x40f339
xorps xmm3, xmmword [0x43f5a0]
subss xmm3, dword [0x43efc0]
movss dword [ebp - 0x78], xmm5
movaps xmm0, xmm3
subss xmm4, xmm3
subss xmm2, xmm3
addss xmm0, xmm1
addss xmm7, xmm3
movss dword [ebp - 0x50], xmm4
movss dword [ebp - 0x60], xmm2
movss dword [ebp - 0x5c], xmm0
movss xmm1, dword [edx + 0x1c60]
mov ecx, 0x2d
mov esi, dword [edi + 0x294]
call fcn.00406460
mov dword [ebp - 0x90], eax
test eax, 0xff000000
je 0x40f415
test byte [esi + 0x24], 1
lea eax, [ebp - 0xa8]
movss xmm1, dword [ebp - 0x5c]
mov ecx, esi
movss xmm0, dword [ebp - 0x50]
movss xmm3, dword [ebp - 0x78]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x6c]
push eax
je 0x40f3aa
movss xmm2, dword [0x43ef90]
addss xmm0, xmm2
subss xmm1, xmm2
subss xmm7, xmm2
movss dword [ebp - 0x6c], xmm0
movss xmm0, dword [ebp - 0x60]
addss xmm0, xmm2
jmp 0x40f3d4
addss xmm0, dword [0x43ef90]
subss xmm1, dword [0x43ef8c]
subss xmm7, dword [0x43ef8c]
movss dword [ebp - 0x6c], xmm0
movss xmm0, dword [ebp - 0x60]
addss xmm0, dword [0x43ef90]
movss dword [ebp - 0xa8], xmm1
movss dword [ebp - 0xa4], xmm7
movss dword [ebp - 0x68], xmm0
call fcn.0041f320
push ecx
mov dword [esp], 0x40400000
mov ecx, esi
push 1
push dword [ebp - 0x90]
push dword [esi + 0x54]
push dword [esi + 0x5c]
call fcn.0041df60
mov edx, dword [ebp - 0x54]
mov dword [esi + 0x54], 0
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
movss xmm0, dword [edi + 0x2c]
movss xmm4, dword [ebp - 0x58]
shr eax, 3
not al
and eax, 0xffffff01
ucomiss xmm0, xmm4
mov dword [ebp - 0x90], eax
lahf
test ah, 0x44
jnp 0x40f444
movss dword [ebp - 0x68], xmm0
jmp 0x40f47c
mov eax, ecx
and eax, 0x808
cmp eax, 0x800
jne 0x40f459
movss xmm2, dword [edi + 0x24]
jmp 0x40f45c
movaps xmm2, xmm4
movss xmm1, dword [edi + 0x34]
movss xmm0, dword [edi + 0x14]
addss xmm1, xmm1
subss xmm0, xmm1
subss xmm0, dword [edi + 0x78]
maxss xmm2, xmm0
movss dword [ebp - 0x68], xmm2
movss xmm5, dword [edi + 0x30]
ucomiss xmm5, xmm4
lahf
test ah, 0x44
jnp 0x40f4a1
movss xmm6, dword [edi + 0x38]
movaps xmm0, xmm6
movss dword [ebp - 0xa0], xmm5
movss dword [ebp - 0x5c], xmm0
jmp 0x40f4e4
cmp byte [ebp - 0x90], 0
je 0x40f4b1
movss xmm2, dword [edi + 0x28]
jmp 0x40f4b4
movaps xmm2, xmm4
movss xmm6, dword [edi + 0x38]
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm6
addss xmm0, xmm6
movss dword [ebp - 0x5c], xmm6
subss xmm1, xmm0
subss xmm1, dword [ebp - 0x74]
subss xmm1, dword [edi + 0x7c]
maxss xmm2, xmm1
movss dword [ebp - 0xa0], xmm2
movss xmm7, dword [edi + 0x34]
movss xmm2, dword [edi + 0x50]
movaps xmm1, xmm7
maxss xmm1, dword [edi + 0x40]
movss xmm0, dword [edi + 0x200]
subss xmm0, xmm2
movss dword [ebp - 0x7c], xmm2
movss xmm3, dword [edi + 0x10]
addss xmm1, xmm0
movss xmm0, dword [edi + 0x54]
movss dword [ebp - 0x50], xmm0
subss xmm3, dword [ebp - 0x50]
cvttss2si eax, xmm1
movss xmm1, dword [edi + 0x204]
addss xmm3, xmm6
subss xmm1, xmm0
movaps xmm0, xmm6
maxss xmm0, dword [edi + 0x40]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm1, xmm0
addss xmm3, dword [ebp - 0x74]
movss dword [edi + 0x220], xmm2
cvttss2si eax, xmm1
movss xmm1, dword [ebp - 0x68]
addss xmm1, xmm2
movss dword [edi + 0x254], xmm3
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x228], xmm1
movss xmm1, dword [ebp - 0xa0]
addss xmm1, xmm0
movss dword [edi + 0x224], xmm0
movss dword [edi + 0x22c], xmm1
movups xmm0, xmmword [edi + 0x220]
movss xmm1, dword [edi + 0x2c]
movups xmmword [edi + 0x230], xmm0
movss xmm0, dword [edi + 0xc]
movaps xmm2, xmm0
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ebp - 0x7c]
ucomiss xmm1, xmm4
subss xmm2, xmm0
lahf
addss xmm2, xmm7
movss dword [edi + 0x250], xmm2
test ah, 0x44
jp 0x40f5ee
movss xmm1, dword [edi + 0x14]
movaps xmm0, xmm7
addss xmm0, xmm7
subss xmm1, xmm0
movss xmm0, dword [ebp - 0x7c]
subss xmm1, dword [edi + 0x78]
ucomiss xmm5, xmm4
addss xmm2, xmm1
movss xmm1, dword [ebp - 0x74]
lahf
movss dword [edi + 0x258], xmm2
test ah, 0x44
jp 0x40f61e
movss xmm5, dword [edi + 0x18]
addss xmm6, xmm6
subss xmm5, xmm6
subss xmm5, xmm1
subss xmm5, dword [edi + 0x7c]
cmp dword [ebp - 0x70], 0
addss xmm7, xmm4
addss xmm3, xmm5
subss xmm7, xmm0
movss xmm0, dword [ebp - 0x5c]
movss dword [edi + 0x25c], xmm3
addss xmm0, xmm1
movss dword [edi + 0x108], xmm7
addss xmm7, xmm4
subss xmm0, dword [ebp - 0x50]
mov dword [edi + 0x110], 0
mov dword [edi + 0x10c], 0
addss xmm7, dword [ebp - 0x90]
addss xmm0, dword [edi + 0x10]
movss dword [edi + 0xe0], xmm7
movss dword [edi + 0xe4], xmm0
mov eax, dword [edi + 0xe0]
mov ecx, dword [edi + 0xe4]
mov dword [edi + 0xd0], eax
mov dword [edi + 0xd4], ecx
mov eax, dword [edi + 0xe0]
mov ecx, dword [edi + 0xe4]
mov dword [edi + 0xd8], eax
mov dword [edi + 0xdc], ecx
mov eax, dword [edi + 0xe0]
mov ecx, dword [edi + 0xe4]
mov dword [edi + 0xe8], eax
mov dword [edi + 0xec], ecx
mov dword [edi + 0xf8], 0
mov dword [edi + 0xfc], 0
mov eax, dword [edi + 0xf8]
mov ecx, dword [edi + 0xfc]
mov dword [edi + 0xf0], eax
mov dword [edi + 0xf4], ecx
mov dword [edi + 0x104], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x13c], 0
mov eax, dword [edi + 0x144]
mov dword [edi + 0x140], eax
mov dword [edi + 0x144], 0
je 0x40f736
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x148]
jmp 0x40f738
xor eax, eax
mov dword [edi + 0x148], eax
lea ecx, [edi + 0x170]
mov byte [edi + 0x14c], 0
movss xmm0, dword [edi + 0x5c]
comiss xmm0, xmm4
seta al
cmp byte [ebp - 0x43], 0
mov byte [edi + 0x14d], al
mov byte [edi + 0x14e], 0
movss xmm0, dword [edx + 0x1560]
mov dword [edi + 0x160], 0
mov dword [edi + 0x15c], 0
movss dword [edi + 0x158], xmm0
je 0x40f79b
xorps xmm0, xmm0
movq qword [ecx], xmm0
mov dword [ecx + 8], 0
xor edx, edx
nop dword [eax]
test edx, edx
je 0x40f7c5
movss xmm0, dword [ecx]
comiss xmm0, xmm4
jbe 0x40f7c5
movss xmm0, dword [edi + 0x15c]
addss xmm0, dword [edi + 0x158]
movss dword [edi + 0x15c], xmm0
cvttss2si eax, dword [edi + 0x15c]
inc edx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx - 0xc], xmm0
movss xmm0, dword [ecx]
addss xmm0, dword [edi + 0x15c]
movss dword [edi + 0x15c], xmm0
mov dword [ecx], 0
add ecx, 4
cmp edx, 3
jl 0x40f7a0
mov dword [edi + 0x17c], 0
mov dword [edi + 0x180], 0
mov ecx, dword [edi + 0x188]
test ecx, ecx
jns 0x40f836
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 + 0x184]
call fcn.004159f0
mov dword [edi + 0x184], 0
lea eax, [edi + 0x274]
mov dword [edi + 0x190], eax
mov eax, dword [ebp - 0x64]
mov dword [edi + 0x194], 0
mov dword [edi + 0x198], 1
test eax, eax
je 0x40f86f
mov eax, dword [eax + 0x198]
jmp 0x40f874
mov eax, 1
mov dword [edi + 0x19c], eax
lea esi, [edi + 0x1b4]
mov dword [edi + 0x1a4], 0xffffffff
mov dword [edi + 0x1a0], 0xffffffff
mov eax, dword [edi + 0x270]
mov dword [edi + 0x1ac], eax
mov dword [edi + 0x1b0], 0xbf800000
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40f8c9
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.004159f0
lea eax, [edi + 0x1c0]
mov dword [esi], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40f8fe
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.004159f0
lea eax, [edi + 0x1c0]
mov dword [eax], 0
lea eax, [edi + 0x1cc]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40f933
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 + 0x1cc]
call fcn.004159f0
lea eax, [edi + 0x1cc]
push 0
lea ecx, [edi + 0x1d8]
mov dword [eax], 0
call fcn.004156d0
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x40f995
mov edx, dword [eax + 0x1a8]
mov dword [edi + 0x1a8], edx
mov ecx, dword [esi]
mov eax, dword [esi + 4]
cmp ecx, eax
jne 0x40f98b
inc ecx
test eax, eax
je 0x40f971
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x40f976
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.004159f0
mov ecx, dword [esi]
mov edx, dword [edi + 0x1a8]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edx
inc dword [esi]
jmp 0x40f99f
mov dword [edi + 0x1a8], 0
mov al, byte [edi + 0x98]
test al, al
jle 0x40f9b1
dec al
mov byte [edi + 0x98], al
mov al, byte [edi + 0x99]
test al, al
jle 0x40f9c3
dec al
mov byte [edi + 0x99], al
cmp byte [ebp - 0x84], 0
je 0x40f9dc
mov ecx, edi
call fcn.0040fd80
xor dl, dl
mov ecx, edi
call fcn.00412140
test byte [ebp - 0x4c], 1
jne 0x40f9f9
push ecx
push dword [ebp - 0x9c]
lea edx, [ebp - 0xd0]
mov ecx, edi
call fcn.0040d3b0
add esp, 8
mov esi, dword [0x4598f8]
xor eax, eax
movss xmm2, dword [ebp - 0x94]
movss xmm3, dword [ebp - 0xbc]
movss xmm4, dword [ebp - 0xd4]
movss xmm5, dword [ebp - 0xcc]
mov dword [edi + 0x260], eax
movss xmm1, dword [esi + 0x1570]
movss xmm0, dword [esi + 0x1574]
subss xmm2, xmm1
addss xmm3, xmm1
movss xmm1, dword [esi + 0xe4]
addss xmm4, xmm0
subss xmm5, xmm0
comiss xmm1, xmm2
jb 0x40fa70
movss xmm0, dword [esi + 0xe8]
comiss xmm0, xmm5
jb 0x40fa70
comiss xmm3, xmm1
jbe 0x40fa70
comiss xmm4, xmm0
jbe 0x40fa70
lea ecx, [eax + 1]
jmp 0x40fa72
xor ecx, ecx
mov eax, dword [edi + 0x48]
movups xmm0, xmmword [ebp - 0xd0]
mov dword [edi + 0x114], eax
mov dword [edi + 0x118], ecx
movups xmmword [edi + 0x11c], xmm0
jmp 0x40facf
mov esi, dword [0x4598f8]
movss xmm0, dword [esi + 0x18dc]
mov dword [esi + 0x1a10], edi
mov eax, dword [edi + 0x324]
mulss xmm0, dword [edi + 0x28c]
test eax, eax
je 0x40fabf
mulss xmm0, dword [eax + 0x28c]
movss dword [esi + 0x18ec], xmm0
movss dword [esi + 0x18d8], xmm0
mov eax, dword [esi + 0x1a10]
mov byte [eax + 0x84], 1
push dword [edi + 0x21c]
mov esi, dword [esi + 0x1a10]
push dword [edi + 0x218]
push dword [edi + 0x214]
mov ecx, dword [esi + 0x294]
push dword [edi + 0x210]
push 1
call fcn.0041dc50
mov eax, dword [esi + 0x294]
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 dword [esi + 0x240], eax
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x54]
movss dword [esi + 0x244], xmm0
movss dword [esi + 0x248], xmm1
movss dword [esi + 0x24c], xmm2
je 0x40fc7d
mov ecx, dword [ebp - 0x4c]
mov byte [edi + 0x84], 0
inc word [edi + 0x8e]
mov dword [eax + 0x1a98], 0
test ecx, 0x1000000
je 0x40fc07
test cl, 0x40
jne 0x40fbc8
cmp byte [edi + 0x98], 0
jg 0x40fbc8
cmp byte [edi + 0x99], 0
jg 0x40fbc8
movss xmm0, dword [edi + 0x1f0]
comiss xmm0, dword [edi + 0x1f8]
jae 0x40fbbe
movss xmm0, dword [edi + 0x1f4]
comiss xmm0, dword [edi + 0x1fc]
jb 0x40fbc8
mov dword [edi + 0xa0], 1
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x40fc07
cmp byte [ecx + 0x85], 0
jne 0x40fbe1
cmp dword [ecx + 0xa0], 0
jle 0x40fbf4
mov dword [edi + 0xa0], 1
cmp byte [ecx + 0x85], 0
jne 0x40fbfd
cmp dword [ecx + 0xa4], 0
jle 0x40fc07
mov dword [edi + 0xa4], 1
movss xmm0, dword [ebp - 0x58]
comiss xmm0, dword [eax + 0x1518]
jb 0x40fc67
mov dword [edi + 0xa0], 1
mov cl, 1
xor al, al
mov byte [edi + 0x89], cl
cmp byte [edi + 0x85], al
jne 0x40fc3d
cmp byte [edi + 0x82], al
je 0x40fc3d
test cl, cl
je 0x40fc5f
cmp byte [edi + 0x98], al
jg 0x40fc5f
cmp byte [edi + 0x99], al
jg 0x40fc5f
cmp dword [edi + 0xa4], 0
mov ecx, 1
movzx eax, al
cmovle eax, ecx
mov byte [edi + 0x87], al
jmp 0x40fc94
cmp dword [edi + 0xa0], 0
jg 0x40fc1f
cmp dword [edi + 0xa4], 0
jg 0x40fc1f
xor cl, cl
jmp 0x40fc21
inc word [edi + 0x8e]
mov dword [eax + 0x1a98], 0
mov al, byte [edi + 0x87]
mov ecx, dword [ebp - 4]
test al, al
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.004384ec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret