Function at 0x10008ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [0x10040678]
push esi
push edi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x5f14]
sub eax, 1
mov dword [esp + 0x18], eax
js 0x10008b70
lea edi, [eax + eax*4]
shl edi, 2
nop dword [eax + eax]
mov ecx, dword [ebx + 0x5f1c]
cmp dword [ecx + edi + 4], 7
jne 0x10008b64
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 + 0x5f14]
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 [esp + 0x24]
add esp, 0xc
dec dword [ebx + 0x5f14]
dec eax
sub edi, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jns 0x10008b10
mov eax, dword [ebx + 0x5f14]
mov esi, dword [ebx + 0x5f1c]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10008b9d
cmp dword [esi + 4], 0
jne 0x10008b96
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10008b86
mov esi, dword [0x10040678]
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esp + 0x14], 6
mov dword [esp + 0x18], eax
cmp byte [esi + 0x5edc], 0
jne 0x10008c64
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10008c5d
push ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
call fcn.10004260
mov edi, eax
add esp, 8
test edi, edi
je 0x10008c5d
mov edx, dword [esp + 0xc]
test edx, edx
je 0x10008bf7
mov ecx, edi
call fcn.1001a050
mov ecx, dword [0x10040678]
test ecx, ecx
je 0x10008c55
movsx eax, word [ecx + 0x6008]
mov edx, dword [ecx + 0x3f58]
mov dword [esp + 0x20], edx
lea eax, [eax*8 + 0x600c]
add eax, ecx
cmp dword [eax], edx
je 0x10008c4b
movsx eax, word [ecx + 0x6008]
inc eax
cdq
idiv dword [esp + 0x14]
movzx eax, dx
mov edx, dword [esp + 0x20]
mov word [ecx + 0x6008], ax
cwde
lea eax, [eax*8 + 0x600c]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x6004]
push edi
call dword [esp + 0x1c]
add esp, 4
mov byte [esi + 0x5edc], 1
movss xmm0, dword [esi + 0x5ee0]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x10008cf1
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5ee0], xmm0
jb 0x10008cf1
mov edi, dword [esi + 0x20]
test edi, edi
je 0x10008ce0
mov eax, dword [0x10040678]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [eax + 0x5ee0], 0
call fcn.1001a2e0
mov edx, 0x100390f4
mov dword [esp + 0x20], eax
mov ecx, edi
call fcn.100040d0
mov edi, eax
test edi, edi
je 0x10008ce7
push edi
push dword [esp + 0x10]
push 1
push dword [esp + 0x2c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x10008ce7
mov byte [esi + 0xa2], 1
mov dword [esi + 0x5ee0], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f58]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f64], 1
mov word [ebx + 0x5e40], ax
mov dword [ebx + 0x3fdc], eax
addsd xmm0, qword [ebx + 0x3f50]
movsd qword [ebx + 0x3f50], xmm0
mov ecx, dword [ebx + 0x5e54]
test ecx, ecx
jns 0x10008d4b
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 + 0x5e50]
call fcn.1001bd80
mov dword [ebx + 0x5e50], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x612c]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x603c]
addss xmm0, dword [ebx + 0x6134]
movss dword [ebx + 0x6134], xmm0
movss dword [ebx + eax*4 + 0x603c], xmm1
mov eax, dword [ebx + 0x612c]
inc eax
movss xmm1, dword [ebx + 0x6134]
cdq
idiv ecx
mov eax, dword [ebx + 0x6130]
movss xmm0, dword [0x1003de74]
inc eax
cmp eax, ecx
mov dword [ebx + 0x612c], edx
movss dword [esp + 0xc], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x1003dd4c]
mov dword [ebx + 0x6130], ecx
jbe 0x10008de2
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x1003dddc]
divss xmm0, xmm1
movss dword [ebx + 0xa8], xmm0
mov ecx, dword [ebx + 0x3f90]
test ecx, ecx
jns 0x10008e10
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 + 0x3f8c]
call fcn.1001c630
mov dword [ebx + 0x3f8c], 0
mov cl, byte [ebx + 0x47]
call fcn.10013c20
mov esi, dword [0x10040678]
mov eax, dword [esi + 0x4ab4]
mov edx, dword [eax]
mov dword [edx + 4], 5
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov edi, dword [esi + 0x4ab4]
mov eax, dword [esi + 0x4aac]
lea eax, [edi + eax*4]
cmp edi, eax
je 0x10008f3e
mov ebx, eax
nop word [eax + eax]
mov edx, dword [edi]
add edi, 4
mov eax, dword [edx + 0x9c]
mov ecx, dword [edx + 0xa0]
mov dword [edx + 0x8c], eax
mov eax, dword [edx + 0xa4]
mov dword [edx + 0x90], ecx
mov ecx, dword [edx + 0xa8]
mov dword [edx + 0x94], eax
mov dword [edx + 0x98], ecx
mov dword [edx + 0xa4], 0
mov dword [edx + 0xa8], 0
mov dword [edx + 0x9c], 0
mov dword [edx + 0xa0], 0
movss xmm0, dword [edx + 0x90]
movss xmm2, dword [edx + 0x8c]
movaps xmm1, xmm2
addss xmm0, dword [edx + 0xc]
addss xmm1, dword [edx + 8]
movss dword [edx + 0x1c], xmm0
movss xmm0, dword [edx + 0x10]
movss dword [edx + 0x18], xmm1
subss xmm0, xmm2
xorps xmm2, xmm2
xorps xmm1, xmm1
addss xmm0, dword [edx + 0x94]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x14]
subss xmm0, dword [edx + 0x90]
addss xmm0, dword [edx + 0x98]
movss dword [edx + 0x20], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x24], xmm1
cmp edi, ebx
jne 0x10008e70
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
call fcn.100088b0
mov edi, dword [esi + 0x38]
test edi, edi
jne 0x10008f59
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x44]
mov edi, dword [eax]
movss xmm1, dword [esi + 0x30]
movss xmm0, dword [0x1003dddc]
mov ecx, dword [esi + 0x3fec]
mov dword [esi + 0x3d34], edi
mulss xmm1, dword [edi + 0x10]
mulss xmm1, dword [edi + 0x4c]
maxss xmm0, xmm1
movss dword [esi + 0x3d3c], xmm0
test ecx, ecx
je 0x10008fb2
mov eax, dword [ecx]
movss xmm1, dword [ecx + 0x270]
mulss xmm1, dword [eax + 0x3d3c]
mov eax, dword [ecx + 0x30c]
test eax, eax
je 0x10008fb5
mulss xmm1, dword [eax + 0x270]
jmp 0x10008fb5
xorps xmm1, xmm1
movss dword [esi + 0x3d38], xmm1
movaps xmm0, xmm1
divss xmm0, dword [edi + 0x10]
movss dword [esi + 0x3d40], xmm0
mov edx, dword [edi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [esi + 0x3d48], eax
lea eax, [edx + 0x60]
mov dword [esi + 0x3d4c], ecx
mov dword [esi + 0x3f48], eax
mov dword [esi + 0x3d50], edi
movss dword [esi + 0x3d54], xmm1
movss dword [esi + 0x3d58], xmm0
mov ecx, dword [ebx + 0x4ab4]
mov eax, dword [ebx + 0x4aac]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x10009021
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x40], 0
cmp ecx, edx
jne 0x10009014
cmp byte [ebx + 0x4cb4], 0
je 0x10009055
mov eax, dword [ebx + 0x4ccc]
cmp eax, dword [ebx + 0x4040]
jne 0x10009055
cmp dword [esi + 0x4040], eax
jne 0x10009046
mov dword [esi + 0x4044], eax
cmp dword [esi + 0x4068], eax
jne 0x10009055
mov byte [esi + 0x406c], 1
cmp dword [ebx + 0x4030], 0
jne 0x1000906a
mov dword [ebx + 0x4034], 0
jmp 0x1000907c
mov eax, dword [ebx + 0x402c]
test eax, eax
je 0x10009086
cmp dword [ebx + 0x4040], eax
jne 0x10009086
mov dword [ebx + 0x4038], 0
mov eax, dword [ebx + 0x402c]
test eax, eax
je 0x100090c0
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x4034]
movss dword [ebx + 0x4034], xmm0
cmp dword [ebx + 0x4040], eax
je 0x100090c0
addss xmm1, dword [ebx + 0x4038]
movss dword [ebx + 0x4038], xmm1
mov dword [ebx + 0x4030], eax
mov eax, dword [ebx + 0x4040]
mov dword [ebx + 0x402c], 0
mov word [ebx + 0x403c], 0
test eax, eax
je 0x10009112
cmp dword [ebx + 0x4044], eax
je 0x10009112
cmp dword [ebx + 0x4068], eax
jne 0x10009112
test byte [ebx + 0x5f7c], 1
je 0x10009109
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.1001ac60
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.10007980
mov ecx, dword [ebx + 0x4040]
test ecx, ecx
je 0x10009131
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4048]
movss dword [ebx + 0x4048], xmm0
mov eax, dword [ebx + 0x4060]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4078]
mov dword [ebx + 0x4070], eax
mov al, byte [ebx + 0x4050]
mov byte [ebx + 0x406d], al
mov eax, dword [ebx + 0x5da0]
movss dword [ebx + 0x4078], xmm0
mov dword [ebx + 0x4068], ecx
mov dword [ebx + 0x4044], 0
mov byte [ebx + 0x4051], 0
mov byte [ebx + 0x406c], 0
mov byte [ebx + 0x404c], 0
test eax, eax
je 0x1000919b
cmp ecx, eax
je 0x1000919b
mov dword [ebx + 0x5da0], 0
test ecx, ecx
jne 0x100091ab
mov dword [ebx + 0x4930], ecx
mov byte [ebx + 0x4934], cl
mov ecx, dword [ebx + 0x4e84]
test ecx, ecx
je 0x100091ce
movss xmm0, dword [ebx + 0x4ea0]
comiss xmm0, dword [ebx + 0x3d20]
jb 0x100091d8
mov dword [ebx + 0x4e94], ecx
jmp 0x100091d8
mov dword [ebx + 0x4e94], 0
mov eax, dword [ebx + 0x3ff0]
test eax, eax
je 0x100091fe
movss xmm0, dword [ebx + 0x4ea0]
comiss xmm0, dword [ebx + 0x3d20]
jb 0x10009208
mov eax, dword [eax + 8]
mov dword [ebx + 0x4e98], eax
jmp 0x10009208
mov dword [ebx + 0x4e98], 0
movss xmm0, dword [ebx + 0x4e8c]
mov dword [ebx + 0x4e88], ecx
test ecx, ecx
je 0x10009233
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4e84], 0
movss dword [ebx + 0x4e8c], xmm0
jmp 0x10009273
comiss xmm0, dword [0x1003dd4c]
jbe 0x1000927d
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x1003dd84]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4e90]
addss xmm1, xmm1
movss dword [ebx + 0x4e90], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x1000927d
mov dword [ebx + 0x4e8c], 0
mov dword [ebx + 0x4e90], 0
mov eax, dword [ebx + 0x4d28]
mov dword [ebx + 0x4d2c], eax
mov dword [ebx + 0x4d28], 0
mov dword [ebx + 0x4d24], 0x7f7fffff
mov word [ebx + 0x4cb5], 0
mov dword [ebx + 0x4d34], 0
call fcn.100128a0
call fcn.10016aa0
call fcn.10012df0
call fcn.10008620
mov esi, dword [0x10040678]
mov ecx, dword [esi + 0x3ffc]
test ecx, ecx
je 0x1000937f
mov eax, dword [esi + 0x4040]
mov dword [esi + 0x4044], eax
cmp dword [esi + 0x4068], eax
jne 0x100092f3
mov byte [esi + 0x406c], 1
cmp byte [esi + 0xd0], 0
mov edi, dword [ecx + 0x314]
je 0x10009373
lea eax, [esi + 0xc8]
mov ecx, eax
test eax, eax
jne 0x10009314
lea ecx, [esi + 0xc8]
movss xmm0, dword [ecx]
movss xmm1, dword [0x1003de8c]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x10009373
comiss xmm2, xmm1
jb 0x10009373
movss xmm0, dword [eax]
lea edx, [esp + 0x28]
subss xmm0, dword [esi + 0x4058]
push 1
mov ecx, edi
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x405c]
movss dword [esp + 0x30], xmm0
call fcn.10011880
mov ecx, dword [esi + 0x3ffc]
add esp, 4
xor edx, edx
call fcn.100113e0
jmp 0x100093bb
mov dword [esi + 0x3ffc], 0
jmp 0x100093b2
mov ecx, dword [esi + 0x4060]
test ecx, ecx
je 0x100093bb
mov eax, dword [esi + 0x4040]
cmp dword [ecx + 0x7c], eax
jne 0x100093bb
mov dword [esi + 0x4044], eax
cmp dword [esi + 0x4068], eax
jne 0x100093a9
mov byte [esi + 0x406c], 1
cmp byte [esi + 0xd0], 0
jne 0x100093bb
xor edx, edx
xor ecx, ecx
call fcn.10007980
mov eax, dword [0x10040678]
movss xmm2, dword [0x1003de10]
mov edx, dword [eax + 0x4a88]
sub edx, 1
js 0x100093f9
mov eax, dword [eax + 0x4a90]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x100093f1
test dword [ecx + 0xc], 0x8000000
jne 0x10009413
sub eax, 0x28
sub edx, 1
jns 0x100093e2
cmp dword [ebx + 0x4c84], 0
je 0x1000942e
movss xmm0, dword [ebx + 0x4c94]
comiss xmm0, dword [0x1003dd4c]
jbe 0x1000942e
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4cb0]
minss xmm1, dword [0x1003dddc]
jmp 0x1000944f
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x1003de1c]
movss xmm1, dword [ebx + 0x4cb0]
subss xmm1, xmm0
maxss xmm1, dword [0x1003dd4c]
movss dword [ebx + 0x4cb0], xmm1
movups xmm0, xmmword [ebx + 0x5ebc]
mov dword [ebx + 0x4e9c], 0
mov dword [ebx + 0x6140], 0xffffffff
mov dword [ebx + 0x613c], 0xffffffff
mov dword [ebx + 0x6138], 0xffffffff
movups xmmword [ebx + 0x5ecc], xmm0
mov byte [ebx + 0x5ebc], 0
call fcn.100131e0
cmp byte [ebx + 0x3f67], 0
jne 0x100094c7
movss xmm1, dword [ebx + 0x50]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x100094c7
movsd xmm0, qword [ebx + 0x3f50]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [esp + 0xc], xmm0
jmp 0x100094cd
movss xmm0, dword [esp + 0xc]
mov edi, dword [ebx + 0x3fa8]
mov eax, dword [ebx + 0x3fa0]
lea eax, [edi + eax*4]
mov dword [esp + 0x20], eax
cmp edi, eax
je 0x100095a3
mov ebx, eax
nop word [eax + eax]
mov esi, dword [edi]
mov ax, word [esi + 0xc8]
mov cl, byte [esi + 0xba]
mov word [esi + 0xca], ax
xor eax, eax
mov byte [esi + 0xbb], cl
mov byte [esi + 0xba], 0
mov byte [esi + 0xbc], 0
mov word [esi + 0xc8], ax
test cl, cl
jne 0x1000958e
cmp byte [esi + 0x370], al
jne 0x1000958e
comiss xmm0, dword [esi + 0x250]
jbe 0x1000958e
mov ecx, dword [esi + 0x278]
mov byte [esi + 0x370], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x368], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0xf4]
mov dword [esi + 0x36c], eax
call fcn.10001010
mov ecx, dword [esi + 0x278]
call fcn.100252f0
lea ecx, [esi + 0x190]
call fcn.10001010
lea ecx, [esi + 0x1bc]
call fcn.10001010
lea ecx, [esi + 0x1c8]
call fcn.10001010
movss xmm0, dword [esp + 0xc]
add edi, 4
cmp edi, ebx
jne 0x100094f0
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [ebx + 0x4d9c], ecx
jle 0x10009705
xor edx, edx
xorps xmm1, xmm1
mov dword [esp + 0x20], edx
nop
mov eax, dword [ebx + 0x4da4]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x100096ea
movss xmm2, dword [esp + 0xc]
comiss xmm2, xmm0
jbe 0x100096ea
mov esi, dword [ebx + 0x4d84]
mov edi, dword [0x10040678]
add esi, edx
mov dword [esp + 0x28], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x1000968b
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x10009679
movsx eax, word [edi + 0x6008]
mov edx, dword [edi + 0x3f58]
mov dword [esp + 0x24], edx
lea eax, [eax*8 + 0x600c]
add eax, edi
cmp dword [eax], edx
je 0x1000966f
movsx eax, word [edi + 0x6008]
inc eax
cdq
idiv dword [esp + 0x14]
movzx eax, dx
mov edx, dword [esp + 0x24]
mov word [edi + 0x6008], ax
cwde
lea eax, [eax*8 + 0x600c]
add eax, edi
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x6004]
push ecx
call dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x1a4], 0
lea ecx, [esi + 0x15c]
mov byte [esi + 0x1ed], 1
call fcn.10001010
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x100096c9
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [eax + ecx - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x100096b0
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
sub esi, dword [edi + 0x4d84]
xorps xmm1, xmm1
mov eax, dword [edi + 0x4da4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
inc ecx
add edx, 0x200
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
cmp ecx, dword [ebx + 0x4d9c]
jl 0x100095c0
mov eax, dword [ebx + 0x4d70]
mov ecx, eax
mov esi, dword [ebx + 0x4d78]
shl ecx, 4
sub ecx, eax
lea edi, [esi + ecx*8]
cmp esi, edi
je 0x10009750
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x10009749
movss xmm2, dword [esp + 0xc]
comiss xmm2, xmm0
jbe 0x10009749
lea ecx, [esi + 0x20]
call fcn.10027ac0
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x78
cmp esi, edi
jne 0x10009722
cmp byte [ebx + 0x3f67], 0
je 0x1000981a
mov esi, dword [0x10040678]
lea ecx, [esi + 0x4a70]
call fcn.10001010
mov edi, dword [esi + 0x4a84]
test edi, edi
je 0x10009800
mov ecx, dword [0x10040678]
mov dword [esi + 0x4a80], 0
mov dword [esi + 0x4a7c], 0
test ecx, ecx
je 0x100097ee
movsx eax, word [ecx + 0x6008]
mov edx, dword [ecx + 0x3f58]
mov dword [esp + 0x28], edx
lea eax, [eax*8 + 0x600c]
add eax, ecx
cmp dword [eax], edx
je 0x100097e4
movsx eax, word [ecx + 0x6008]
inc eax
cdq
idiv dword [esp + 0x14]
movzx eax, dx
mov edx, dword [esp + 0x28]
mov word [ecx + 0x6008], ax
cwde
lea eax, [eax*8 + 0x600c]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x6004]
push edi
call dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x4a84], 0
lea ecx, [esi + 0x4e58]
mov dword [esi + 0x4e54], 0
call fcn.1001b5c0
call fcn.1002fb90
mov eax, dword [ebx + 0x4ab8]
mov byte [ebx + 0x3f67], 0
test eax, eax
je 0x10009882
cmp byte [eax + 0xbb], 0
jne 0x10009882
mov eax, dword [0x10040678]
mov edx, dword [eax + 0x3fac]
sub edx, 1
js 0x10009876
mov eax, dword [eax + 0x3fb4]
lea esi, [eax + edx*4]
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x1000986e
cmp byte [ecx + 0xbb], 0
je 0x1000986e
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x10009878
sub esi, 4
sub edx, 1
jns 0x10009850
xor ecx, ecx
mov edx, 1
call fcn.100113e0
mov ecx, dword [ebx + 0x3fc8]
test ecx, ecx
jns 0x100098a8
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 + 0x3fc4]
call fcn.1001c570
mov dword [ebx + 0x3fc4], 0
mov ecx, dword [ebx + 0x4a98]
test ecx, ecx
jns 0x100098d8
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 + 0x4a94]
call fcn.1001c3d0
lea esi, [ebx + 0x4a70]
mov dword [ebx + 0x4a94], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10009907
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.1001bd80
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x1000991c
push 8
mov ecx, esi
call fcn.1001bd80
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], 0x10
inc dword [esi]
mov ecx, dword [esi]
mov eax, dword [ebx + 0x4a78]
push ecx
mov eax, dword [eax + ecx*4 - 4]
lea ecx, [ebx + 0x4a7c]
mov dword [ebx + 0x4940], eax
call fcn.1001ba50
call fcn.1001b000
mov edx, dword [0x10040678]
mov esi, edx
mov dword [esi + 0x4028], 0
mov eax, dword [esi + 0x5fe0]
inc eax
cmp dword [esi + 0x3f58], eax
jne 0x10009a5f
mov edi, dword [esi + 0x4030]
test edi, edi
jne 0x10009982
mov edi, dword [esi + 0x4040]
cmp dword [esi + 0x5fe8], edi
je 0x100099d5
lea eax, [esi + 0x5fec]
mov dword [esi + 0x5fe8], edi
mov dword [esi + 0x5fe4], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x100099cf
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 + 0x5fec]
call fcn.1001c710
mov edx, dword [0x10040678]
lea eax, [esi + 0x5fec]
mov dword [eax], 0
test edi, edi
je 0x10009a5f
mov eax, dword [esi + 0x5fe4]
test eax, eax
js 0x10009a28
mov ecx, eax
cmp eax, dword [esi + 0x5fec]
jge 0x10009a3b
mov ebx, dword [esi + 0x5ff4]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [esp + 0x10]
jne 0x10009a21
mov edx, dword [esi + 0x5ff4]
lea ebx, [eax + eax*8]
mov ecx, eax
cmp byte [edx + ebx*8 + 4], 2
mov ebx, dword [esp + 0x10]
mov edx, dword [0x10040678]
jle 0x10009a3b
inc eax
mov dword [esi + 0x5fe4], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x10009a37
mov dword [esi + 0x4028], edi
jmp 0x10009a5f
test ecx, ecx
js 0x10009a5f
cmp ecx, dword [esi + 0x5fec]
jge 0x10009a5f
mov eax, dword [esi + 0x5ff4]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x4028], eax
mov eax, dword [esi + 0x5ff4]
inc byte [eax + ecx*8 + 4]
movss xmm1, dword [edx + 0x5fb0]
xorps xmm0, xmm0
comiss xmm0, xmm1
jae 0x10009b23
mov ecx, dword [edx + 0x4a3c]
mulss xmm1, dword [0x1003de10]
shl ecx, 4
cvtps2pd xmm0, xmm1
lea eax, [ecx + 0x39a8]
add eax, edx
lea esi, [ecx + edx]
push eax
lea edi, [ecx + edx]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x1003dda4]
lea edx, [esi + 0x39a4]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x39a0]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.10004500
mov edx, dword [0x10040678]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edx + 0x4a3c]
add eax, eax
mov dword [edx + eax*8 + 0x39ac], 0x3f800000
movss xmm0, dword [edx + 0x5fb0]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x5fb0], xmm0
jb 0x10009b23
mov eax, dword [edx + 0x4a3c]
cmp eax, 0x38
je 0x10009b19
movups xmm0, xmmword [edx + 0x5fb4]
add eax, 0x39a
add eax, eax
movups xmmword [edx + eax*8], xmm0
mov dword [edx + 0x4a3c], 0x38
mov al, byte [ebx + 0x5fa1]
test al, al
je 0x10009b48
sub al, 1
mov byte [ebx + 0x5fa1], al
jne 0x10009b48
mov dword [ebx + 0x4944], 0
mov byte [ebx + 0x5fa2], 0
mov al, byte [ebx + 0x5fa0]
test al, al
je 0x10009b81
sub al, 1
mov byte [ebx + 0x5fa0], al
jne 0x10009b81
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.1001ac60
mov eax, dword [ebx + 0x5f9c]
add esp, 4
not eax
mov dword [ebx + 0x5f9c], 0
and dword [ebx + 0x5f7c], eax
mov eax, dword [0x10040678]
xor edx, edx
mov byte [ebx + 0x3f65], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x49d0], 2
mov dword [eax + 0x49f0], 0x43c80000
mov dword [eax + 0x49f4], 0x43c80000
mov dword [eax + 0x49d8], 4
call fcn.1000e4a0
add esp, 4
cmp byte [ebx + 0x6a], 0
je 0x10009bfe
mov cl, byte [ebx + 0x5fa8]
cmp cl, 0xff
jne 0x10009bd8
xor edx, edx
jmp 0x10009c01
mov eax, dword [ebx + 0x3f58]
and eax, 0x80000003
jns 0x10009bea
dec eax
or eax, 0xfffffffc
inc eax
neg eax
movsx ecx, cl
sbb eax, eax
inc eax
add eax, ecx
mov ecx, 0xa
cdq
idiv ecx
jmp 0x10009c01
or dl, 0xff
mov byte [ebx + 0x5fa8], dl
mov eax, dword [ebx + 0x5f14]
mov esi, dword [ebx + 0x5f1c]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x10009c37
nop dword [eax]
cmp dword [esi + 4], 1
jne 0x10009c30
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x10009c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret