Function at 0x1004a310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [0x10104944]
mov dword [esp + 0x2c], edi
mov eax, dword [edi + 0x5a0c]
lea ecx, [edi + 0x5a14]
sub eax, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
js 0x1004a3af
lea ebx, [eax + eax*4]
shl ebx, 2
mov edx, dword [ecx]
cmp dword [ebx + edx + 4], 7
jne 0x1004a3a1
mov esi, dword [edi + 0x5a14]
mov ecx, ebx
sub ecx, esi
mov eax, 0x66666667
add ecx, edx
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 [edi + 0x5a0c]
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [eax*4 - 0x14]
push eax
lea eax, [edx + 0x14]
push eax
push edx
call fcn.10092810
mov eax, dword [esp + 0x2c]
lea ecx, [edi + 0x5a14]
add esp, 0xc
dec dword [edi + 0x5a0c]
dec eax
sub ebx, 0x14
mov dword [esp + 0x20], eax
test eax, eax
jns 0x1004a345
jmp 0x1004a3b3
mov dword [esp + 0x24], ecx
xor esi, esi
cmp dword [edi + 0x5a0c], esi
jle 0x1004a3e4
xor ebx, ebx
nop
mov eax, dword [ecx]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x1004a3d8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x2c]
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a0c]
jl 0x1004a3c0
mov esi, dword [0x10104944]
cmp byte [esi + 0x66], 0
je 0x1004a3fa
test byte [esi + 0xc], 2
jne 0x1004a3fa
mov byte [esi + 0x66], 0
cmp byte [esi + 0x59d5], 0
jne 0x1004a45a
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1004a453
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
call fcn.100455d0
mov ecx, eax
add esp, 8
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x1004a453
mov edx, dword [esp + 0x20]
test edx, edx
je 0x1004a43b
call fcn.10059970
mov ecx, dword [esp + 0x28]
mov eax, dword [0x10104944]
test eax, eax
je 0x1004a44a
dec dword [eax + 0xb0]
push ecx
call fcn.1009ac6c
add esp, 4
mov byte [esi + 0x59d5], 1
movss xmm0, dword [esi + 0x59d8]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1004a4e5
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x59d8], xmm0
jb 0x1004a4e5
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x1004a4d4
mov eax, dword [0x10104944]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [eax + 0x59d8], 0
call fcn.10059bc0
mov edx, 0x100ef700
mov dword [esp + 0x28], eax
mov ecx, ebx
call fcn.100454d0
mov ebx, eax
test ebx, ebx
je 0x1004a4db
push ebx
push dword [esp + 0x24]
push 1
push dword [esp + 0x34]
call fcn.100999ae
push ebx
call fcn.10096904
add esp, 0x14
jmp 0x1004a4db
mov byte [esi + 0x98], 1
mov dword [esi + 0x59d8], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3dc8]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3dd4], 1
mov word [edi + 0x599a], ax
mov dword [edi + 0x3e1c], eax
addsd xmm0, qword [edi + 0x3dc0]
movsd qword [edi + 0x3dc0], xmm0
mov ecx, dword [edi + 0x59ac]
test ecx, ecx
jns 0x1004a53f
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 + 0x59a8]
call fcn.1005ae20
mov dword [edi + 0x59a8], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x5b98]
xorps xmm3, xmm3
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x100f1b8c]
movss xmm4, dword [0x100f1a80]
subss xmm0, dword [edi + eax*4 + 0x5aa8]
movss dword [esp + 0x1c], xmm2
addss xmm0, dword [edi + 0x5ba0]
movss dword [edi + 0x5ba0], xmm0
movss dword [edi + eax*4 + 0x5aa8], xmm1
mov eax, dword [edi + 0x5b98]
inc eax
movss xmm1, dword [edi + 0x5ba0]
cdq
idiv ecx
mov eax, dword [edi + 0x5b9c]
inc eax
mov dword [edi + 0x5b98], edx
cmp eax, ecx
cmovl ecx, eax
comiss xmm1, xmm3
mov dword [edi + 0x5b9c], ecx
jbe 0x1004a5da
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm4
divss xmm0, xmm1
jmp 0x1004a5dd
movaps xmm0, xmm2
mov esi, dword [0x10104944]
xor ebx, ebx
movss dword [edi + 0x9c], xmm0
mov eax, dword [esi + 0x4790]
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 + 0x4788], ebx
jle 0x1004a6f2
mov eax, dword [esi + 0x4790]
movaps xmm2, xmm3
mov edx, dword [eax + ebx*4]
inc ebx
mov eax, dword [edx + 0x8c]
mov ecx, dword [edx + 0x90]
mov dword [edx + 0x7c], eax
mov eax, dword [edx + 0x94]
mov dword [edx + 0x80], ecx
mov ecx, dword [edx + 0x98]
mov dword [edx + 0x84], eax
mov dword [edx + 0x88], ecx
mov dword [edx + 0x94], 0
mov dword [edx + 0x98], 0
mov dword [edx + 0x8c], 0
mov dword [edx + 0x90], 0
movss xmm0, dword [edx + 0x80]
addss xmm0, dword [edx + 8]
movss xmm1, dword [edx + 0x7c]
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 + 0x7c]
addss xmm0, dword [edx + 0x84]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x10]
subss xmm0, dword [edx + 0x80]
addss xmm0, dword [edx + 0x88]
movss dword [edx + 0x1c], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x20], xmm1
cmp ebx, dword [esi + 0x4788]
jl 0x1004a621
movss xmm2, dword [esp + 0x1c]
mov eax, dword [edi + 0x48]
mov esi, dword [0x10104944]
mov byte [eax + 0x10], 1
mov ebx, dword [esi + 0x54]
test ebx, ebx
jne 0x1004a70e
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
movss xmm1, dword [esi + 0x4c]
movaps xmm0, xmm4
mov eax, dword [esi + 0x3e28]
mov dword [esi + 0x3bb0], ebx
mulss xmm1, dword [ebx + 0x10]
mulss xmm1, dword [ebx + 0x44]
maxss xmm0, xmm1
movss dword [esi + 0x3bb8], xmm0
test eax, eax
je 0x1004a760
movss xmm0, dword [eax + 0x240]
mov eax, dword [eax + 0x2dc]
mulss xmm0, dword [esi + 0x3bb8]
test eax, eax
je 0x1004a763
mulss xmm0, dword [eax + 0x240]
jmp 0x1004a763
movaps xmm0, xmm3
movss xmm4, dword [0x100f1bac]
movaps xmm7, xmm2
movss dword [esi + 0x3bb4], xmm0
movaps xmm6, xmm2
mov edx, dword [ebx + 0x30]
movaps xmm5, xmm4
mov eax, dword [edx + 0x2c]
mov ecx, dword [edx + 0x30]
mov dword [esi + 0x3bbc], eax
lea eax, [edx + 0x58]
mov dword [esi + 0x3bc0], ecx
mov dword [esi + 0x3db8], eax
mov dword [esi + 0x3bc4], ebx
movss dword [esi + 0x3bc8], xmm0
mov edx, dword [edi + 0x4788]
test edx, edx
jle 0x1004a804
mov ecx, dword [edi + 0x4790]
nop dword [eax + eax]
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 0x1004a7e4
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x1004a7ec
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x1004a7f4
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x1004a7fc
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x1004a7c0
movss dword [edi + 0x3bd4], xmm7
movss dword [edi + 0x3bd8], xmm6
movss dword [edi + 0x3bdc], xmm4
movss dword [edi + 0x3be0], xmm5
mov eax, dword [edi + 0x3858]
movss xmm1, dword [edi + 0x385c]
mov dword [edi + 0x3bcc], eax
movss xmm0, dword [edi + 0x3bd0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1004a930
movss dword [edi + 0x3bd0], xmm1
xor esi, esi
mov ebx, 0x200
nop dword [eax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x1004a8e9
movss xmm1, dword [edi + 0x3bd0]
minss xmm1, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x100f1a80]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.100b7e20
movss xmm1, dword [0x100f1ad4]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.100b6a50
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x1004a8df
mov eax, 4
jmp 0x1004a8ee
cmp eax, 0x200
cmovg eax, ebx
jmp 0x1004a8ee
mov eax, 0x30
mov byte [esi + edi + 0x3d78], al
inc esi
cmp esi, 0x40
jl 0x1004a860
movsd xmm0, qword [0x100f1a90]
call fcn.100b8340
movss xmm1, dword [0x100f1a80]
cvtsd2ss xmm0, xmm0
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3bd0]
divss xmm0, xmm1
movss dword [edi + 0x3d74], xmm0
xor edx, edx
mov dword [edi + 0x3be4], 0
cmp byte [edi + 0x3854], dl
je 0x1004a953
mov dword [edi + 0x3be4], 1
mov edx, 1
cmp byte [edi + 0x3855], 0
mov ecx, edx
je 0x1004a975
mov eax, dword [edi + 0x3bb0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x1004a975
or ecx, 2
mov dword [edi + 0x3be4], ecx
cmp byte [edi + 0x3856], 0
je 0x1004a987
or ecx, 4
mov dword [edi + 0x3be4], ecx
test byte [edi + 0xc], 8
je 0x1004a996
or ecx, 8
mov dword [edi + 0x3be4], ecx
xor esi, esi
cmp dword [edi + 0x4788], esi
jle 0x1004a9c2
mov eax, dword [edi + 0x4790]
push 0x2c
push 0
mov eax, dword [eax + esi*4]
add eax, 0x38
push eax
call fcn.10094410
inc esi
add esp, 0xc
cmp esi, dword [edi + 0x4788]
jl 0x1004a9a0
cmp byte [edi + 0x491c], 0
je 0x1004a9fc
mov eax, dword [edi + 0x4934]
cmp eax, dword [edi + 0x3e60]
jne 0x1004a9fc
mov ecx, dword [0x10104944]
cmp dword [ecx + 0x3e60], eax
jne 0x1004a9ed
mov dword [ecx + 0x3e64], eax
cmp dword [ecx + 0x3e88], eax
jne 0x1004a9fc
mov byte [ecx + 0x3e8c], 1
cmp dword [edi + 0x3e50], 0
lea eax, [edi + 0x3e4c]
mov ecx, dword [eax]
jne 0x1004aa19
mov dword [edi + 0x3e58], 0
jmp 0x1004aa29
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x1004aa37
cmp dword [edi + 0x3e60], ecx
jne 0x1004aa37
mov dword [edi + 0x3e5c], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [edi + 0x18]
test edx, edx
je 0x1004aa6e
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e58]
movss dword [edi + 0x3e58], xmm0
cmp dword [edi + 0x3e60], edx
je 0x1004aa6e
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e5c]
movss dword [edi + 0x3e5c], xmm0
mov eax, dword [edi + 0x3e60]
movaps xmm2, xmm1
mov dword [edi + 0x3e50], edx
mov dword [esi], 0
mov word [edi + 0x3e54], 0
test eax, eax
je 0x1004aac4
cmp dword [edi + 0x3e64], eax
je 0x1004aac4
cmp dword [edi + 0x3e88], eax
jne 0x1004aac4
test byte [edi + 0x5a50], 1
je 0x1004aab6
push 0x100eecf8
call fcn.1005a320
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.10048650
movss xmm2, dword [edi + 0x18]
mov edx, dword [edi + 0x3e60]
test edx, edx
je 0x1004aae1
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x3e68]
movss dword [edi + 0x3e68], xmm0
mov eax, dword [edi + 0x3e7c]
addss xmm2, dword [edi + 0x3e98]
mov dword [edi + 0x3e90], eax
mov al, byte [edi + 0x3e70]
mov byte [edi + 0x3e8d], al
mov eax, dword [edi + 0x5928]
movss dword [edi + 0x3e98], xmm2
mov dword [edi + 0x3e88], edx
mov dword [edi + 0x3e64], 0
mov byte [edi + 0x3e71], 0
mov byte [edi + 0x3e8c], 0
mov byte [edi + 0x3e6c], 0
test eax, eax
je 0x1004ab46
cmp edx, eax
je 0x1004ab46
mov dword [edi + 0x5928], 0
test edx, edx
jne 0x1004ab64
mov dword [edi + 0x4664], edx
mov dword [edi + 0x465c], edx
mov byte [edi + 0x4660], dl
mov dword [edi + 0x4664], edx
jmp 0x1004ab87
mov eax, dword [edi + 0x4664]
test eax, eax
je 0x1004ab87
test al, 2
je 0x1004ab87
mov ecx, 0x20e
call fcn.100449f0
mov dword [eax + 4], edx
mov dword [eax], edx
mov word [eax + 8], 0
mov eax, dword [edi + 0x4a44]
movss xmm0, dword [edi + 0x4a4c]
mov dword [edi + 0x4a48], eax
test eax, eax
je 0x1004abb8
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4a44], 0
movss dword [edi + 0x4a4c], xmm0
jmp 0x1004abf8
comiss xmm0, dword [0x100f19d4]
jbe 0x1004ac02
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x100f1a1c]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4a50]
addss xmm1, xmm1
movss dword [edi + 0x4a50], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x1004ac02
mov dword [edi + 0x4a4c], 0
mov dword [edi + 0x4a50], 0
mov eax, dword [edi + 0x4980]
mov dword [edi + 0x4984], eax
mov dword [edi + 0x4980], 0
mov dword [edi + 0x497c], 0x7f7fffff
mov word [edi + 0x491d], 0
mov dword [edi + 0x498c], 0
mov ecx, dword [edi + 0x3790]
test ecx, ecx
jns 0x1004ac5b
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 + 0x378c]
call fcn.1005b4f0
mov dword [edi + 0x378c], 0
mov cl, byte [edi + 0x62]
call fcn.100534e0
call fcn.10049270
call fcn.10056cb0
call fcn.10049720
call fcn.1004a0a0
mov esi, dword [0x10104944]
mov ecx, dword [esi + 0x3e34]
test ecx, ecx
je 0x1004ad3a
mov eax, dword [esi + 0x3e60]
mov dword [esi + 0x3e64], eax
cmp dword [esi + 0x3e88], eax
jne 0x1004acb0
mov byte [esi + 0x3e8c], 1
cmp byte [esi + 0xdc0], 0
mov ebx, dword [ecx + 0x2e4]
je 0x1004ad2e
lea eax, [esi + 0xdb8]
mov ecx, eax
test eax, eax
jne 0x1004acd1
lea ecx, [esi + 0xdb8]
movss xmm0, dword [ecx]
movss xmm1, dword [0x100f1ba4]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x1004ad2e
comiss xmm2, xmm1
jb 0x1004ad2e
movss xmm0, dword [eax]
lea edx, [esp + 0x30]
subss xmm0, dword [esi + 0x3e74]
push 1
mov ecx, ebx
movss dword [esp + 0x34], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3e78]
movss dword [esp + 0x38], xmm0
call fcn.10052820
mov ecx, dword [esi + 0x3e34]
add esp, 4
call fcn.10052290
jmp 0x1004ad76
mov dword [esi + 0x3e34], 0
jmp 0x1004ad6d
mov ecx, dword [esi + 0x3e7c]
test ecx, ecx
je 0x1004ad76
mov eax, dword [esi + 0x3e60]
cmp dword [ecx + 0x54], eax
jne 0x1004ad76
mov dword [esi + 0x3e64], eax
cmp dword [esi + 0x3e88], eax
jne 0x1004ad64
mov byte [esi + 0x3e8c], 1
cmp byte [esi + 0xdc0], 0
jne 0x1004ad76
xor edx, edx
xor ecx, ecx
call fcn.10048650
mov eax, dword [0x10104944]
mov edx, dword [eax + 0x476c]
sub edx, 1
js 0x1004adac
mov eax, dword [eax + 0x4774]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x1004ada4
test dword [ecx + 8], 0x8000000
jne 0x1004adc6
sub eax, 0x28
sub edx, 1
jns 0x1004ad95
cmp dword [edi + 0x48ec], 0
je 0x1004ade5
movss xmm0, dword [edi + 0x48fc]
comiss xmm0, dword [0x100f19d4]
jbe 0x1004ade5
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x100f1aec]
addss xmm1, dword [edi + 0x4914]
minss xmm1, dword [0x100f1a80]
jmp 0x1004ae06
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x100f1afc]
movss xmm1, dword [edi + 0x4914]
subss xmm1, xmm0
maxss xmm1, dword [0x100f19d4]
movss dword [edi + 0x4914], xmm1
movups xmm0, xmmword [edi + 0x59b4]
mov dword [edi + 0x4918], 0
mov dword [edi + 0x5bac], 0xffffffff
mov dword [edi + 0x5ba8], 0xffffffff
mov dword [edi + 0x5ba4], 0xffffffff
movups xmmword [edi + 0x59c4], xmm0
mov byte [edi + 0x59b4], 0
call fcn.10049a80
cmp byte [edi + 0x3dd7], 0
jne 0x1004ae7e
movss xmm0, dword [edi + 0x68]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x1004ae7e
movsd xmm1, qword [edi + 0x3dc0]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
jmp 0x1004ae84
movss xmm1, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [edi + 0x3de0], ebx
je 0x1004b038
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x3de8]
mov esi, dword [eax + ebx*4]
mov ax, word [esi + 0x9a]
mov cl, byte [esi + 0x8e]
mov word [esi + 0x9c], ax
xor eax, eax
mov byte [esi + 0x8f], cl
mov byte [esi + 0x8e], 0
mov byte [esi + 0x90], 0
mov word [esi + 0x9a], ax
test cl, cl
jne 0x1004b025
cmp byte [esi + 0x32c], al
jne 0x1004b025
comiss xmm1, dword [esi + 0x220]
jbe 0x1004b025
mov ecx, dword [esi + 0x248]
mov byte [esi + 0x32c], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x324], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x328], eax
mov ecx, dword [esi + 0xd0]
test ecx, ecx
je 0x1004af5a
mov eax, dword [0x10104944]
mov dword [esi + 0xcc], 0
mov dword [esi + 0xc8], 0
test eax, eax
je 0x1004af47
dec dword [eax + 0xb0]
push ecx
call fcn.1009ac6c
add esp, 4
mov dword [esi + 0xd0], 0
mov ecx, dword [esi + 0x248]
call fcn.10062fe0
mov ecx, dword [esi + 0x16c]
test ecx, ecx
je 0x1004afa5
mov eax, dword [0x10104944]
mov dword [esi + 0x168], 0
mov dword [esi + 0x164], 0
test eax, eax
je 0x1004af92
dec dword [eax + 0xb0]
push ecx
call fcn.1009ac6c
add esp, 4
mov dword [esi + 0x16c], 0
mov ecx, dword [esi + 0x194]
test ecx, ecx
je 0x1004afe5
mov eax, dword [0x10104944]
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], 0
test eax, eax
je 0x1004afd2
dec dword [eax + 0xb0]
push ecx
call fcn.1009ac6c
add esp, 4
mov dword [esi + 0x194], 0
mov ecx, dword [esi + 0x1a0]
test ecx, ecx
je 0x1004b025
mov eax, dword [0x10104944]
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
test eax, eax
je 0x1004b012
dec dword [eax + 0xb0]
push ecx
call fcn.1009ac6c
add esp, 4
mov dword [esi + 0x1a0], 0
movss xmm1, dword [esp + 0x1c]
inc ebx
cmp ebx, dword [edi + 0x3de0]
jne 0x1004aea0
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp dword [edi + 0x49f0], ecx
jle 0x1004b197
xor edx, edx
xorps xmm1, xmm1
mov dword [esp + 0x28], edx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x49f8]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x1004b17c
movss xmm2, dword [esp + 0x1c]
comiss xmm2, xmm0
jbe 0x1004b17c
mov esi, dword [edi + 0x49d8]
mov ebx, dword [0x10104944]
add esi, edx
mov dword [esp + 0x30], ebx
mov dword [esi + 0x1a4], 0
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x1004b0da
mov dword [esi + 0x19c], 0
mov dword [esi + 0x198], 0
test ebx, ebx
je 0x1004b0c7
dec dword [ebx + 0xb0]
push eax
call fcn.1009ac6c
add esp, 4
mov dword [esi + 0x1a0], 0
mov byte [esi + 0x1cc], 1
mov ecx, dword [esi + 0x170]
test ecx, ecx
je 0x1004b121
mov eax, dword [0x10104944]
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
test eax, eax
je 0x1004b10e
dec dword [eax + 0xb0]
push ecx
call fcn.1009ac6c
add esp, 4
mov dword [esi + 0x170], 0
xor edx, edx
mov byte [esi + 0x1d6], 1
cmp dword [esi + 0x54], edx
jle 0x1004b14d
xor ecx, ecx
or ebx, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x68]
inc edx
mov word [ecx + eax - 0x18], bx
cmp edx, dword [esi + 0x54]
jl 0x1004b134
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
sub esi, dword [ebx + 0x49d8]
mov eax, 0x22b63cbf
imul esi
xorps xmm1, xmm1
mov eax, dword [ebx + 0x49f8]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [esp + 0x20]
inc ecx
add edx, 0x1d8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
cmp ecx, dword [edi + 0x49f0]
jl 0x1004b060
xor eax, eax
mov dword [esp + 0x28], eax
cmp dword [edi + 0x49c4], eax
jle 0x1004b1f5
xor esi, esi
xorps xmm1, xmm1
nop word [eax + eax]
mov ebx, dword [edi + 0x49cc]
movss xmm0, dword [esi + ebx + 4]
comiss xmm0, xmm1
jb 0x1004b1e5
movss xmm2, dword [esp + 0x1c]
comiss xmm2, xmm0
jbe 0x1004b1e5
lea ecx, [ebx + 0x10]
add ecx, esi
call fcn.10065a20
mov eax, dword [esp + 0x28]
xorps xmm1, xmm1
mov dword [esi + ebx + 4], 0xbf800000
inc eax
add esi, 0x68
mov dword [esp + 0x28], eax
cmp eax, dword [edi + 0x49c4]
jl 0x1004b1b0
cmp byte [edi + 0x3dd7], 0
je 0x1004b288
mov esi, dword [0x10104944]
mov eax, dword [esi + 0x475c]
test eax, eax
je 0x1004b243
mov dword [esi + 0x4758], 0
mov dword [esi + 0x4754], 0
test esi, esi
je 0x1004b230
dec dword [esi + 0xb0]
push eax
call fcn.1009ac6c
add esp, 4
mov dword [esi + 0x475c], 0
mov ecx, dword [esi + 0x4768]
test ecx, ecx
je 0x1004b283
mov eax, dword [0x10104944]
mov dword [esi + 0x4764], 0
mov dword [esi + 0x4760], 0
test eax, eax
je 0x1004b270
dec dword [eax + 0xb0]
push ecx
call fcn.1009ac6c
add esp, 4
mov dword [esi + 0x4768], 0
call fcn.10073470
mov eax, dword [edi + 0x4794]
mov byte [edi + 0x3dd7], 0
test eax, eax
je 0x1004b2f1
cmp byte [eax + 0x8f], 0
jne 0x1004b2f1
mov eax, dword [0x10104944]
mov edx, dword [eax + 0x3dec]
sub edx, 1
js 0x1004b2ea
mov eax, dword [eax + 0x3df4]
lea esi, [eax + edx*4]
nop dword [eax + eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x1004b2e2
cmp byte [ecx + 0x8f], 0
je 0x1004b2e2
mov eax, dword [ecx + 8]
and eax, 0x40200
cmp eax, 0x40200
jne 0x1004b456
sub esi, 4
sub edx, 1
jns 0x1004b2c0
xor ecx, ecx
call fcn.10052290
mov ecx, dword [edi + 0x3e08]
test ecx, ecx
jns 0x1004b317
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 + 0x3e04]
call fcn.1005b480
mov dword [edi + 0x3e04], 0
mov ecx, dword [edi + 0x477c]
test ecx, ecx
jns 0x1004b347
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 + 0x4778]
call fcn.1005b400
lea esi, [edi + 0x4754]
mov dword [edi + 0x4778], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1004b376
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.1005ae20
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x1004b38b
push 8
mov ecx, esi
call fcn.1005ae20
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x4760]
inc dword [esi]
call fcn.1005abf0
mov esi, dword [0x10104944]
cmp byte [esi + 0x5a71], 0
mov dword [esi + 0x5a74], 0
je 0x1004b578
mov ebx, dword [esi + 0x3e50]
xor edx, edx
push 1
mov ecx, 0x20e
mov dword [esp + 0x34], ebx
mov dword [esi + 0x4918], 7
call fcn.10053180
add esp, 4
test al, al
je 0x1004b3f3
mov byte [esi + 0x5a71], 0
mov eax, dword [esi + 0xdd4]
xorps xmm1, xmm1
mov dword [esp + 0x1c], eax
cmp eax, 0x3000
je 0x1004b476
movzx ecx, byte [esi + 0x5a72]
cmp byte [ecx + esi + 0xdc0], 0
je 0x1004b476
movss xmm0, dword [esi + ecx*4 + 0x3728]
comiss xmm1, xmm0
ja 0x1004b476
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1004b472
add ecx, 0x281
xor edx, edx
call fcn.10053aa0
test al, al
mov eax, dword [esp + 0x1c]
je 0x1004b476
test ebx, ebx
je 0x1004b476
mov dword [esi + 0x5a74], ebx
mov byte [esi + 0x5a71], dl
jmp 0x1004b476
mov eax, dword [ecx + 0x2f4]
test eax, eax
je 0x1004b469
cmp byte [eax + 0x8f], 0
jne 0x1004b46b
mov eax, ecx
mov ecx, eax
jmp 0x1004b2ec
mov eax, dword [esp + 0x1c]
mov ecx, 0x3728
xor ebx, ebx
mov dword [esp + 0x20], ecx
cmp eax, 0x3000
jne 0x1004b4ca
cmp byte [esi + ebx + 0xdc0], 0
je 0x1004b4ca
movss xmm0, dword [ecx + esi]
comiss xmm1, xmm0
ja 0x1004b4ca
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1004b4c6
lea ecx, [ebx + 0x281]
xor edx, edx
call fcn.10053aa0
mov ecx, dword [esp + 0x20]
test al, al
mov eax, dword [esp + 0x1c]
je 0x1004b4ca
mov byte [esi + 0x5a72], bl
jmp 0x1004b4ca
mov eax, dword [esp + 0x1c]
add ecx, 4
inc ebx
mov dword [esp + 0x20], ecx
cmp ecx, 0x3734
jl 0x1004b481
or dword [esi + 0x46c4], 0x40
xor ecx, ecx
mov dword [esi + 0x4718], 0x3f333333
call fcn.10054b20
mov ebx, dword [esp + 0x30]
push ebx
push 0x100ef774
call fcn.100810b0
push 0x100ef788
call fcn.100810b0
add esp, 0xc
mov dword [esp + 0x30], 0x100ef7a4
cmp dword [esp + 0x1c], 0x3000
mov dword [esp + 0x34], 0x100ef7ac
mov dword [esp + 0x38], 0x100ef7b4
jne 0x1004b53f
push 0x100ef7c0
call fcn.100810b0
add esp, 4
jmp 0x1004b56d
movzx eax, byte [esi + 0x5a72]
mov ecx, 0x3870
test ebx, ebx
push dword [esp + eax*4 + 0x30]
mov eax, 0x3860
cmove eax, ecx
add eax, dword [0x10104944]
push 0x100ef800
push eax
call fcn.100811a0
add esp, 0xc
call fcn.100520c0
mov esi, dword [0x10104944]
lea eax, [esi + 0x3e48]
lea ebx, [esi + 0x5a88]
mov dword [eax], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
inc eax
cmp dword [esi + 0x3dc8], eax
jne 0x1004b666
mov edx, dword [esi + 0x3e50]
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x1004b5b5
mov edx, dword [esi + 0x3e60]
mov dword [esp + 0x1c], edx
cmp dword [ebx + 8], edx
je 0x1004b5fa
lea eax, [ebx + 0xc]
mov dword [ebx + 8], edx
mov dword [ebx + 4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1004b5f4
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 + 0xc]
call fcn.1005b570
mov esi, dword [0x10104944]
lea eax, [ebx + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [eax], 0
test edx, edx
je 0x1004b666
mov eax, dword [ebx + 4]
test eax, eax
js 0x1004b638
mov ecx, eax
cmp eax, dword [ebx + 0xc]
jge 0x1004b64b
mov edx, dword [ebx + 0x14]
lea ecx, [eax + eax*8]
cmp byte [edx + ecx*8 + 5], 0
mov edx, dword [esp + 0x1c]
jne 0x1004b634
mov edi, dword [ebx + 0x14]
lea edx, [eax + eax*8]
mov ecx, eax
cmp byte [edi + edx*8 + 4], 2
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
jle 0x1004b64b
inc eax
mov dword [ebx + 4], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x1004b647
mov eax, dword [esp + 0x28]
mov dword [eax], edx
jmp 0x1004b666
test ecx, ecx
js 0x1004b666
cmp ecx, dword [ebx + 0xc]
jge 0x1004b666
mov eax, dword [ebx + 0x14]
lea ecx, [ecx + ecx*8]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + ecx*8]
mov dword [edx], eax
mov eax, dword [ebx + 0x14]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5a70]
test al, al
je 0x1004b684
sub al, 1
mov byte [edi + 0x5a70], al
jne 0x1004b684
mov dword [edi + 0x4670], 0
mov byte [edi + 0x3dd5], 1
xor edx, edx
or dword [esi + 0x46c4], 2
mov ecx, 0x100eed3c
push 0
mov dword [esi + 0x46e4], 0x43c80000
mov dword [esi + 0x46e8], 0x43c80000
mov dword [esi + 0x46cc], 4
call fcn.1004f910
xor esi, esi
add esp, 4
cmp dword [edi + 0x5a0c], esi
jle 0x1004b6f4
xor ebx, ebx
nop dword [eax]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
add eax, ebx
cmp dword [eax + 4], 1
jne 0x1004b6e8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a0c]
jl 0x1004b6d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret