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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [0x10d426e4]
push esi
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx + 0x2f94]
sub eax, 1
mov dword [ebp - 4], eax
js 0x1006440e
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x2f9c]
cmp dword [ecx + edi + 4], 7
jne 0x10064403
mov esi, ecx
mov eax, 0x66666667
sub ecx, esi
add ecx, edi
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*4]
lea edx, [esi + eax*4]
mov eax, dword [ebx + 0x2f94]
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [eax*4 - 0x14]
push eax
lea eax, [edx + 0x14]
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 4]
add esp, 0xc
dec dword [ebx + 0x2f94]
dec eax
sub edi, 0x14
mov dword [ebp - 4], eax
test eax, eax
jns 0x100643b0
xor esi, esi
cmp dword [ebx + 0x2f94], esi
jle 0x10064444
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x2f9c]
add eax, edi
cmp dword [eax + 4], 0
jne 0x10064438
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x2f94]
jl 0x10064420
mov eax, dword [0x10d426e4]
cmp byte [eax + 0xb4], 0
je 0x1006445f
test byte [eax + 0xc], 2
jne 0x1006445f
mov byte [eax + 0xb4], 0
call fcn.1006ada0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x1b48]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x1b54], 1
mov word [ebx + 0x2f2e], ax
mov dword [ebx + 0x1b9c], eax
addsd xmm0, qword [ebx + 0x1b40]
movsd qword [ebx + 0x1b40], xmm0
mov ecx, dword [ebx + 0x2f44]
test ecx, ecx
jns 0x100644be
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, [ebx + 0x2f40]
call fcn.1006c4d0
mov dword [ebx + 0x2f40], 0
mov ecx, 0x78
mov eax, dword [ebx + 0x31e8]
xorps xmm3, xmm3
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x101decdc]
movss xmm4, dword [0x101a863c]
subss xmm0, dword [ebx + eax*4 + 0x3008]
movss dword [ebp - 4], xmm2
addss xmm0, dword [ebx + 0x31f0]
movss dword [ebx + 0x31f0], xmm0
movss dword [ebx + eax*4 + 0x3008], xmm1
mov eax, dword [ebx + 0x31e8]
inc eax
movss xmm1, dword [ebx + 0x31f0]
cdq
idiv ecx
mov eax, dword [ebx + 0x31ec]
inc eax
mov dword [ebx + 0x31e8], edx
cmp eax, ecx
cmovl ecx, eax
comiss xmm1, xmm3
mov dword [ebx + 0x31ec], ecx
jbe 0x10064558
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm4
divss xmm0, xmm1
jmp 0x1006455b
movaps xmm0, xmm2
movss dword [ebx + 0x358], xmm0
mov esi, dword [0x10d426e4]
mov eax, dword [esi + 0x1d50]
mov edx, dword [eax]
mov dword [edx], 5
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
cmp dword [esi + 0x1d48], 0
jle 0x1006466f
xor edi, edi
xor ebx, ebx
mov eax, dword [esi + 0x1d50]
movaps xmm2, xmm3
inc ebx
mov edx, dword [edi + eax]
add edi, 4
mov eax, dword [edx + 0x88]
mov ecx, dword [edx + 0x8c]
mov dword [edx + 0x78], eax
mov eax, dword [edx + 0x90]
mov dword [edx + 0x7c], ecx
mov ecx, dword [edx + 0x94]
mov dword [edx + 0x80], eax
mov dword [edx + 0x84], ecx
mov dword [edx + 0x90], 0
mov dword [edx + 0x94], 0
mov dword [edx + 0x88], 0
mov dword [edx + 0x8c], 0
movss xmm0, dword [edx + 0x7c]
addss xmm0, dword [edx + 8]
movss xmm1, dword [edx + 0x78]
addss xmm1, dword [edx + 4]
movss dword [edx + 0x18], xmm0
movss xmm0, dword [edx + 0xc]
movss dword [edx + 0x14], xmm1
movaps xmm1, xmm3
subss xmm0, dword [edx + 0x78]
addss xmm0, dword [edx + 0x80]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x10]
subss xmm0, dword [edx + 0x7c]
addss xmm0, dword [edx + 0x84]
movss dword [edx + 0x1c], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x20], xmm1
cmp ebx, dword [esi + 0x1d48]
jl 0x100645a2
movss xmm2, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x98]
mov byte [eax + 0x10], 1
mov esi, dword [0x10d426e4]
mov edi, dword [esi + 0xa4]
test edi, edi
jne 0x10064694
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x3c]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x9c]
movaps xmm0, xmm4
mov ecx, dword [esi + 0x1ba8]
mov dword [esi + 0x1940], edi
mulss xmm1, dword [edi + 0x10]
mulss xmm1, dword [edi + 0x44]
maxss xmm0, xmm1
movss dword [esi + 0x1948], xmm0
test ecx, ecx
je 0x100646ec
mov eax, dword [0x10d426e4]
movss xmm3, dword [ecx + 0x24c]
mulss xmm3, dword [eax + 0x1948]
mov eax, dword [ecx + 0x2e8]
test eax, eax
je 0x100646ec
mulss xmm3, dword [eax + 0x24c]
movss xmm4, dword [0x101df890]
movaps xmm7, xmm2
movss dword [esi + 0x1944], xmm3
movaps xmm6, xmm2
mov edx, dword [edi + 0x30]
movaps xmm5, xmm4
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x30]
mov dword [esi + 0x194c], eax
lea eax, [edx + 0x58]
mov dword [esi + 0x1950], ecx
mov dword [esi + 0x1b3c], eax
mov dword [esi + 0x1954], edi
movss dword [esi + 0x1958], xmm3
mov edx, dword [ebx + 0x1d48]
test edx, edx
jle 0x10064785
mov ecx, dword [ebx + 0x1d50]
mov eax, dword [ecx]
movss xmm3, dword [eax + 4]
comiss xmm7, xmm3
movss xmm2, dword [eax + 8]
movaps xmm0, xmm3
addss xmm0, dword [eax + 0xc]
movaps xmm1, xmm2
addss xmm1, dword [eax + 0x10]
jbe 0x10064765
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x1006476d
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x10064775
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x1006477d
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x10064741
movss dword [ebx + 0x1964], xmm7
movss dword [ebx + 0x1968], xmm6
movss dword [ebx + 0x196c], xmm4
movss dword [ebx + 0x1970], xmm5
movss xmm0, dword [ebx + 0x15ec]
mov eax, dword [ebx + 0x15e8]
push ecx
lea ecx, [ebx + 0x194c]
mov dword [ebx + 0x195c], eax
movss dword [esp], xmm0
call fcn.10073e70
xor edx, edx
mov dword [ebx + 0x1974], 0
cmp byte [ebx + 0x15e4], dl
je 0x100647ed
mov dword [ebx + 0x1974], 1
mov edx, 1
cmp byte [ebx + 0x15e5], 0
mov ecx, edx
je 0x1006480f
mov eax, dword [ebx + 0x1940]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x1006480f
or ecx, 2
mov dword [ebx + 0x1974], ecx
cmp byte [ebx + 0x15e6], 0
je 0x10064821
or ecx, 4
mov dword [ebx + 0x1974], ecx
test byte [ebx + 0xc], 8
je 0x10064830
or ecx, 8
mov dword [ebx + 0x1974], ecx
xor esi, esi
cmp dword [ebx + 0x1d48], esi
jle 0x10064865
xor edi, edi
nop dword [eax]
mov eax, dword [ebx + 0x1d50]
push 0x2c
push 0
mov eax, dword [eax + edi]
add eax, 0x34
push eax
call sub.VCRUNTIME140.dll_memset
inc esi
lea edi, [edi + 4]
add esp, 0xc
cmp esi, dword [ebx + 0x1d48]
jl 0x10064840
cmp byte [ebx + 0x1ec4], 0
je 0x1006489f
mov eax, dword [ebx + 0x1edc]
cmp eax, dword [ebx + 0x1be0]
jne 0x1006489f
mov ecx, dword [0x10d426e4]
cmp dword [ecx + 0x1be0], eax
jne 0x10064890
mov dword [ecx + 0x1be4], eax
cmp dword [ecx + 0x1c1c], eax
jne 0x1006489f
mov byte [ecx + 0x1c20], 1
cmp dword [ebx + 0x1bd0], 0
jne 0x100648b4
mov dword [ebx + 0x1bd8], 0
jmp 0x100648c6
mov eax, dword [ebx + 0x1bcc]
test eax, eax
je 0x100648d0
cmp dword [ebx + 0x1be0], eax
jne 0x100648d0
mov dword [ebx + 0x1bdc], 0
mov eax, dword [ebx + 0x1bcc]
test eax, eax
je 0x1006490a
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x1bd8]
movss dword [ebx + 0x1bd8], xmm0
cmp dword [ebx + 0x1be0], eax
je 0x1006490a
addss xmm1, dword [ebx + 0x1bdc]
movss dword [ebx + 0x1bdc], xmm1
mov dword [ebx + 0x1bd0], eax
mov al, byte [ebx + 0x1bd5]
mov byte [ebx + 0x1bd6], al
mov eax, dword [ebx + 0x1be0]
mov dword [ebx + 0x1bcc], 0
mov word [ebx + 0x1bd4], 0
mov byte [ebx + 0x1bd7], 0
cmp dword [ebx + 0x1be4], eax
je 0x10064955
cmp dword [ebx + 0x1c1c], eax
jne 0x10064955
test eax, eax
je 0x10064955
call fcn.1005b460
mov ecx, dword [ebx + 0x1be0]
test ecx, ecx
je 0x10064974
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x1be8]
movss dword [ebx + 0x1be8], xmm0
mov eax, dword [ebx + 0x1c10]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x1c2c]
mov dword [ebx + 0x1c24], eax
mov al, byte [ebx + 0x1bf0]
mov byte [ebx + 0x1c21], al
mov eax, dword [ebx + 0x2ec0]
movss dword [ebx + 0x1c2c], xmm0
mov dword [ebx + 0x1c1c], ecx
mov dword [ebx + 0x1be4], 0
mov byte [ebx + 0x1bf1], 0
mov byte [ebx + 0x1c20], 0
mov byte [ebx + 0x1bec], 0
test eax, eax
je 0x100649de
cmp ecx, eax
je 0x100649de
mov dword [ebx + 0x2ec0], 0
test ecx, ecx
jne 0x100649fa
mov dword [ebx + 0x1bf4], ecx
mov dword [ebx + 0x1bf8], ecx
mov dword [ebx + 0x1c00], ecx
mov dword [ebx + 0x1c04], ecx
cmp byte [ebx + 0x1518], 0
mov eax, dword [ebx + 0x1f28]
mov dword [ebx + 0x1f2c], eax
mov dword [ebx + 0x1f28], 0
mov dword [ebx + 0x1f24], 0x7f7fffff
mov word [ebx + 0x1ec5], 0
mov dword [ebx + 0x1f34], 0
je 0x10064ab2
push 0x200
lea eax, [ebx + 0x100]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebx + 0x474]
mov ecx, 0x200
nop dword [eax + eax]
mov dword [eax + 0x800], 0xbf800000
lea eax, [eax + 4]
mov dword [eax - 4], 0xbf800000
sub ecx, 1
jne 0x10064a60
mov dword [ebx + 0xfc], ecx
lea eax, [ebx + 0x1474]
mov dword [ebx + 0x380], ecx
mov dword [ebx + 0x37c], ecx
mov ecx, 0x14
mov dword [eax + 0x50], 0xbf800000
lea eax, [eax + 4]
mov dword [eax - 4], 0xbf800000
sub ecx, 1
jne 0x10064a96
mov byte [ebx + 0x1518], cl
mov esi, dword [0x10d426e4]
lea edi, [ebx + 0xc74]
xor eax, eax
cmp byte [esi + 0xfc], al
setne al
mov ecx, eax
or ecx, 2
cmp byte [esi + 0xfd], 0
cmove ecx, eax
mov edx, ecx
or edx, 4
cmp byte [esi + 0xfe], 0
cmove edx, ecx
mov ecx, 0x200
mov eax, edx
or eax, 8
cmp byte [esi + 0xff], 0
cmove eax, edx
mov dword [ebx + 0x37c], eax
lea eax, [ebx + 0x474]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
nop dword [eax]
cmp byte [ebx + ecx + 0x100], 0
je 0x10064b32
movss xmm0, dword [eax]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x10064b2b
xorps xmm0, xmm0
jmp 0x10064b3a
addss xmm0, dword [ebx + 0x18]
jmp 0x10064b3a
movss xmm0, dword [0x101df02c]
movss dword [eax], xmm0
inc ecx
add eax, 4
cmp ecx, 0x200
jl 0x10064b10
call fcn.10061f00
call fcn.1006a3b0
call fcn.1006a140
mov esi, dword [0x10d426e4]
mov edx, dword [esi + 0x1bb4]
test edx, edx
je 0x10064c5e
mov eax, dword [esi + 0x1be0]
mov dword [esi + 0x1be4], eax
cmp dword [esi + 0x1c1c], eax
jne 0x10064b88
mov byte [esi + 0x1c20], 1
cmp byte [esi + 0xec], 0
mov edx, dword [edx + 0x2f0]
je 0x10064c52
mov ecx, dword [0x10d426e4]
lea eax, [esi + 0xe4]
mov edi, eax
test eax, eax
jne 0x10064bb3
lea edi, [ecx + 0xe4]
movss xmm0, dword [edi]
movss xmm1, dword [0x101df88c]
comiss xmm0, xmm1
movss xmm2, dword [edi + 4]
jb 0x10064c52
comiss xmm2, xmm1
jb 0x10064c52
movss xmm1, dword [eax]
subss xmm1, dword [esi + 0x1c08]
movss xmm0, dword [edx + 0x18]
movss xmm2, dword [eax + 4]
subss xmm2, dword [esi + 0x1c0c]
ucomiss xmm0, xmm1
movss dword [ebp - 0xc], xmm1
movss dword [ebp - 8], xmm2
lahf
test ah, 0x44
jp 0x10064c15
movss xmm0, dword [edx + 0x1c]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x10064c42
test dword [edx + 0x14], 0x100
jne 0x10064c33
xorps xmm0, xmm0
comiss xmm0, dword [ecx + 0x2f60]
jb 0x10064c33
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x2f60], eax
push 1
lea eax, [ebp - 0xc]
push eax
push edx
call fcn.10069410
add esp, 0xc
push dword [esi + 0x1bb4]
call fcn.1005d760
add esp, 4
jmp 0x10064c96
mov dword [esi + 0x1bb4], 0
jmp 0x10064c91
mov ecx, dword [esi + 0x1c10]
test ecx, ecx
je 0x10064c96
mov eax, dword [esi + 0x1be0]
cmp dword [ecx + 0x5c], eax
jne 0x10064c96
mov dword [esi + 0x1be4], eax
cmp dword [esi + 0x1c1c], eax
jne 0x10064c88
mov byte [esi + 0x1c20], 1
cmp byte [esi + 0xec], 0
jne 0x10064c96
call fcn.1005b460
mov eax, dword [0x10d426e4]
mov edx, dword [eax + 0x1d2c]
sub edx, 1
js 0x10064ccc
mov eax, dword [eax + 0x1d34]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*4]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x10064cc4
test dword [ecx + 0x14], 0x8000000
jne 0x10064ce6
sub eax, 0x24
sub edx, 1
jns 0x10064cb5
cmp dword [ebx + 0x1ea4], 0
je 0x10064d05
movss xmm0, dword [ebx + 0x1eb4]
comiss xmm0, dword [0x101decc0]
jbe 0x10064d05
movss xmm1, dword [ebx + 0x18]
mulss xmm1, dword [0x101deccc]
addss xmm1, dword [ebx + 0x1ebc]
minss xmm1, dword [0x101a863c]
jmp 0x10064d26
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x101dec94]
movss xmm1, dword [ebx + 0x1ebc]
subss xmm1, xmm0
maxss xmm1, dword [0x101decc0]
movss dword [ebx + 0x1ebc], xmm1
mov dword [ebx + 0x1ec0], 0
mov dword [ebx + 0x31fc], 0xffffffff
mov dword [ebx + 0x31f8], 0xffffffff
mov dword [ebx + 0x31f4], 0xffffffff
mov dword [ebx + 0x2f4c], 0x3f800000
mov dword [ebx + 0x2f50], 0x3f800000
call fcn.1006a950
cmp byte [ebx + 0x1b57], 0
jne 0x10064d9f
movss xmm1, dword [ebx + 0xb8]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x10064d9f
movsd xmm0, qword [ebx + 0x1b40]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [ebp - 4], xmm0
jmp 0x10064da4
movss xmm0, dword [ebp - 4]
xor edi, edi
cmp dword [ebx + 0x1b60], edi
je 0x10064f6c
xor esi, esi
mov dword [ebp - 8], esi
nop word [eax + eax]
mov eax, dword [ebx + 0x1b68]
xor ecx, ecx
mov esi, dword [esi + eax]
mov al, byte [esi + 0x96]
mov byte [esi + 0x97], al
mov word [esi + 0xa2], cx
mov byte [esi + 0x96], cl
mov byte [esi + 0x98], cl
test al, al
jne 0x10064f51
cmp byte [esi + 0x334], cl
jne 0x10064f51
comiss xmm0, dword [esi + 0x22c]
jbe 0x10064f51
mov ecx, dword [esi + 0x254]
mov byte [esi + 0x334], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x32c], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x330], eax
mov ecx, dword [esi + 0xd8]
test ecx, ecx
je 0x10064e71
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd0], 0
mov eax, dword [0x10d426e4]
test eax, eax
je 0x10064e57
dec dword [eax + 0x36c]
push dword [0x10d426ec]
push ecx
call dword [0x1065571c]
add esp, 8
mov dword [esi + 0xd8], 0
mov ecx, dword [esi + 0x254]
call fcn.10074830
mov ecx, dword [esi + 0x174]
test ecx, ecx
je 0x10064ec3
mov dword [esi + 0x170], 0
mov dword [esi + 0x16c], 0
mov eax, dword [0x10d426e4]
test eax, eax
je 0x10064ea9
dec dword [eax + 0x36c]
push dword [0x10d426ec]
push ecx
call dword [0x1065571c]
add esp, 8
mov dword [esi + 0x174], 0
mov ecx, dword [esi + 0x1a0]
test ecx, ecx
je 0x10064f0a
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
mov eax, dword [0x10d426e4]
test eax, eax
je 0x10064ef0
dec dword [eax + 0x36c]
push dword [0x10d426ec]
push ecx
call dword [0x1065571c]
add esp, 8
mov dword [esi + 0x1a0], 0
mov ecx, dword [esi + 0x1ac]
test ecx, ecx
je 0x10064f51
mov dword [esi + 0x1a8], 0
mov dword [esi + 0x1a4], 0
mov eax, dword [0x10d426e4]
test eax, eax
je 0x10064f37
dec dword [eax + 0x36c]
push dword [0x10d426ec]
push ecx
call dword [0x1065571c]
add esp, 8
mov dword [esi + 0x1ac], 0
mov esi, dword [ebp - 8]
inc edi
movss xmm0, dword [ebp - 4]
add esi, 4
mov dword [ebp - 8], esi
cmp edi, dword [ebx + 0x1b60]
jne 0x10064dc0
xor edi, edi
cmp dword [ebx + 0x1f98], edi
jle 0x10064fc6
xor esi, esi
xorps xmm1, xmm1
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebx + 0x1fa0]
movss xmm0, dword [ecx + eax]
comiss xmm0, xmm1
jb 0x10064fb1
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x10064fb1
mov eax, dword [ebx + 0x1f80]
add eax, esi
push eax
call fcn.10095cf0
mov ecx, dword [ebp - 8]
add esp, 4
xorps xmm1, xmm1
inc edi
add ecx, 4
add esi, 0x1c8
mov dword [ebp - 8], ecx
cmp edi, dword [ebx + 0x1f98]
jl 0x10064f80
xor esi, esi
cmp dword [ebx + 0x1f6c], esi
jle 0x10065014
xor edi, edi
xorps xmm1, xmm1
nop word [eax + eax]
mov eax, dword [ebx + 0x1f74]
add eax, edi
movss xmm0, dword [eax + 4]
comiss xmm0, xmm1
jb 0x10065008
movss xmm2, dword [ebp - 4]
comiss xmm2, xmm0
jbe 0x10065008
push eax
call fcn.10095dd0
add esp, 4
xorps xmm1, xmm1
inc esi
add edi, 0x68
cmp esi, dword [ebx + 0x1f6c]
jl 0x10064fe0
cmp byte [ebx + 0x1b57], 0
je 0x100650ba
mov esi, dword [0x10d426e4]
mov ecx, dword [esi + 0x1d1c]
test ecx, ecx
je 0x1006506e
mov dword [esi + 0x1d18], 0
mov dword [esi + 0x1d14], 0
mov eax, dword [0x10d426e4]
test eax, eax
je 0x10065054
dec dword [eax + 0x36c]
push dword [0x10d426ec]
push ecx
call dword [0x1065571c]
add esp, 8
mov dword [esi + 0x1d1c], 0
mov ecx, dword [esi + 0x1d28]
test ecx, ecx
je 0x100650b5
mov dword [esi + 0x1d24], 0
mov dword [esi + 0x1d20], 0
mov eax, dword [0x10d426e4]
test eax, eax
je 0x1006509b
dec dword [eax + 0x36c]
push dword [0x10d426ec]
push ecx
call dword [0x1065571c]
add esp, 8
mov dword [esi + 0x1d28], 0
call fcn.10095af0
mov eax, dword [ebx + 0x1d54]
mov byte [ebx + 0x1b57], 0
test eax, eax
je 0x1006521e
cmp byte [eax + 0x97], 0
jne 0x1006521e
mov edi, dword [0x10d426e4]
mov edx, dword [edi + 0x1b6c]
sub edx, 1
js 0x10065120
mov eax, dword [edi + 0x1b74]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x10065118
cmp byte [ecx + 0x97], 0
je 0x10065118
mov eax, dword [ecx + 0x14]
and eax, 0x40200
cmp eax, 0x40200
jne 0x10065189
sub esi, 4
sub edx, 1
jns 0x100650f6
mov esi, edi
cmp dword [esi + 0x1d54], 0
je 0x100651ba
mov dword [esi + 0x1d54], 0
mov dword [esi + 0x1d58], 0
mov dword [esi + 0x1d5c], 0
mov byte [esi + 0x1d90], 0
mov dword [esi + 0x1d8c], 0
mov word [esi + 0x1dac], 0
mov byte [esi + 0x1d95], 0
mov eax, dword [0x10d426e4]
cmp byte [eax + 0x1dad], 0
jne 0x100651ac
cmp byte [eax + 0x1d95], 0
jne 0x100651ac
xor cl, cl
jmp 0x100651ae
mov eax, dword [ecx + 0x300]
test eax, eax
je 0x1006519c
cmp byte [eax + 0x97], 0
jne 0x1006519e
mov eax, ecx
push eax
call fcn.1005d760
add esp, 4
jmp 0x1006521e
mov cl, 1
mov byte [eax + 0x1d94], cl
mov edi, dword [0x10d426e4]
mov eax, dword [edi + 0x1d2c]
test eax, eax
jle 0x100651f4
mov ecx, dword [edi + 0x1d30]
test ecx, ecx
jns 0x100651ea
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 + 0x1d2c]
call fcn.1006c5f0
mov dword [edi + 0x1d2c], 0
cmp dword [esi + 0x1be0], 0
je 0x1006521e
mov eax, dword [esi + 0x1c10]
test eax, eax
je 0x1006521e
cmp dword [eax + 0x2f0], 0
je 0x1006521e
cmp byte [esi + 0x1bee], 0
jne 0x1006521e
call fcn.1005b460
mov ecx, dword [ebx + 0x1b88]
test ecx, ecx
jns 0x10065244
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, [ebx + 0x1b84]
call fcn.1006c700
mov dword [ebx + 0x1b84], 0
mov ecx, dword [ebx + 0x1d3c]
test ecx, ecx
jns 0x10065274
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, [ebx + 0x1d38]
call fcn.1006c5f0
lea esi, [ebx + 0x1d14]
mov dword [ebx + 0x1d38], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x100652a3
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.1006c4d0
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x100652b8
push 8
mov ecx, esi
call fcn.1006c4d0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [ebx + 0x1d20]
inc dword [esi]
call fcn.1006c870
mov edi, dword [0x10d426e4]
cmp byte [edi + 0x2fd8], 0
mov dword [edi + 0x2fdc], 0
je 0x100653ba
mov eax, dword [0x10d426e4]
mov ecx, dword [edi + 0x1bd0]
mov dword [ebp - 4], ecx
mov dword [eax + 0x1ec0], 7
mov esi, dword [0x10d426e4]
mov eax, dword [esi + 0x6c]
test eax, eax
js 0x10065334
push 1
push eax
call fcn.1005fe20
mov ecx, dword [ebp - 4]
add esp, 8
test al, al
je 0x10065334
mov byte [edi + 0x2fd8], 0
mov esi, dword [0x10d426e4]
movss xmm0, dword [esi + 0x410]
ucomiss xmm0, dword [0x101decc0]
lahf
test ah, 0x44
jp 0x10065360
test ecx, ecx
je 0x10065360
mov dword [edi + 0x2fdc], ecx
mov byte [edi + 0x2fd8], 0
mov esi, dword [0x10d426e4]
or dword [esi + 0x1c84], 0x40
push 0
push 0
mov dword [esi + 0x1cd8], 0x3f19999a
call fcn.1005a310
mov esi, dword [ebp - 4]
push esi
push 0x101df798
call fcn.10093a80
push 0x101df7ac
call fcn.10093a80
mov ecx, 0x1600
test esi, esi
mov eax, 0x15f0
cmove eax, ecx
add eax, dword [0x10d426e4]
push 0x101df7c8
push eax
call fcn.10093aa0
add esp, 0x1c
call fcn.1005c260
mov esi, dword [0x10d426e4]
mov dword [esi + 0x1bc8], 0
mov eax, dword [esi + 0x2ff0]
inc eax
cmp dword [esi + 0x1b48], eax
jne 0x100654b8
mov edi, dword [esi + 0x1bd0]
test edi, edi
jne 0x100653ed
mov edi, dword [esi + 0x1be0]
cmp dword [esi + 0x2ff8], edi
je 0x1006543a
lea eax, [esi + 0x2ffc]
mov dword [esi + 0x2ff8], edi
mov dword [esi + 0x2ff4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x10065434
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, [esi + 0x2ffc]
call fcn.1006c680
lea eax, [esi + 0x2ffc]
mov dword [eax], 0
test edi, edi
je 0x100654b8
mov eax, dword [esi + 0x2ff4]
test eax, eax
js 0x10065481
mov ecx, eax
cmp eax, dword [esi + 0x2ffc]
jge 0x10065494
mov ecx, dword [esi + 0x3004]
mov edx, eax
shl edx, 6
cmp byte [edx + ecx + 5], 0
jne 0x1006547a
mov ebx, dword [esi + 0x3004]
mov ecx, eax
cmp byte [edx + ebx + 4], 2
mov ebx, dword [ebp - 0x10]
jle 0x10065494
inc eax
mov dword [esi + 0x2ff4], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x10065490
mov dword [esi + 0x1bc8], edi
jmp 0x100654b8
test ecx, ecx
js 0x100654b8
cmp ecx, dword [esi + 0x2ffc]
jge 0x100654b8
mov eax, dword [esi + 0x3004]
shl ecx, 6
mov eax, dword [ecx + eax]
mov dword [esi + 0x1bc8], eax
mov eax, dword [esi + 0x3004]
inc byte [eax + ecx + 4]
mov byte [ebx + 0x1b55], 1
mov eax, dword [0x10d426e4]
push 0
push 0
push 0x101df628
or dword [eax + 0x1c84], 2
mov dword [eax + 0x1ca4], 0x43c80000
mov dword [eax + 0x1ca8], 0x43c80000
mov dword [eax + 0x1c8c], 4
call fcn.100575c0
xor esi, esi
add esp, 0xc
cmp dword [ebx + 0x2f94], esi
jle 0x10065534
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x2f9c]
add eax, edi
cmp dword [eax + 4], 1
jne 0x10065528
push eax
mov eax, dword [eax + 0xc]
push ebx
call eax
add esp, 8
inc esi
add edi, 0x14
cmp esi, dword [ebx + 0x2f94]
jl 0x10065510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret