Function at 0x40e7b0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x443040]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x4434a8]
push edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], esi
call fcn.0040b9e0
mov edi, eax
mov dword [esp + 0x58], eax
test edi, edi
mov dword [esp + 0x3c], edi
sete byte [esp + 0x40]
test eax, eax
jne 0x40e812
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
call fcn.0040bce0
mov edi, eax
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0x4000]
cmp ecx, dword [edi + 8]
jne 0x40e81e
int3
mov ecx, dword [esp + 0x14]
mov eax, ecx
and eax, 0x30200
cmp eax, 0x30200
jne 0x40e837
or ecx, 6
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x3fdc], 0
mov edx, dword [esi + 0x3f70]
mov eax, dword [edi + 0x24c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], eax
jne 0x40e861
cmp byte [esi + 0x3f7d], 0
je 0x40e861
mov al, 1
jmp 0x40e863
xor al, al
mov byte [edi + 0xc3], al
lea eax, [edx - 1]
cmp dword [esp + 0x4c], eax
setl al
mov byte [esp + 0x1f], al
test ecx, 0x4000000
je 0x40e8bd
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x4aac]
mov edx, dword [edx + 0x4aa8]
lea esi, [eax + eax*4]
mov eax, dword [edi + 0x84]
cmp edi, dword [edx + esi*8 + 4]
setne cl
cmp eax, dword [edx + esi*8]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
setne al
or cl, al
mov al, byte [esp + 0x1f]
or al, cl
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x1f], al
mov byte [edi + 0xc1], al
test al, al
je 0x40e8dc
or byte [edi + 0xe0], 8
or byte [edi + 0xe1], 8
or byte [edi + 0xe2], 8
cmp dword [esp + 0x4c], edx
je 0x40e94e
mov dl, byte [esp + 0x40]
push ecx
mov ecx, edi
call fcn.0040ba30
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [edi + 0xc], edx
test dword [esi + 0x49e8], 0x100
je 0x40e90c
mov eax, dword [esi + 0x4a20]
jmp 0x40e90e
xor eax, eax
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x24c], eax
xor eax, eax
movsd xmm0, qword [esi + 0x3f68]
cvtpd2ps xmm0, xmm0
mov word [edi + 0xcc], ax
movss dword [edi + 0x250], xmm0
movzx eax, word [esi + 0x3ff4]
inc dword [esi + 0x3ff4]
mov word [edi + 0xce], ax
jmp 0x40e955
mov edx, dword [edi + 0xc]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3fdc]
test eax, eax
jne 0x40e963
xor ecx, ecx
jmp 0x40e970
imul ecx, eax, 0x68
mov eax, dword [esi + 0x3fe4]
mov ecx, dword [eax + ecx - 0x68]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], ecx
cmp eax, dword [esp + 0x50]
je 0x40e98d
mov eax, edx
and eax, 0x5000000
neg eax
sbb eax, eax
and eax, ecx
jmp 0x40e993
mov eax, dword [edi + 0x30c]
cmp dword [edi + 0xf4], 0
mov dword [esp + 0x44], eax
lea eax, [edi + 0xf4]
jne 0x40e9cc
cmp dword [eax + 4], 0
jne 0x40e9bb
push 8
mov ecx, eax
call fcn.0041bf60
lea eax, [edi + 0xf4]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 8]
mov dword [ecx + edx*4], eax
inc dword [edi + 0xf4]
lea ecx, [esp + 0xdc]
mov dword [esi + 0x4004], edi
call fcn.00402080
test dword [esp + 0x14], 0x2000000
xorps xmm0, xmm0
mov eax, dword [esi + 0x4004]
movups xmmword [esp + 0x12c], xmm0
mov word [esp + 0x13c], 0
movups xmm0, xmmword [esi + 0x4998]
movzx eax, word [eax + 0xf4]
mov word [esp + 0x12c], ax
movzx eax, word [esi + 0x4a58]
mov word [esp + 0x12e], ax
movzx eax, word [esi + 0x4a64]
movups xmmword [esp + 0xdc], xmm0
mov word [esp + 0x130], ax
movups xmm0, xmmword [esi + 0x49a8]
movzx eax, word [esi + 0x4a70]
mov word [esp + 0x132], ax
movzx eax, word [esi + 0x4a7c]
movups xmmword [esp + 0xec], xmm0
mov word [esp + 0x134], ax
movups xmm0, xmmword [esi + 0x49b8]
movzx eax, word [esi + 0x4a94]
mov word [esp + 0x136], ax
movzx eax, word [esi + 0x4a88]
movups xmmword [esp + 0xfc], xmm0
mov word [esp + 0x138], ax
movups xmm0, xmmword [esi + 0x49c8]
movzx eax, word [esi + 0x4aac]
mov word [esp + 0x13a], ax
movzx eax, word [esi + 0x5e58]
movups xmmword [esp + 0x10c], xmm0
mov dword [esp + 0xd8], edi
movups xmm0, xmmword [esi + 0x49d8]
mov word [esp + 0x13c], ax
movups xmmword [esp + 0x11c], xmm0
je 0x40eaf0
test dword [esi + 0x4958], 0x400
mov byte [esp + 0x13e], 1
jne 0x40eaf8
mov byte [esp + 0x13e], 0
mov edi, dword [esi + 0x3fdc]
lea eax, [esi + 0x3fdc]
mov esi, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp edi, esi
jne 0x40eb3b
inc edi
test esi, esi
je 0x40eb25
mov eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x18]
sar ecx, 1
add ecx, esi
jmp 0x40eb2a
mov ecx, 8
cmp ecx, edi
cmovg edi, ecx
mov ecx, eax
push edi
call fcn.0041c730
mov eax, dword [esp + 0x18]
imul edi, dword [eax], 0x68
lea esi, [esp + 0xd8]
mov ecx, 0x1a
add edi, dword [eax + 8]
rep movsd dword es:[edi], dword [esi]
inc dword [eax]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
test ecx, 0x10000000
je 0x40eb67
inc dword [esi + 0x5dc8]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
cmp eax, dword [esp + 0x50]
je 0x40ec34
mov edx, dword [esp + 0x44]
mov dword [edi + 0x30c], edx
mov dword [edi + 0x320], edi
mov dword [edi + 0x31c], edi
mov dword [edi + 0x318], edi
mov dword [edi + 0x314], edi
test edx, edx
je 0x40ebe9
mov eax, ecx
and eax, 0x3000000
cmp eax, 0x1000000
jne 0x40ebb9
mov eax, dword [edx + 0x314]
mov dword [edi + 0x314], eax
test ecx, 0x4000000
je 0x40ebcd
mov eax, dword [edx + 0x318]
mov dword [edi + 0x318], eax
test ecx, 0x8000000
jne 0x40ebe9
test ecx, 0x5000000
je 0x40ebe9
mov eax, dword [edx + 0x31c]
mov dword [edi + 0x31c], eax
test dword [edi + 0x10], 0x100
je 0x40ec17
mov edx, edi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [edx + 0x30c]
mov edx, eax
mov dword [edi + 0x320], eax
test dword [edx + 0x10], 0x100
jne 0x40ec00
mov edx, dword [esp + 0x30]
mov eax, ecx
and eax, 0x1000000
mov dword [edi + 0x310], edx
neg eax
sbb eax, eax
and eax, edx
mov dword [edi + 0x324], eax
test dword [edi + 0x10], 0x100
je 0x40ec45
mov eax, dword [esi + 0x4954]
jmp 0x40ec48
mov eax, dword [edi + 8]
mov ecx, dword [0x4434a8]
mov dword [esp + 0x18], eax
lea edx, [ecx + 0x4a7c]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x24], edx
mov eax, dword [ecx + 0x4004]
mov ecx, dword [edx + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
cmp dword [edx], ecx
jne 0x40eca7
test ecx, ecx
je 0x40ec8a
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
add eax, ecx
jmp 0x40ec8f
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.0041c660
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov ecx, dword [edx + 8]
mov esi, dword [esp + 0x18]
mov dword [ecx + eax*8], esi
mov esi, dword [esp + 0x20]
mov dword [ecx + eax*8 + 4], esi
mov ecx, dword [esp + 0x140]
inc dword [edx]
test dword [esp + 0x14], 0x4000000
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x4954], eax
mov eax, dword [esi + 0x4954]
mov dword [edi + 0x364], eax
je 0x40ed9b
mov eax, dword [esi + 0x4aac]
mov edx, dword [esi + 0x4aa8]
mov dword [esp + 0x24], edx
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x30]
mov dword [edx + ecx*8 + 4], edi
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x158]
mov dword [edx + ecx*8 + 0xc], eax
lea edx, [esi + 0x4aac]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov dword [esp + 0x20], eax
cmp ecx, eax
jne 0x40ed56
inc ecx
test eax, eax
je 0x40ed3e
cdq
sub eax, edx
lea edx, [esi + 0x4aac]
sar eax, 1
add eax, dword [esp + 0x20]
jmp 0x40ed43
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.0041c590
lea edx, [esi + 0x4aac]
mov eax, dword [edx]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
movups xmm0, xmmword [esi + edi*8]
movups xmmword [eax + ecx*8], xmm0
movups xmm0, xmmword [esi + edi*8 + 0x10]
movups xmmword [eax + ecx*8 + 0x10], xmm0
movq xmm0, qword [esi + edi*8 + 0x20]
movq qword [eax + ecx*8 + 0x20], xmm0
mov eax, edi
mov edi, dword [esp + 0x3c]
mov ecx, esi
inc dword [edx]
mov esi, dword [esp + 0x34]
mov eax, dword [ecx + eax*8]
mov dword [edi + 0x84], eax
test byte [esi + 0x49e8], 1
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
je 0x40ee55
mov dl, byte [edi + 0xe0]
mov ecx, dword [esi + 0x49ec]
movsx eax, dl
test ecx, eax
setne byte [esp + 0x11]
test ecx, eax
je 0x40ee44
movss xmm1, dword [esi + 0x4a04]
movss xmm0, dword [esi + 0x4a00]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
comiss xmm0, dword [0x440c54]
jbe 0x40ee44
mov eax, dword [esi + 0x49f8]
mov ecx, dword [esi + 0x49fc]
mov dword [edi + 0xe8], ecx
mov dword [edi + 0xe4], eax
mov eax, dword [esi + 0x4a00]
mov ecx, dword [esi + 0x4a04]
mov dword [edi + 0xf0], ecx
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe0]
movzx ecx, dl
and eax, 0xffffff00
and ecx, 0xf1
or ecx, eax
mov dword [edi + 0xe0], ecx
jmp 0x40ee55
push ecx
lea edx, [esi + 0x49f8]
mov ecx, edi
call fcn.00411930
add esp, 4
test byte [esi + 0x49e8], 2
xorps xmm1, xmm1
je 0x40eef6
mov cl, byte [edi + 0xe1]
movsx eax, cl
and eax, dword [esi + 0x49f0]
je 0x40ee8a
movss xmm0, dword [esi + 0x4a08]
comiss xmm0, xmm1
jbe 0x40ee8a
mov byte [esp + 0x13], 1
jmp 0x40ee93
mov byte [esp + 0x13], 0
test eax, eax
je 0x40eea7
movss xmm0, dword [esi + 0x4a0c]
comiss xmm0, xmm1
jbe 0x40eeac
mov byte [esp + 0x12], 1
jmp 0x40eeb1
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
test byte [edi + 0x10], 4
je 0x40eec5
test cl, 4
jne 0x40eec5
mov eax, dword [edi + 0x28]
mov dword [esi + 0x4a08], eax
test byte [edi + 0x10], 8
je 0x40eedd
test byte [edi + 0xe1], 4
jne 0x40eedd
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x4a0c], eax
push dword [esi + 0x49f0]
lea edx, [esi + 0x4a08]
mov ecx, edi
call fcn.00411a90
add esp, 4
xorps xmm1, xmm1
test byte [esi + 0x49e8], 0x80
je 0x40ef3d
movss xmm0, dword [esi + 0x4a18]
comiss xmm0, xmm1
jb 0x40ef1e
movss dword [edi + 0x98], xmm0
mov dword [edi + 0xa0], 0
movss xmm0, dword [esi + 0x4a1c]
comiss xmm0, xmm1
jb 0x40ef3d
movss dword [edi + 0x9c], xmm0
mov dword [edi + 0xa4], 0
test byte [esi + 0x49e8], 4
je 0x40ef5a
mov eax, dword [esi + 0x4a10]
mov ecx, dword [esi + 0x4a14]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
jmp 0x40ef72
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x50]
je 0x40ef72
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
test byte [esi + 0x49e8], 8
je 0x40efbf
mov ecx, dword [esi + 0x49f4]
mov dl, byte [esi + 0x4a24]
test ecx, ecx
je 0x40ef96
movsx eax, byte [edi + 0xe2]
test ecx, eax
je 0x40efbf
movzx ecx, byte [edi + 0xe2]
mov eax, dword [edi + 0xe0]
and ecx, 0xf1
shl ecx, 0x10
and eax, 0xff00ffff
or ecx, eax
mov byte [edi + 0xbd], dl
mov dword [edi + 0xe0], ecx
test byte [esi + 0x49e8], 0x20
je 0x40efd1
xor edx, edx
mov ecx, edi
call fcn.004114d0
mov dl, byte [edi + 0xc1]
test dl, dl
je 0x40eff0
and byte [edi + 0xe0], 0xf7
and byte [edi + 0xe1], 0xf7
and byte [edi + 0xe2], 0xf7
mov ecx, dword [0x4434a8]
mov byte [edi + 0xc0], 0
test dword [ecx + 0x49e8], 0x200
je 0x40f0a6
mov eax, dword [ecx + 0x4a4c]
test al, 1
je 0x40f0a6
test dl, dl
jne 0x40f0a6
cmp byte [edi + 0xc2], dl
jne 0x40f0a6
test al, 2
je 0x40f05e
mov eax, dword [ecx + 0x4008]
test eax, eax
je 0x40f05e
mov eax, dword [eax + 0x314]
cmp dword [edi + 0x314], eax
je 0x40f0a6
cmp dword [eax + 0x314], edi
je 0x40f0a6
nop
cmp eax, edi
je 0x40f0a6
mov eax, dword [eax + 0x310]
test eax, eax
jne 0x40f050
test byte [ecx + 0x4a4c], 4
je 0x40f095
mov eax, dword [ecx + 0x4ad0]
test eax, eax
je 0x40f095
mov eax, dword [eax + 0x314]
cmp dword [edi + 0x314], eax
je 0x40f0a6
cmp dword [eax + 0x314], edi
je 0x40f0a6
cmp eax, edi
je 0x40f0a6
mov eax, dword [eax + 0x310]
test eax, eax
jne 0x40f087
mov dword [edi + 0x278], 0
mov byte [edi + 0xc0], 1
cmp byte [esp + 0x13e], 0
je 0x40f141
cmp dword [edi + 0x314], edi
jne 0x40f141
mov ecx, dword [0x4434a8]
mov dword [esp + 0x30], ecx
mov eax, dword [ecx + 0x5e54]
and dword [ecx + 0x4958], 0xfffffbff
mov dword [ecx + 0x38c8], eax
add ecx, 0x4a88
mov dword [esp + 0x18], ecx
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp edx, eax
jne 0x40f11e
inc edx
mov dword [esp + 0x20], edx
test eax, eax
je 0x40f10a
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40f10f
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.0041bf60
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ecx + 8]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x4958]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x18]
inc dword [eax]
mov eax, dword [esp + 0x30]
inc word [eax + 0x5e58]
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x4004], 0
cmp eax, dword [esp + 0x50]
je 0x410cbb
cmp byte [edi + 0xc0], 0
jne 0x410cc4
mov eax, dword [esp + 0x14]
and eax, 0x3000000
mov byte [edi + 0xba], 1
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x30], eax
mov al, byte [edi + 0xdd]
mov byte [esp + 0x4b], al
setne al
mov byte [edi + 0xc5], al
mov dword [edi + 0x224], 0xff7fffff
mov dword [edi + 0x228], 0xff7fffff
mov dword [edi + 0x22c], 0x7f7fffff
mov dword [edi + 0x230], 0x7f7fffff
mov eax, dword [edi + 0xf8]
cmp eax, 1
jge 0x40f1f8
test eax, eax
je 0x40f1db
cdq
sub eax, edx
lea edx, [edi + 0xf4]
mov ecx, eax
sar ecx, 1
add ecx, dword [edx + 4]
jmp 0x40f1e6
mov ecx, 8
lea edx, [edi + 0xf4]
mov eax, 1
cmp ecx, eax
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.0041bf60
mov dword [edi + 0xf4], 1
mov ecx, dword [edi + 0x278]
call fcn.00424c30
cmp byte [edi + 0x370], 0
mov dword [edi + 0x1a4], 0xffffffff
je 0x40f263
mov ecx, dword [edi + 0x278]
push dword [edi + 0x368]
add ecx, 0xc
mov byte [edi + 0x370], 0
call fcn.0041c350
mov ecx, dword [edi + 0x278]
push dword [edi + 0x36c]
add ecx, 0x18
call fcn.0041c130
mov dword [edi + 0x36c], 0
mov dword [edi + 0x368], 0
cmp dword [esi + 0x4ca4], 0
je 0x40f3a1
test dword [edi + 0xc], 0x20000
jne 0x40f3a1
cmp dword [esp + 0x58], 0
je 0x40f3a1
mov eax, dword [edi + 4]
mov ecx, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40f2b5
test dl, dl
je 0x40f2b1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40f2b5
add eax, 2
add ecx, 2
test dl, dl
jne 0x40f295
xor eax, eax
jmp 0x40f2ba
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f3a1
mov ecx, dword [esp + 0x54]
mov edx, dword [edi + 0x78]
mov dword [esp + 0x18], edx
lea eax, [ecx + 1]
mov dword [esp + 0x20], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f2d4
sub ecx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
cmp edx, eax
jae 0x40f386
mov edx, dword [esp + 0x24]
test edx, edx
je 0x40f367
mov ecx, dword [0x4434a8]
test ecx, ecx
je 0x40f367
mov eax, dword [ecx + 0x3f70]
mov dword [esp + 0x18], eax
movsx eax, word [ecx + 0x6024]
mov esi, dword [esp + 0x18]
add eax, 0xc05
cmp dword [ecx + eax*8], esi
mov esi, dword [esp + 0x34]
lea eax, [ecx + eax*8]
je 0x40f35d
movsx eax, word [ecx + 0x6024]
inc eax
mov dword [esp + 0x20], 6
cdq
idiv dword [esp + 0x20]
movzx eax, dx
mov edx, dword [esp + 0x18]
mov word [ecx + 0x6024], ax
cwde
add eax, 0xc05
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
inc word [eax + 6]
inc dword [ecx + 0x6020]
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esp + 0x30]
add esp, 4
call fcn.00408a00
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
push eax
push dword [esp + 0x58]
push dword [esp + 0x2c]
call sub.VCRUNTIME140.dll_memcpy
mov dword [edi + 4], eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [edi + 0x78], eax
lea eax, [edi + 0x38]
mov ecx, edi
push eax
lea edx, [edi + 0x30]
call fcn.0040c0c0
mov al, byte [edi + 0xdc]
add esp, 4
test al, al
jle 0x40f3c4
dec al
mov byte [edi + 0xdc], al
mov al, byte [edi + 0xdd]
test al, al
jle 0x40f3d6
dec al
mov byte [edi + 0xdd], al
mov al, byte [edi + 0xde]
test al, al
jle 0x40f3e8
dec al
mov byte [edi + 0xde], al
cmp dword [esp + 0x58], 0
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x12]
jne 0x40f406
test al, al
je 0x40f3ff
test cl, cl
jne 0x40f406
mov byte [edi + 0xdd], 1
cmp byte [esp + 0x1f], 0
mov edx, dword [esp + 0x14]
je 0x40f465
test edx, 0x6000000
je 0x40f465
mov byte [edi + 0xdd], 1
test dl, 0x40
je 0x40f465
test al, al
jne 0x40f437
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], 0
test cl, cl
jne 0x40f449
mov dword [edi + 0x2c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [0x4434a8]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 0x4acc]
mov eax, dword [eax]
mov dword [edi + 0x14], eax
mov dword [esp + 0x38], eax
mov dword [ecx + 0x4004], edi
mov eax, dword [edi + 0x1a4]
cmp eax, 0xffffffff
je 0x40f49a
shl eax, 9
add eax, dword [ecx + 0x4d9c]
jmp 0x40f49c
xor eax, eax
mov dword [ecx + 0x4d7c], eax
mov dword [ecx + 0x3d5c], 0x3f800000
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
movss xmm0, dword [eax + 0x3d54]
mov eax, dword [edi + 0x30c]
mulss xmm0, dword [edi + 0x270]
test eax, eax
je 0x40f4d4
mulss xmm0, dword [eax + 0x270]
cmp dword [esp + 0x2c], 0
mov eax, dword [ecx + 0x3d4c]
movss dword [ecx + 0x3d6c], xmm0
movss dword [ecx + 0x3d50], xmm0
divss xmm0, dword [eax + 0x10]
movss dword [ecx + 0x3d58], xmm0
jne 0x40f50b
cmp dword [edi + 0x1a0], 0
jne 0x40f50b
mov al, 1
jmp 0x40f50d
xor al, al
mov byte [edi + 0x160], al
test edx, 0x1000000
je 0x40f525
movss xmm0, dword [esi + 0x38f8]
jmp 0x40f547
test edx, 0x6000000
je 0x40f53f
test edx, 0x8000000
jne 0x40f53f
movss xmm0, dword [esi + 0x3900]
jmp 0x40f547
movss xmm0, dword [esi + 0x38dc]
movss dword [edi + 0x54], xmm0
xorps xmm1, xmm1
mov eax, dword [esi + 0x38d0]
mov ecx, dword [esi + 0x38d4]
mov dword [edi + 0x48], eax
mov eax, edx
and eax, 0x5000000
mov dword [edi + 0x4c], ecx
cmp eax, 0x1000000
jne 0x40f59f
test byte [edi + 0x10], 2
jne 0x40f59f
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x40f59f
test edx, 0x400
je 0x40f590
movss xmm0, dword [esi + 0x38d4]
jmp 0x40f593
xorps xmm0, xmm0
mov dword [edi + 0x48], 0
movss dword [edi + 0x4c], xmm0
movss xmm0, dword [edi + 0x48]
maxss xmm0, dword [esi + 0x3914]
maxss xmm0, dword [esi + 0x4a44]
movss dword [edi + 0x164], xmm0
movss xmm3, dword [esi + 0x4a48]
movss dword [edi + 0x168], xmm3
test dl, 1
je 0x40f5d6
xorps xmm2, xmm2
jmp 0x40f5ea
movss xmm2, dword [esi + 0x3908]
addss xmm2, xmm2
addss xmm2, dword [esi + 0x3d50]
movss dword [edi + 0x58], xmm2
test edx, 0x400
je 0x40f611
movss xmm0, dword [esi + 0x3908]
addss xmm3, dword [esi + 0x3d50]
addss xmm0, xmm0
addss xmm3, xmm0
jmp 0x40f614
xorps xmm3, xmm3
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x40]
movss dword [edi + 0x5c], xmm3
mov byte [esp + 0x24], al
je 0x40f63b
movss xmm0, dword [edi + 0x40]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40f63b
mov byte [esp + 0x40], 1
cmp byte [esp + 0x12], 0
je 0x40f655
movss xmm0, dword [edi + 0x44]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40f655
mov byte [esp + 0x24], 1
test dl, 0x21
jne 0x40f76f
movss xmm0, dword [edi + 0x18]
movaps xmm3, xmm0
movss xmm4, dword [edi + 0x1c]
addss xmm3, dword [edi + 0x28]
addss xmm2, dword [edi + 0x1c]
mov edx, dword [esp + 0x18]
cmp dword [esi + 0x4008], edi
jne 0x40f723
cmp dword [esi + 0x4044], 0
jne 0x40f723
cmp dword [esi + 0x4048], 0
jne 0x40f723
mov eax, dword [edx + 0x4004]
movss xmm5, dword [edx + 0x392c]
movss xmm7, dword [edx + 0xac]
maxss xmm0, dword [eax + 0x224]
maxss xmm4, dword [eax + 0x228]
minss xmm3, dword [eax + 0x22c]
minss xmm2, dword [eax + 0x230]
subss xmm0, xmm5
comiss xmm7, xmm0
jb 0x40f723
movss xmm0, dword [edx + 0x3930]
movss xmm6, dword [edx + 0xb0]
subss xmm4, xmm0
comiss xmm6, xmm4
jb 0x40f723
addss xmm5, xmm3
comiss xmm5, xmm7
jbe 0x40f723
addss xmm0, xmm2
comiss xmm0, xmm6
jbe 0x40f723
cmp word [esi + 0x2ada], 2
jne 0x40f723
cmp dword [edx + 0x4778], 0xffffffff
jne 0x40f723
mov byte [edi + 0xbe], 1
cmp byte [edi + 0xbe], 0
je 0x40f776
mov cl, byte [edi + 0xbd]
test cl, cl
sete al
test cl, cl
mov byte [edi + 0xbd], al
mov ecx, 1
mov eax, dword [esp + 0x24]
movzx eax, al
cmovne eax, ecx
test dword [edi + 0xc], 0x100
mov dword [esp + 0x24], eax
jne 0x40f776
comiss xmm1, dword [edx + 0x5efc]
jb 0x40f776
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x5efc], eax
jmp 0x40f776
mov byte [edi + 0xbd], 0
movss xmm0, dword [edi + 0xb0]
lea eax, [edi + 0x38]
movss dword [esp + 0x2c], xmm0
lea ecx, [esp + 0x144]
movss xmm0, dword [edi + 0xb4]
mov edx, edi
movss dword [esp + 0x28], xmm0
movss xmm0, dword [edi + 0x5c]
addss xmm0, dword [edi + 0x58]
push eax
mov byte [edi + 0xbe], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x68], 0
movss dword [edi + 0x64], xmm0
mov dword [edi + 0x6c], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
call fcn.0040c1f0
add esp, 4
test byte [esp + 0x14], 0x40
je 0x40f833
cmp byte [edi + 0xbd], 0
jne 0x40f833
cmp byte [esp + 0x13], 0
jne 0x40f810
movss xmm0, dword [esp + 0x144]
movss dword [edi + 0x28], xmm0
mov byte [esp + 0x40], 1
cmp byte [esp + 0x12], 0
jne 0x40f8ea
movss xmm0, dword [esp + 0x148]
movss dword [edi + 0x2c], xmm0
mov byte [esp + 0x24], 1
jmp 0x40f8ea
mov al, byte [edi + 0xd2]
test al, al
jg 0x40f84a
cmp byte [edi + 0xd3], 0
jle 0x40f8ea
cmp byte [esp + 0x13], 0
jne 0x40f881
test al, al
jle 0x40f881
cmp byte [edi + 0xd4], 0
je 0x40f86e
movss xmm0, dword [edi + 0x28]
maxss xmm0, dword [esp + 0x144]
jmp 0x40f877
movss xmm0, dword [esp + 0x144]
movss dword [edi + 0x28], xmm0
mov byte [esp + 0x40], 1
cmp byte [esp + 0x12], 0
jne 0x40f8bd
cmp byte [edi + 0xd3], 0
jle 0x40f8bd
cmp byte [edi + 0xd4], 0
je 0x40f8aa
movss xmm0, dword [edi + 0x2c]
maxss xmm0, dword [esp + 0x148]
jmp 0x40f8b3
movss xmm0, dword [esp + 0x148]
movss dword [edi + 0x2c], xmm0
mov byte [esp + 0x24], 1
cmp byte [edi + 0xbd], 0
jne 0x40f8ea
test dword [edi + 0xc], 0x100
mov ecx, dword [0x4434a8]
jne 0x40f8ea
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x5efc]
jb 0x40f8ea
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x5efc], eax
lea esi, [edi + 0x28]
mov edx, edi
push esi
lea ecx, [esp + 0xb4]
call fcn.0040bf10
add esp, 4
cmp byte [edi + 0xbd], 0
movss xmm3, dword [eax]
movss xmm1, dword [eax + 4]
mov eax, dword [esp + 0x14]
movss dword [esi], xmm3
movss dword [esi + 4], xmm1
je 0x40f944
test eax, 0x1000000
jne 0x40f944
movss xmm2, dword [edi + 0x18]
movss xmm1, dword [edi + 0x58]
addss xmm2, xmm3
addss xmm1, dword [edi + 0x1c]
subss xmm2, dword [edi + 0x18]
subss xmm1, dword [edi + 0x1c]
jmp 0x40f947
movaps xmm2, xmm3
cmp byte [esp + 0x1f], 0
movss dword [edi + 0x20], xmm2
movss dword [edi + 0x24], xmm1
je 0x40f99e
and eax, 0xc000000
mov dword [edi + 0xd8], 0xffffffff
cmp eax, 0x4000000
jne 0x40f99e
cmp byte [esp + 0x11], 0
jne 0x40f99e
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x4aac]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x4ab4]
movss xmm0, dword [eax + ecx*8 - 0x10]
movss xmm1, dword [eax + ecx*8 - 0xc]
movss dword [edi + 0x18], xmm0
movss dword [edi + 0x1c], xmm1
mov edx, dword [esp + 0x14]
test edx, 0x1000000
je 0x40fa3f
mov esi, dword [esp + 0x44]
mov ax, word [esi + 0x190]
lea ecx, [esi + 0x190]
mov word [edi + 0xcc], ax
mov eax, dword [ecx + 4]
cmp dword [ecx], eax
jne 0x40fa00
mov edx, dword [ecx]
inc edx
mov dword [esp + 0x20], edx
test eax, eax
je 0x40f9e6
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x40f9eb
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.0041bf60
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x190]
mov ecx, dword [ecx]
mov eax, dword [esi + 0x198]
mov dword [eax + ecx*4], edi
inc dword [esi + 0x190]
mov al, byte [esp + 0x11]
mov ecx, dword [esp + 0x30]
test edx, 0x4000000
jne 0x40fa47
test al, al
jne 0x40fa47
cmp ecx, 0x3000000
je 0x40fa47
mov eax, dword [esi + 0x100]
mov ecx, dword [esi + 0x104]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov ecx, dword [esp + 0x30]
mov al, byte [esp + 0x11]
movss xmm1, dword [edi + 0xe4]
ucomiss xmm1, dword [0x440d68]
lahf
test ah, 0x44
jnp 0x40fab6
cmp byte [edi + 0xdd], 0
jne 0x40fab6
movss xmm0, dword [edi + 0xec]
lea edx, [esp + 0x98]
mulss xmm0, dword [edi + 0x20]
mov ecx, edi
push 0
subss xmm1, xmm0
movss xmm0, dword [edi + 0xe8]
movss dword [esp + 0x9c], xmm1
movss xmm1, dword [edi + 0x24]
mulss xmm1, dword [edi + 0xf0]
subss xmm0, xmm1
movss dword [esp + 0xa0], xmm0
call fcn.00411930
add esp, 4
jmp 0x40fb17
test edx, 0x10000000
je 0x40fac7
lea ecx, [esp + 0xb8]
jmp 0x40fafd
test edx, 0x4000000
je 0x40fae2
test al, al
jne 0x40fae2
cmp byte [esp + 0x4b], al
jle 0x40fae2
lea ecx, [esp + 0xc0]
jmp 0x40fafd
test edx, 0x2000000
je 0x40fb1b
test al, al
jne 0x40fb1b
cmp ecx, 0x3000000
je 0x40fb1b
lea ecx, [esp + 0xc8]
mov edx, edi
call fcn.00415690
movss xmm1, dword [eax + 4]
movss xmm0, dword [eax]
movss dword [edi + 0x18], xmm0
movss dword [edi + 0x1c], xmm1
mov edx, dword [esp + 0x14]
cmp byte [esp + 0x11], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
movss xmm7, dword [eax + 0x18]
movss xmm6, dword [eax + 0x1c]
addss xmm7, dword [eax + 0x20]
addss xmm6, dword [eax + 0x24]
movss xmm0, dword [eax + 8]
movss xmm1, dword [eax + 0xc]
movaps xmm5, xmm0
movss xmm3, dword [ecx + 0x399c]
movaps xmm4, xmm1
movss xmm2, dword [ecx + 0x3998]
maxss xmm3, dword [ecx + 0x39a4]
maxss xmm2, dword [ecx + 0x39a0]
addss xmm5, dword [eax + 0x10]
addss xmm4, dword [eax + 0x14]
movss dword [esp + 0x150], xmm0
subss xmm6, xmm3
movss dword [esp + 0x154], xmm1
addss xmm3, dword [eax + 0x1c]
subss xmm7, xmm2
movss dword [esp + 0x158], xmm5
addss xmm2, dword [eax + 0x18]
movss dword [esp + 0x15c], xmm4
movss dword [esp + 0x16c], xmm6
movss dword [esp + 0x164], xmm3
movss dword [esp + 0x168], xmm7
movss dword [esp + 0x160], xmm2
jne 0x40fc3f
test edx, 0x1000000
jne 0x40fc3f
subss xmm5, xmm0
xorps xmm0, xmm0
comiss xmm5, xmm0
jbe 0x40fc3f
subss xmm4, xmm1
comiss xmm4, xmm0
jbe 0x40fc3f
mov eax, dword [0x4434a8]
movss xmm0, dword [edi + 0x24]
cmp byte [eax + 0x4c], 0
je 0x40fc0a
test byte [edi + 0xc], 1
jne 0x40fc0a
movss xmm0, dword [edi + 0x58]
subss xmm2, dword [edi + 0x20]
subss xmm3, xmm0
movss xmm0, dword [edi + 0x1c]
comiss xmm3, xmm0
ja 0x40fc24
movaps xmm3, xmm6
minss xmm3, xmm0
movss xmm0, dword [edi + 0x18]
comiss xmm2, xmm0
ja 0x40fc35
movaps xmm2, xmm7
minss xmm2, xmm0
movss dword [edi + 0x18], xmm2
movss dword [edi + 0x1c], xmm3
cvttss2si eax, dword [edi + 0x18]
movd xmm1, eax
cvttss2si eax, dword [edi + 0x1c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [edi + 0x18], xmm1
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x1c], xmm0
test edx, 0x1000000
je 0x40fc73
movss xmm2, dword [ecx + 0x38f4]
jmp 0x40fc93
mov eax, edx
and eax, 0xc000000
cmp eax, 0x4000000
jne 0x40fc8b
movss xmm2, dword [ecx + 0x38fc]
jmp 0x40fc93
movss xmm2, dword [ecx + 0x38d8]
xor al, al
movss dword [edi + 0x50], xmm2
mov dword [esp + 0x18], eax
cmp byte [esp + 0x1f], al
je 0x40fcd0
test edx, 0x1000
jne 0x40fcd0
test edx, 0x4000000
je 0x40fcbb
mov byte [esp + 0x18], 1
jmp 0x40fcd0
test edx, 0x3000000
movzx eax, al
mov esi, 1
cmove eax, esi
mov dword [esp + 0x18], eax
mov eax, edx
mov dword [esp + 0x14c], 0xffffffff
and eax, 0x5000000
mov dword [esp + 0x140], 0xffffffff
xorps xmm0, xmm0
movaps xmmword [esp + 0x170], xmm0
cmp eax, 0x1000000
jne 0x40fd03
xor eax, eax
jmp 0x40fd0c
xor eax, eax
cmp byte [ecx + 0x4b], al
setne al
inc eax
cmp byte [edi + 0xbd], 0
movss xmm1, dword [ecx + 0x3d50]
addss xmm2, dword [0x440ccc]
movaps xmm0, xmm1
mov dword [esp + 0x20], eax
mulss xmm1, dword [0x440c74]
mulss xmm0, dword [0x440cd0]
addss xmm2, xmm1
maxss xmm0, xmm2
cvttss2si esi, xmm0
jne 0x40fdab
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esp + 0x174]
push ecx
push eax
lea eax, [esp + 0x14c]
mov ecx, edi
push eax
lea eax, [esp + 0x15c]
push eax
lea edx, [esp + 0x158]
call fcn.0040c450
add esp, 0x14
test eax, eax
je 0x40fda3
mov ecx, dword [esp + 0x40]
test al, 1
mov edx, 1
movzx ecx, cl
cmovne ecx, edx
test al, 2
mov eax, dword [esp + 0x24]
movzx eax, al
cmovne eax, edx
mov dword [esp + 0x40], ecx
mov byte [esp + 0x24], al
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
cmp byte [edi + 0xbd], 0
mov al, byte [esp + 0x14c]
mov byte [edi + 0xc6], al
mov al, byte [esp + 0x140]
mov byte [edi + 0xc7], al
jne 0x40ff1f
cmp dword [esp + 0x58], 0
movss xmm0, dword [edi + 0x6c]
addss xmm0, dword [edi + 0x64]
movss xmm4, dword [edi + 0x1ec]
movss xmm5, dword [edi + 0x1f0]
subss xmm4, dword [edi + 0x1e4]
subss xmm5, dword [edi + 0x1e8]
movss xmm2, dword [edi + 0x2c]
movss xmm6, dword [edi + 0x28]
subss xmm2, xmm0
xorps xmm0, xmm0
addss xmm4, dword [esp + 0x2c]
addss xmm5, dword [esp + 0x28]
jne 0x40fe28
xorps xmm3, xmm3
xorps xmm1, xmm1
jmp 0x40fe44
movss xmm3, dword [edi + 0x48]
movss xmm1, dword [edi + 0x4c]
addss xmm3, xmm3
addss xmm1, xmm1
addss xmm3, dword [edi + 0x30]
addss xmm1, dword [edi + 0x34]
cmp byte [esp + 0x40], 0
jne 0x40fe4e
movaps xmm6, xmm4
mov eax, dword [esp + 0x24]
test al, al
jne 0x40fe59
movaps xmm2, xmm5
test edx, 0x4000
jne 0x40fe6f
comiss xmm1, xmm2
jbe 0x40fe6b
test dl, 8
je 0x40fe6f
xor al, al
jmp 0x40fe71
mov al, 1
mov byte [esp + 0x11], al
mov byte [edi + 0xb9], al
test edx, 0x8000
jne 0x40febb
test al, al
je 0x40fe91
movss xmm4, dword [ecx + 0x393c]
jmp 0x40fe94
xorps xmm4, xmm4
subss xmm6, xmm4
comiss xmm3, xmm6
jbe 0x40feaf
mov eax, edx
and eax, 0x808
cmp eax, 0x800
mov al, byte [esp + 0x11]
je 0x40febb
mov byte [edi + 0xb8], 0
xorps xmm1, xmm1
jmp 0x40feec
mov byte [edi + 0xb8], 1
test al, al
jne 0x40fee4
subss xmm2, dword [ecx + 0x393c]
comiss xmm1, xmm2
jbe 0x40fedc
test dl, 8
jne 0x40fedc
mov al, 1
jmp 0x40fede
xor al, al
mov byte [edi + 0xb9], al
movss xmm1, dword [ecx + 0x393c]
test al, al
je 0x40fef8
movss xmm0, dword [ecx + 0x393c]
movss dword [edi + 0xb0], xmm0
addss xmm0, dword [edi + 0x68]
movss dword [edi + 0xb4], xmm1
movss dword [edi + 0x68], xmm0
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x6c]
movss dword [edi + 0x6c], xmm0
mov eax, edx
and eax, 0x5000000
cmp eax, 0x1000000
jne 0x40ff42
cmp dword [esp + 0x30], 0x3000000
je 0x40ff42
mov eax, dword [esp + 0x44]
add eax, 0x224
jmp 0x40ff49
lea eax, [esp + 0x150]
movups xmm0, xmmword [eax]
mov eax, edx
movss xmm6, dword [edi + 0x1c]
and eax, 0x401
movss xmm5, dword [edi + 0x18]
movaps xmm1, xmm6
movss xmm3, dword [edi + 0x20]
movaps xmm2, xmm5
movss xmm4, dword [edi + 0x24]
addss xmm3, xmm5
movss dword [esp + 0x60], xmm5
addss xmm4, xmm6
addss xmm1, dword [edi + 0x58]
addss xmm2, dword [edi + 0x28]
movups xmmword [esp + 0x70], xmm0
movaps xmm0, xmm6
movss dword [esp + 0x64], xmm0
movss dword [esp + 0x6c], xmm1
movss dword [esp + 0x68], xmm2
movss dword [edi + 0x1d4], xmm5
movss dword [edi + 0x1d8], xmm6
movss dword [edi + 0x1dc], xmm3
movss dword [edi + 0x1e0], xmm4
movss xmm0, dword [edi + 0x1d4]
movss xmm4, dword [esp + 0x70]
movss xmm5, dword [esp + 0x74]
maxss xmm0, xmm4
maxss xmm6, xmm5
movss dword [edi + 0x1d4], xmm0
movss dword [edi + 0x1d8], xmm6
movss xmm0, dword [edi + 0x1e0]
movss xmm1, dword [edi + 0x1dc]
minss xmm0, dword [esp + 0x7c]
minss xmm1, dword [esp + 0x78]
movss dword [edi + 0x1e0], xmm0
movss dword [edi + 0x1dc], xmm1
movss xmm6, dword [edi + 0x18]
movss xmm7, dword [edi + 0x1c]
movaps xmm3, xmm6
movaps xmm0, xmm7
addss xmm6, dword [edi + 0x20]
addss xmm7, dword [edi + 0x24]
addss xmm0, dword [edi + 0x64]
addss xmm3, dword [edi + 0x60]
subss xmm6, dword [edi + 0x68]
subss xmm7, dword [edi + 0x6c]
movss dword [esp + 0x38], xmm0
movss dword [edi + 0x1e4], xmm3
movss dword [edi + 0x1e8], xmm0
movss dword [edi + 0x1ec], xmm6
movss dword [edi + 0x1f0], xmm7
cmp eax, 1
jne 0x410077
movss xmm1, dword [edi + 0x54]
jmp 0x41007f
movss xmm1, dword [ecx + 0x3910]
movss xmm0, dword [edi + 0x54]
xorps xmm2, xmm2
mulss xmm0, dword [0x440c94]
addss xmm3, dword [0x440c94]
movss dword [esp + 0x2c], xmm0
addss xmm3, xmm0
comiss xmm3, xmm2
cvttss2si eax, xmm3
mov dword [esp + 0x28], eax
jae 0x4100c9
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jnp 0x4100c5
cvttss2si eax, xmm3
dec eax
jmp 0x4100c9
mov eax, dword [esp + 0x28]
movss xmm3, dword [esp + 0x38]
addss xmm3, dword [0x440c94]
mulss xmm1, dword [0x440c94]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm1, xmm3
movss dword [edi + 0x1f4], xmm0
comiss xmm1, xmm2
cvttss2si eax, xmm1
mov dword [esp + 0x28], eax
jae 0x41011a
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x410116
cvttss2si eax, xmm1
dec eax
jmp 0x41011a
mov eax, dword [esp + 0x28]
movss xmm1, dword [esp + 0x2c]
subss xmm6, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm6, xmm2
cvttss2si eax, xmm6
movss dword [edi + 0x1f8], xmm0
mov dword [esp + 0x28], eax
jae 0x41015b
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm6
lahf
test ah, 0x44
jnp 0x410157
cvttss2si eax, xmm6
dec eax
jmp 0x41015b
mov eax, dword [esp + 0x28]
subss xmm7, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm7, xmm2
cvttss2si eax, xmm7
movss dword [edi + 0x1fc], xmm0
mov dword [esp + 0x28], eax
jae 0x410196
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm7
lahf
test ah, 0x44
jnp 0x410192
cvttss2si eax, xmm7
dec eax
jmp 0x410196
mov eax, dword [esp + 0x28]
movss xmm6, dword [esp + 0x7c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x200], xmm0
movss xmm0, dword [edi + 0x1f8]
comiss xmm5, xmm0
jbe 0x4101bd
movaps xmm1, xmm5
jmp 0x4101c4
movaps xmm1, xmm6
minss xmm1, xmm0
movss xmm3, dword [edi + 0x1f4]
comiss xmm4, xmm3
movss xmm7, dword [esp + 0x78]
jbe 0x4101dc
movaps xmm0, xmm4
jmp 0x4101e3
movaps xmm0, xmm7
minss xmm0, xmm3
movss dword [edi + 0x1f4], xmm0
movss dword [edi + 0x1f8], xmm1
movss xmm0, dword [edi + 0x200]
comiss xmm5, xmm0
ja 0x410207
movaps xmm5, xmm6
minss xmm5, xmm0
movss xmm0, dword [edi + 0x1fc]
comiss xmm4, xmm0
ja 0x41021b
movaps xmm4, xmm7
minss xmm4, xmm0
movss dword [edi + 0x1fc], xmm4
movss dword [edi + 0x200], xmm5
movss xmm0, dword [edi + 0x20]
comiss xmm0, xmm2
jbe 0x410247
test edx, 0x2000040
jne 0x410247
mulss xmm0, dword [0x440c9c]
jmp 0x410257
movss xmm0, dword [ecx + 0x3d50]
mulss xmm0, dword [0x440d24]
cvttss2si eax, xmm0
mov edx, edi
lea ecx, [esp + 0xd0]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x254], xmm0
movss xmm1, dword [edi + 0x48]
movss xmm0, dword [edi + 0x1ec]
addss xmm1, xmm1
subss xmm0, dword [edi + 0x1e4]
addss xmm1, dword [edi + 0x30]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [edi + 0x90], xmm0
movss xmm1, dword [edi + 0x4c]
movss xmm0, dword [edi + 0x1f0]
addss xmm1, xmm1
subss xmm0, dword [edi + 0x1e8]
addss xmm1, dword [edi + 0x34]
subss xmm1, xmm0
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [edi + 0x94], xmm0
call fcn.00414ae0
mov edx, dword [esp + 0x34]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [edi + 0x88], xmm0
movss dword [edi + 0x8c], xmm1
mov dword [edi + 0x98], 0x7f7fffff
mov dword [edi + 0x9c], 0x7f7fffff
mov dword [edi + 0x74], 0
mov dword [edi + 0x70], 0
mov eax, dword [edx + 0x3d4c]
mov ecx, dword [edi + 0x278]
mov dword [esp + 0x24], ecx
add ecx, 0x7c
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x30]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
cmp edx, eax
jne 0x41036e
inc edx
mov dword [esp + 0x28], edx
test eax, eax
je 0x41035a
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x41035f
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.0041bf60
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x2c]
mov dword [eax + edx*4], edi
mov eax, edi
inc dword [ecx]
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x54], eax
call fcn.00425070
mov ecx, dword [0x4434a8]
movss xmm0, dword [esp + 0x70]
movss xmm1, dword [esp + 0x74]
mov edi, dword [esp + 0x3c]
mov eax, dword [ecx + 0x4004]
movss dword [esp + 0x150], xmm0
maxss xmm0, dword [esp + 0x78]
movss dword [esp + 0x154], xmm1
maxss xmm1, dword [esp + 0x7c]
mov byte [eax + 0xbc], 1
mov eax, dword [ecx + 0x4004]
mov dword [esp + 0x24], eax
movss dword [esp + 0x158], xmm0
movss dword [esp + 0x15c], xmm1
mov edx, dword [eax + 0x278]
mov eax, dword [edx + 0x74]
lea ecx, [edx + 0x70]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], ecx
cmp dword [ecx], eax
jne 0x410430
mov edx, dword [ecx]
inc edx
mov dword [esp + 0x28], edx
test eax, eax
je 0x410418
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x41041d
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.0041c9a0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx]
movaps xmm0, xmmword [esp + 0x150]
shl eax, 4
add eax, dword [ecx + 8]
movups xmmword [eax], xmm0
inc dword [ecx]
mov ecx, edx
movups xmmword [edx + 0x44], xmm0
call fcn.00424fd0
mov edx, dword [esp + 0x24]
mov byte [esp + 0x12], 0
mov eax, dword [edx + 0x278]
mov ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x78]
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 [edx + 0x224], eax
mov eax, dword [esp + 0x14]
movss dword [edx + 0x228], xmm0
and eax, 0x5000000
movss dword [edx + 0x22c], xmm1
movss dword [edx + 0x230], xmm2
cmp eax, 0x1000000
jne 0x410561
cmp dword [esp + 0x30], 0x3000000
je 0x410561
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x190]
cmp ecx, 2
jl 0x410525
mov eax, dword [eax + 0x198]
mov eax, dword [eax + ecx*4 - 8]
test eax, eax
je 0x410525
movss xmm5, dword [eax + 0x1c]
movss xmm7, dword [eax + 0x18]
movaps xmm0, xmm5
addss xmm0, dword [eax + 0x24]
movss xmm6, dword [edi + 0x18]
movaps xmm3, xmm7
movss xmm2, dword [edi + 0x1c]
movaps xmm4, xmm6
addss xmm3, dword [eax + 0x20]
addss xmm4, dword [edi + 0x20]
comiss xmm0, dword [edi + 0x1c]
addss xmm2, dword [edi + 0x24]
jbe 0x410525
comiss xmm2, xmm5
jbe 0x410525
comiss xmm3, xmm6
jbe 0x410525
comiss xmm4, xmm7
mov byte [esp + 0x11], 1
ja 0x41052a
mov byte [esp + 0x11], 0
mov edx, dword [edi + 0x278]
mov eax, dword [edx]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
cmp dword [eax + ecx*8 - 0xc], 0
jne 0x410561
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x278]
cmp dword [eax + 0x18], 0
je 0x410561
cmp byte [esp + 0x11], 0
jne 0x410561
mov byte [esp + 0x12], 1
mov dword [edi + 0x278], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x4c9c]
test ecx, ecx
jne 0x410575
mov ecx, dword [eax + 0x4ad0]
cmp byte [esp + 0x18], 0
jne 0x410595
test ecx, ecx
je 0x41058e
mov eax, dword [edi + 0x31c]
cmp eax, dword [ecx + 0x31c]
je 0x410595
mov byte [esp + 0x2c], 0
jmp 0x41059a
mov byte [esp + 0x2c], 1
movd xmm0, esi
lea eax, [esp + 0x170]
push ecx
cvtdq2ps xmm0, xmm0
lea edx, [esp + 0x64]
movss dword [esp], xmm0
push eax
push dword [esp + 0x28]
push ecx
push dword [esp + 0x3c]
mov ecx, edi
call fcn.0040daa0
add esp, 0x14
cmp byte [esp + 0x12], 0
je 0x4105d9
lea eax, [edi + 0x27c]
mov dword [edi + 0x278], eax
mov ecx, dword [esp + 0x14]
xorps xmm4, xmm4
movss xmm5, dword [edi + 0x40]
mov edx, ecx
shr edx, 3
not dl
and dl, 1
ucomiss xmm5, xmm4
lahf
test ah, 0x44
jnp 0x410600
movss dword [esp + 0x20], xmm5
jmp 0x410642
movss xmm0, dword [edi + 0x48]
mov eax, ecx
movss xmm1, dword [edi + 0x20]
addss xmm0, xmm0
and eax, 0x808
subss xmm1, xmm0
movss xmm0, dword [edi + 0x68]
addss xmm0, dword [edi + 0x60]
subss xmm1, xmm0
cmp eax, 0x800
jne 0x410635
movss xmm0, dword [edi + 0x30]
jmp 0x410638
xorps xmm0, xmm0
maxss xmm0, xmm1
movss dword [esp + 0x20], xmm0
movss xmm6, dword [edi + 0x44]
ucomiss xmm6, xmm4
lahf
test ah, 0x44
jnp 0x410655
movaps xmm7, xmm6
jmp 0x410687
movss xmm0, dword [edi + 0x4c]
movss xmm1, dword [edi + 0x24]
addss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [edi + 0x6c]
addss xmm0, dword [edi + 0x64]
subss xmm1, xmm0
test dl, dl
je 0x410680
movss xmm7, dword [edi + 0x34]
jmp 0x410683
xorps xmm7, xmm7
maxss xmm7, xmm1
movss xmm1, dword [edi + 0x48]
movss xmm2, dword [edi + 0x88]
movss xmm0, dword [edi + 0x1e4]
subss xmm0, xmm2
movss dword [esp + 0x28], xmm1
maxss xmm1, dword [edi + 0x54]
movss dword [esp + 0x30], xmm2
ucomiss xmm5, xmm4
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movss dword [edi + 0x204], xmm2
movss xmm0, dword [edi + 0x8c]
movss xmm1, dword [edi + 0x4c]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [edi + 0x1e8]
subss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x38], xmm1
maxss xmm1, dword [edi + 0x54]
addss xmm2, dword [esp + 0x20]
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
lahf
movss dword [edi + 0x208], xmm0
addss xmm7, xmm0
movss dword [edi + 0x20c], xmm2
movss xmm2, dword [esp + 0x28]
movss dword [edi + 0x210], xmm7
movss xmm7, dword [esp + 0x38]
movups xmm0, xmmword [edi + 0x204]
movups xmmword [edi + 0x214], xmm0
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [edi + 0x60]
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x2c], xmm0
subss xmm1, dword [esp + 0x30]
addss xmm1, xmm2
addss xmm1, xmm0
movss dword [edi + 0x234], xmm1
movss xmm3, dword [edi + 0x1c]
movss xmm0, dword [edi + 0x64]
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x20], xmm0
subss xmm3, dword [esp + 0x3c]
addss xmm3, xmm7
addss xmm3, xmm0
movss dword [edi + 0x238], xmm3
test ah, 0x44
jp 0x4107bf
movss xmm5, dword [edi + 0x20]
movaps xmm0, xmm2
addss xmm0, xmm2
subss xmm5, xmm0
movss xmm0, dword [esp + 0x2c]
addss xmm0, dword [edi + 0x68]
subss xmm5, xmm0
ucomiss xmm6, xmm4
addss xmm5, xmm1
lahf
movss dword [edi + 0x23c], xmm5
movss xmm5, dword [esp + 0x20]
test ah, 0x44
jp 0x4107f6
movss xmm6, dword [edi + 0x24]
movaps xmm0, xmm7
addss xmm0, xmm7
subss xmm6, xmm0
movaps xmm0, xmm5
addss xmm0, dword [edi + 0x6c]
subss xmm6, xmm0
movss xmm1, dword [esp + 0x2c]
addss xmm3, xmm6
movss xmm6, dword [esp + 0x30]
lea ecx, [edi + 0x16c]
movaps xmm0, xmm1
mov esi, dword [esp + 0x34]
addss xmm0, xmm2
movss dword [edi + 0x240], xmm3
movss xmm3, dword [esp + 0x24]
cvtps2pd xmm3, xmm3
subss xmm0, xmm6
movss dword [edi + 0x144], xmm0
cvtps2pd xmm0, xmm2
mov dword [edi + 0x14c], 0
mov dword [edi + 0x148], 0
movss xmm2, dword [esp + 0x28]
addsd xmm3, xmm0
cvtps2pd xmm0, xmm6
cvtps2pd xmm2, xmm2
subsd xmm3, xmm0
cvtps2pd xmm0, xmm1
addsd xmm3, xmm0
cvtps2pd xmm0, xmm7
addsd xmm3, qword [0x440c48]
addsd xmm2, xmm0
movss xmm0, dword [esp + 0x3c]
cvtps2pd xmm0, xmm0
subsd xmm2, xmm0
cvtps2pd xmm0, xmm5
addsd xmm2, xmm0
cvtpd2ps xmm0, xmm3
cvtpd2ps xmm1, xmm2
movss dword [edi + 0x110], xmm0
movss dword [edi + 0x114], xmm1
movss xmm0, dword [edi + 0x110]
cvtps2pd xmm0, xmm0
subsd xmm3, xmm0
movss xmm0, dword [edi + 0x114]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm1, xmm3
subsd xmm2, xmm0
movss dword [edi + 0x150], xmm1
cvtpd2ps xmm0, xmm2
movss dword [edi + 0x154], xmm0
movss xmm1, dword [edi + 0x110]
movss xmm0, dword [edi + 0x114]
movss dword [edi + 0x100], xmm1
movss dword [edi + 0x104], xmm0
movss dword [edi + 0x108], xmm1
movss dword [edi + 0x10c], xmm0
movss dword [edi + 0x118], xmm1
movss dword [edi + 0x11c], xmm0
movss dword [edi + 0x120], xmm1
movss dword [edi + 0x124], xmm0
mov dword [edi + 0x130], 0
mov dword [edi + 0x134], 0
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov dword [edi + 0x13c], 0
mov dword [edi + 0x138], 0
mov word [edi + 0x140], 0
mov dword [edi + 0x158], 0
mov ax, word [edi + 0x15e]
mov word [edi + 0x15c], ax
mov dword [edi + 0x15e], 0x10000
movss xmm0, dword [edi + 0x94]
comiss xmm0, xmm4
seta al
cmp byte [esp + 0x1f], 0
mov byte [edi + 0x162], al
lea eax, [ecx + 0x12]
mov byte [edi + 0x163], 0
movss xmm1, dword [esi + 0x3914]
mov dword [esp + 0x20], eax
je 0x4109c8
xorps xmm0, xmm0
movq qword [eax], xmm0
jmp 0x4109cc
mov dword [esp + 0x20], eax
cvttss2si eax, xmm1
push ecx
mov word [ecx + 8], ax
call fcn.004383f0
mov eax, dword [esp + 0x20]
xorps xmm0, xmm0
movq qword [eax], xmm0
mov eax, dword [edi + 0x170]
mov dword [edi + 0x16c], eax
lea eax, [edi + 0x190]
mov dword [edi + 0x170], 0
mov dword [edi + 0x188], 0
mov dword [edi + 0x18c], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x410a3e
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 + 0x190]
call fcn.0041bf60
lea eax, [edi + 0x190]
mov dword [eax], 0
lea eax, [edi + 0x258]
mov dword [edi + 0x19c], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 0x1a0], 0
mov dword [edi + 0x1a8], 1
test eax, eax
je 0x410a74
mov eax, dword [eax + 0x1a8]
jmp 0x410a79
mov eax, 1
mov dword [edi + 0x1ac], eax
mov eax, dword [edi + 0x254]
mov dword [edi + 0x1b4], eax
lea eax, [edi + 0x1bc]
mov dword [edi + 0x1b8], 0xbf800000
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x410ac4
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 + 0x1bc]
call fcn.0041bf60
lea eax, [edi + 0x1bc]
mov dword [eax], 0
lea eax, [edi + 0x1c8]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x410af9
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 + 0x1c8]
call fcn.0041bf60
lea eax, [edi + 0x1c8]
test dword [esp + 0x14], 0x8000000
mov dword [eax], 0
je 0x410bd4
mov edx, dword [0x4434a8]
xorps xmm0, xmm0
movss xmm5, dword [0x440ccc]
movss xmm2, dword [edx + 0x3d28]
comiss xmm0, xmm2
jbe 0x410b30
xorps xmm1, xmm1
jmp 0x410b37
movaps xmm1, xmm5
minss xmm1, xmm2
movss xmm2, dword [0x440d48]
movss xmm3, dword [0x440c94]
movss xmm4, dword [edx + 0x3d2c]
comiss xmm0, xmm4
mulss xmm1, xmm2
addss xmm1, xmm3
cvttss2si ecx, xmm1
jbe 0x410b65
xorps xmm1, xmm1
jmp 0x410b6c
movaps xmm1, xmm5
minss xmm1, xmm4
movss xmm4, dword [edx + 0x3d30]
mulss xmm1, xmm2
addss xmm1, xmm3
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm4
jbe 0x410b8f
xorps xmm1, xmm1
jmp 0x410b96
movaps xmm1, xmm5
minss xmm1, xmm4
mulss xmm1, xmm2
addss xmm1, xmm3
cvttss2si eax, xmm1
movss xmm1, dword [edx + 0x3d34]
shl eax, 0x10
or ecx, eax
comiss xmm0, xmm1
jbe 0x410bb9
xorps xmm5, xmm5
jmp 0x410bbd
minss xmm5, xmm1
mulss xmm5, xmm2
addss xmm5, xmm3
cvttss2si eax, xmm5
shl eax, 0x18
or eax, ecx
mov dword [edi + 0x1b0], eax
mov al, byte [edi + 0xd2]
test al, al
jle 0x410be6
dec al
mov byte [edi + 0xd2], al
mov al, byte [edi + 0xd3]
test al, al
jle 0x410bf8
dec al
mov byte [edi + 0xd3], al
cmp byte [esp + 0x18], 0
je 0x410c1c
mov edx, 2
mov ecx, edi
call fcn.004114d0
cmp edi, dword [esi + 0x4ad0]
jne 0x410c1c
xor dl, dl
mov ecx, edi
call fcn.00416800
test byte [esp + 0x14], 1
jne 0x410c82
movss xmm0, dword [edi + 0x54]
lea edx, [esp + 0xa0]
addss xmm0, dword [esp + 0x60]
push dword [esp + 0x5c]
mov ecx, edi
push dword [esp + 0x58]
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [esp + 0xac], xmm0
movss xmm0, dword [esp + 0x70]
subss xmm0, dword [edi + 0x54]
movss dword [esp + 0xb0], xmm0
movss xmm0, dword [esp + 0x74]
movss dword [esp + 0xb4], xmm0
call fcn.0040e080
add esp, 8
xor eax, eax
lea edx, [esp + 0x60]
mov ecx, edi
mov dword [edi + 0x244], eax
call fcn.00411180
mov eax, dword [esi + 0x495c]
test eax, eax
je 0x410dec
cmp dword [edi + 8], eax
je 0x410cb1
cmp dword [edi + 0x7c], eax
jne 0x410dec
call fcn.0041b000
jmp 0x410dec
cmp byte [edi + 0xc0], 0
je 0x410d0b
mov byte [edi + 0xba], 1
mov edx, dword [edi + 0x198]
mov eax, dword [edi + 0x190]
lea eax, [edx + eax*4]
mov dword [esp + 0x28], eax
cmp edx, eax
je 0x410d0b
mov ecx, dword [edx]
cmp byte [ecx + 0xc2], 0
jne 0x410d04
mov byte [ecx + 0xc0], 1
mov byte [ecx + 0xba], 1
call fcn.0040e760
mov eax, dword [esp + 0x28]
add edx, 4
cmp edx, eax
jne 0x410ce2
mov edx, dword [0x4434a8]
mov dword [edx + 0x4004], edi
mov ecx, dword [edi + 0x1a4]
cmp ecx, 0xffffffff
je 0x410d2d
shl ecx, 9
add ecx, dword [edx + 0x4d9c]
jmp 0x410d2f
xor ecx, ecx
mov dword [edx + 0x4d7c], ecx
mov dword [edx + 0x3d5c], 0x3f800000
mov eax, dword [edi]
movss xmm0, dword [eax + 0x3d54]
mov eax, dword [edi + 0x30c]
mulss xmm0, dword [edi + 0x270]
test eax, eax
je 0x410d63
mulss xmm0, dword [eax + 0x270]
mov eax, dword [edx + 0x3d4c]
movss dword [edx + 0x3d6c], xmm0
movss dword [edx + 0x3d50], xmm0
divss xmm0, dword [eax + 0x10]
movss dword [edx + 0x3d58], xmm0
test ecx, ecx
jne 0x410d96
cmp dword [edi + 0x1a0], ecx
jne 0x410d96
mov al, 1
jmp 0x410d98
xor al, al
mov byte [edi + 0x160], al
lea edx, [esp + 0x80]
movss xmm0, dword [edi + 0x18]
mov ecx, edi
movss xmm1, dword [edi + 0x58]
movaps xmm2, xmm0
addss xmm2, dword [edi + 0x28]
addss xmm1, dword [edi + 0x1c]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [edi + 0x1c]
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x88], xmm2
movss dword [esp + 0x8c], xmm1
call fcn.00411180
cmp byte [edi + 0xc0], 0
jne 0x410f56
mov ecx, dword [0x4434a8]
mov eax, dword [ecx + 0x4004]
mov byte [eax + 0xbc], 1
mov eax, dword [ecx + 0x4004]
movss xmm1, dword [edi + 0x1f4]
movss xmm0, dword [edi + 0x1f8]
movss xmm3, dword [edi + 0x1fc]
mov edx, dword [eax + 0x278]
movss xmm2, dword [edi + 0x200]
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], edx
movups xmm4, xmmword [edx + 0x44]
movss dword [esp + 0x60], xmm1
comiss xmm4, xmm1
movss dword [esp + 0x64], xmm0
movaps xmmword [esp + 0x80], xmm4
jbe 0x410e66
movaps xmm1, xmm4
movss dword [esp + 0x60], xmm1
movss xmm4, dword [esp + 0x84]
comiss xmm4, xmm0
jbe 0x410e7d
movaps xmm0, xmm4
movss dword [esp + 0x64], xmm0
movss xmm4, dword [esp + 0x88]
comiss xmm3, xmm4
jbe 0x410e8e
movaps xmm3, xmm4
movss xmm4, dword [esp + 0x8c]
comiss xmm2, xmm4
jbe 0x410e9f
movaps xmm2, xmm4
mov eax, dword [edx + 0x74]
maxss xmm1, xmm3
maxss xmm0, xmm2
lea ecx, [edx + 0x70]
mov dword [esp + 0x38], ecx
movss dword [esp + 0x68], xmm1
movss dword [esp + 0x6c], xmm0
cmp dword [ecx], eax
jne 0x410ef2
mov edx, dword [ecx]
inc edx
mov dword [esp + 0x28], edx
test eax, eax
je 0x410eda
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x410edf
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.0041c9a0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
mov eax, dword [ecx]
movaps xmm0, xmmword [esp + 0x60]
shl eax, 4
add eax, dword [ecx + 8]
movups xmmword [eax], xmm0
inc dword [ecx]
mov ecx, edx
movups xmmword [edx + 0x44], xmm0
call fcn.00424fd0
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x278]
mov ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x78]
shl ecx, 4
movss xmm0, dword [ecx + eax - 0xc]
movss xmm1, dword [ecx + eax - 8]
movss xmm2, dword [ecx + eax - 4]
mov eax, dword [ecx + eax - 0x10]
mov dword [edx + 0x224], eax
movss dword [edx + 0x228], xmm0
movss dword [edx + 0x22c], xmm1
movss dword [edx + 0x230], xmm2
mov eax, dword [esp + 0x4c]
mov byte [edi + 0xbc], 0
inc word [edi + 0xc8]
mov dword [esi + 0x49e8], 0
cmp eax, dword [esp + 0x50]
je 0x4110fb
cmp byte [edi + 0xc0], 0
jne 0x4110f4
mov eax, dword [esp + 0x14]
and eax, 0x11000000
cmp eax, 0x1000000
jne 0x411058
test dword [edi + 0x10], 0x100
je 0x410fcb
cmp byte [esi + 0x4b1c], 0
je 0x410fcb
mov eax, dword [esi + 0x4ad0]
test eax, eax
je 0x410fcb
mov eax, dword [eax + 0x320]
cmp eax, dword [edi + 0x320]
jne 0x410fcb
mov al, 1
jmp 0x410fcd
xor al, al
cmp byte [esi + 0x5f64], 0
jne 0x41101e
test al, al
jne 0x41101e
movss xmm0, dword [edi + 0x1d4]
comiss xmm0, dword [edi + 0x1dc]
jae 0x410ffc
movss xmm0, dword [edi + 0x1d8]
comiss xmm0, dword [edi + 0x1e0]
jb 0x41101e
cmp byte [edi + 0xd2], 0
jg 0x411017
cmp byte [edi + 0xd3], 0
jg 0x411017
mov byte [edi + 0xdc], 1
jmp 0x41101e
mov byte [edi + 0xdd], 1
mov eax, dword [esp + 0x44]
test eax, eax
je 0x411058
cmp byte [eax + 0xbd], 0
jne 0x411038
cmp byte [eax + 0xdc], 0
jle 0x41103f
mov byte [edi + 0xdc], 1
cmp byte [eax + 0xbd], 0
jne 0x411051
cmp byte [eax + 0xdd], 0
jle 0x411058
mov byte [edi + 0xdd], 1
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x38c8]
jb 0x41106b
mov byte [edi + 0xdc], 1
cmp byte [edi + 0xdc], 0
jg 0x41108b
cmp byte [edi + 0xdd], 0
jg 0x41108b
xor cl, cl
cmp byte [edi + 0xde], cl
jg 0x41108d
xor al, al
jmp 0x41108f
mov cl, 1
mov al, 1
mov byte [edi + 0xc2], al
mov al, byte [edi + 0xdf]
test al, al
jle 0x4110b2
dec al
mov byte [edi + 0xdf], al
mov eax, dword [edi + 0xc]
or eax, 0x30200
mov dword [edi + 0xc], eax
xor al, al
cmp byte [edi + 0xbd], al
jne 0x4110c8
cmp byte [edi + 0xba], al
je 0x4110c8
test cl, cl
je 0x4110ec
cmp byte [edi + 0xd2], 0
jg 0x4110ec
cmp byte [edi + 0xd3], 0
jg 0x4110ec
cmp byte [edi + 0xdd], 0
mov ecx, 1
movzx eax, al
cmovle eax, ecx
mov byte [edi + 0xbf], al
jmp 0x4110fb
mov byte [edi + 0xbf], 1
cmp byte [edi + 0xc3], 0
jne 0x411160
cmp byte [esi + 0x69], 0
je 0x411111
cmp dword [esp + 0x58], 0
je 0x411126
cmp byte [esi + 0x6a], 0
je 0x411160
movsx eax, byte [esi + 0x5fc4]
cmp eax, dword [esi + 0x3fdc]
jne 0x411160
mov al, byte [edi + 0xd2]
test al, al
jle 0x411138
inc al
mov byte [edi + 0xd2], al
mov al, byte [edi + 0xd3]
test al, al
jle 0x41114a
inc al
mov byte [edi + 0xd3], al
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00438ad0
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0xbf], 0
mov ecx, dword [esp + 0x18c]
pop edi
sete al
pop esi
xor ecx, esp
call fcn.00438ad0
mov esp, ebp
pop ebp
ret