Function at 0x10009490
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 [0x1010ec9c]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 0x5d90]
sub eax, 1
mov dword [esp + 0x28], eax
js 0x10009520
lea ebx, [eax + eax*4]
shl ebx, 2
nop dword [eax + eax]
mov ecx, dword [edi + 0x5d98]
cmp dword [ecx + ebx + 4], 7
jne 0x10009514
mov esi, ecx
mov eax, 0x66666667
sub ecx, esi
add ecx, ebx
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 + 0x5d90]
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 + 0x34]
add esp, 0xc
dec dword [edi + 0x5d90]
dec eax
sub ebx, 0x14
mov dword [esp + 0x28], eax
test eax, eax
jns 0x100094c0
mov eax, dword [edi + 0x5d90]
mov esi, dword [edi + 0x5d98]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x1000954d
cmp dword [esi + 4], 0
jne 0x10009546
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x10009536
mov esi, dword [0x1010ec9c]
cmp byte [esi + 0x4a], 0
je 0x10009563
test byte [esi + 0xc], 2
jne 0x10009563
mov byte [esi + 0x4a], 0
cmp byte [esi + 0x5d58], 0
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esp + 0x24], 6
mov dword [esp + 0x28], eax
jne 0x10009624
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1000961d
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
call fcn.100061a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1000961d
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x100095b7
mov ecx, ebx
call fcn.1001a860
mov ecx, dword [0x1010ec9c]
test ecx, ecx
je 0x10009615
movsx eax, word [ecx + 0x5e58]
mov edx, dword [ecx + 0x3f28]
mov dword [esp + 0x30], edx
lea eax, [eax*8 + 0x5e5c]
add eax, ecx
cmp dword [eax], edx
je 0x1000960b
movsx eax, word [ecx + 0x5e58]
inc eax
cdq
idiv dword [esp + 0x24]
movzx eax, dx
mov edx, dword [esp + 0x30]
mov word [ecx + 0x5e58], ax
cwde
lea eax, [eax*8 + 0x5e5c]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5e54]
push ebx
call dword [esp + 0x2c]
add esp, 4
mov byte [esi + 0x5d58], 1
movss xmm0, dword [esi + 0x5d5c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x100096b1
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5d5c], xmm0
jb 0x100096b1
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x100096a0
mov eax, dword [0x1010ec9c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [eax + 0x5d5c], 0
call fcn.1001aa80
mov edx, 0x100583f4
mov dword [esp + 0x30], eax
mov ecx, ebx
call fcn.10006100
mov ebx, eax
test ebx, ebx
je 0x100096a7
push ebx
push dword [esp + 0x20]
push 1
push dword [esp + 0x3c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x100096a7
mov byte [esi + 0x92], 1
mov dword [esi + 0x5d5c], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3f28]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3f34], 1
mov word [edi + 0x5cbc], ax
mov dword [edi + 0x3f9c], eax
addsd xmm0, qword [edi + 0x3f20]
movsd qword [edi + 0x3f20], xmm0
mov ecx, dword [edi + 0x5cd0]
test ecx, ecx
jns 0x1000970b
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 + 0x5ccc]
call fcn.1001c260
mov dword [edi + 0x5ccc], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x5f7c]
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x1005d9a4]
subss xmm0, dword [edi + eax*4 + 0x5e8c]
addss xmm0, dword [edi + 0x5f84]
movss dword [edi + 0x5f84], xmm0
movss dword [edi + eax*4 + 0x5e8c], xmm1
mov eax, dword [edi + 0x5f7c]
inc eax
movss xmm1, dword [edi + 0x5f84]
cdq
idiv ecx
mov eax, dword [edi + 0x5f80]
movss xmm0, dword [0x1005daf4]
inc eax
cmp eax, ecx
mov dword [edi + 0x5f7c], edx
movss dword [esp + 0x1c], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x1005d8f0]
mov dword [edi + 0x5f80], ecx
jbe 0x100097a5
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
movss dword [edi + 0x98], xmm0
mov ecx, dword [edi + 0x3f50]
test ecx, ecx
jns 0x100097d3
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 + 0x3f4c]
call fcn.1001c970
mov dword [edi + 0x3f4c], 0
mov cl, byte [edi + 0x46]
call fcn.10013a60
mov ebx, dword [0x1010ec9c]
xorps xmm3, xmm3
mov dword [esp + 0x2c], ebx
mov eax, dword [ebx + 0x4a0c]
mov edx, dword [eax]
mov dword [edx], 5
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
mov esi, dword [ebx + 0x4a0c]
mov eax, dword [ebx + 0x4a04]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x10009901
mov edi, eax
mov edx, dword [esi]
add esi, 4
mov eax, dword [edx + 0x94]
mov ecx, dword [edx + 0x98]
movss xmm0, dword [edx + 8]
mov dword [edx + 0x84], eax
mov eax, dword [edx + 0x9c]
mov dword [edx + 0x88], ecx
mov ecx, dword [edx + 0xa0]
mov dword [edx + 0x8c], eax
mov dword [edx + 0x90], ecx
mov dword [edx + 0x9c], 0
mov dword [edx + 0xa0], 0
mov dword [edx + 0x94], 0
mov dword [edx + 0x98], 0
movss xmm2, dword [edx + 0x84]
movaps xmm1, xmm2
addss xmm0, dword [edx + 0x88]
addss xmm1, dword [edx + 4]
movss dword [edx + 0x18], xmm0
movss xmm0, dword [edx + 0xc]
movss dword [edx + 0x14], xmm1
subss xmm0, xmm2
movaps xmm2, xmm3
movaps xmm1, xmm3
addss xmm0, dword [edx + 0x8c]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x10]
subss xmm0, dword [edx + 0x88]
addss xmm0, dword [edx + 0x90]
movss dword [edx + 0x1c], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x20], xmm1
cmp esi, edi
jne 0x10009833
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x2c]
mov byte [eax + 0x10], 1
mov esi, dword [ebx + 0x38]
test esi, esi
jne 0x10009917
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm2, dword [0x1005d9a4]
mov ecx, dword [ebx + 0x3fa8]
movaps xmm0, xmm2
mov dword [ebx + 0x3d10], esi
movss xmm1, dword [esi + 0x10]
mulss xmm1, dword [ebx + 0x30]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [ebx + 0x3d18], xmm0
test ecx, ecx
je 0x10009973
mov eax, dword [ecx]
movss xmm0, dword [ecx + 0x264]
mulss xmm0, dword [eax + 0x3d18]
mov eax, dword [ecx + 0x300]
test eax, eax
je 0x10009976
mulss xmm0, dword [eax + 0x264]
jmp 0x10009976
movaps xmm0, xmm3
movss xmm7, dword [esp + 0x1c]
movss xmm5, dword [0x1005db38]
movaps xmm6, xmm7
movss dword [ebx + 0x3d14], xmm0
movaps xmm4, xmm5
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [ebx + 0x3d1c], eax
lea eax, [edx + 0x60]
mov dword [ebx + 0x3d20], ecx
mov dword [ebx + 0x3f18], eax
mov dword [ebx + 0x3d24], esi
movss dword [ebx + 0x3d28], xmm0
mov ecx, dword [edi + 0x4a0c]
mov eax, dword [edi + 0x4a04]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x10009a1c
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 0x100099f5
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x100099fd
movaps xmm6, xmm2
comiss xmm0, xmm5
jbe 0x10009a05
movaps xmm5, xmm0
comiss xmm1, xmm4
jbe 0x10009a0d
movaps xmm4, xmm1
add ecx, 4
cmp ecx, edx
jne 0x100099d1
movss xmm2, dword [0x1005d9a4]
movss dword [edi + 0x3d34], xmm7
movss dword [edi + 0x3d38], xmm6
movss dword [edi + 0x3d3c], xmm5
movss dword [edi + 0x3d40], xmm4
mov eax, dword [edi + 0x3984]
movss xmm1, dword [edi + 0x3988]
mov dword [edi + 0x3d2c], eax
movss xmm0, dword [edi + 0x3d30]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x10009b4f
movss dword [edi + 0x3d30], xmm1
xor esi, esi
mov ebx, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x10009afc
movss xmm1, dword [edi + 0x3d30]
minss xmm1, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x1005d9f0]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x10009af2
mov eax, 4
jmp 0x10009b01
cmp eax, 0x200
cmovg eax, ebx
jmp 0x10009b01
mov eax, 0x30
movss xmm2, dword [0x1005d9a4]
mov byte [esi + edi + 0x3ed8], al
inc esi
cmp esi, 0x40
jl 0x10009a74
movsd xmm0, qword [0x1005d9b0]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x1005d9a4]
cvtsd2ss xmm0, xmm0
mov ebx, dword [esp + 0x2c]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3d30]
divss xmm0, xmm1
movss dword [edi + 0x3ed4], xmm0
xor edx, edx
mov dword [edi + 0x3d44], 0
cmp byte [edi + 0x3980], dl
je 0x10009b72
mov dword [edi + 0x3d44], 1
mov edx, 1
cmp byte [edi + 0x3981], 0
mov ecx, edx
je 0x10009b94
mov eax, dword [edi + 0x3d10]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x10009b94
or ecx, 2
mov dword [edi + 0x3d44], ecx
cmp byte [edi + 0x3982], 0
je 0x10009ba6
or ecx, 4
mov dword [edi + 0x3d44], ecx
test byte [edi + 0xc], 8
je 0x10009bb5
or ecx, 8
mov dword [edi + 0x3d44], ecx
mov ecx, dword [edi + 0x4a0c]
mov eax, dword [edi + 0x4a04]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x10009bdd
nop dword [eax + eax]
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x38], 0
cmp ecx, edx
jne 0x10009bd0
cmp byte [edi + 0x4bf4], 0
je 0x10009c11
mov eax, dword [edi + 0x4c0c]
cmp eax, dword [edi + 0x3ff8]
jne 0x10009c11
cmp dword [ebx + 0x3ff8], eax
jne 0x10009c02
mov dword [ebx + 0x3ffc], eax
cmp dword [ebx + 0x4020], eax
jne 0x10009c11
mov byte [ebx + 0x4024], 1
cmp dword [edi + 0x3fe8], 0
jne 0x10009c26
mov dword [edi + 0x3ff0], 0
jmp 0x10009c38
mov eax, dword [edi + 0x3fe4]
test eax, eax
je 0x10009c42
cmp dword [edi + 0x3ff8], eax
jne 0x10009c42
mov dword [edi + 0x3ff4], 0
mov eax, dword [edi + 0x3fe4]
test eax, eax
je 0x10009c7c
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3ff0]
movss dword [edi + 0x3ff0], xmm0
cmp dword [edi + 0x3ff8], eax
je 0x10009c7c
addss xmm1, dword [edi + 0x3ff4]
movss dword [edi + 0x3ff4], xmm1
mov dword [edi + 0x3fe8], eax
mov eax, dword [edi + 0x3ff8]
mov dword [edi + 0x3fe4], 0
mov word [edi + 0x3fec], 0
test eax, eax
je 0x10009cd4
cmp dword [edi + 0x3ffc], eax
je 0x10009cd4
cmp dword [edi + 0x4020], eax
jne 0x10009cd4
test byte [edi + 0x5df4], 1
je 0x10009cc5
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.1001b370
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.10008650
mov ebx, dword [0x1010ec9c]
mov esi, dword [edi + 0x3ff8]
test esi, esi
je 0x10009cf3
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x4000]
movss dword [edi + 0x4000], xmm0
mov eax, dword [edi + 0x4014]
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x4030]
mov dword [edi + 0x4028], eax
mov al, byte [edi + 0x4008]
mov byte [edi + 0x4025], al
mov eax, dword [edi + 0x5c2c]
movss dword [edi + 0x4030], xmm0
mov dword [edi + 0x4020], esi
mov dword [edi + 0x3ffc], 0
mov byte [edi + 0x4009], 0
mov byte [edi + 0x4024], 0
mov byte [edi + 0x4004], 0
test eax, eax
je 0x10009d5d
cmp esi, eax
je 0x10009d5d
mov dword [edi + 0x5c2c], 0
test esi, esi
jne 0x10009d7c
mov dword [edi + 0x48c0], esi
mov dword [edi + 0x48b8], esi
mov byte [edi + 0x48bc], 0
mov dword [edi + 0x48c0], esi
jmp 0x10009da1
mov eax, dword [edi + 0x48c0]
test eax, eax
je 0x10009da1
test al, 2
je 0x10009da1
mov edx, 0x20e
mov ecx, ebx
call fcn.10005180
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov ecx, dword [edi + 0x4d1c]
test ecx, ecx
je 0x10009dc4
movss xmm0, dword [edi + 0x4d38]
comiss xmm0, dword [edi + 0x3cfc]
jb 0x10009dce
mov dword [edi + 0x4d2c], ecx
jmp 0x10009dce
mov dword [edi + 0x4d2c], 0
mov eax, dword [edi + 0x3fac]
test eax, eax
je 0x10009df4
movss xmm0, dword [edi + 0x4d38]
comiss xmm0, dword [edi + 0x3cfc]
jb 0x10009dfe
mov eax, dword [eax + 8]
mov dword [edi + 0x4d30], eax
jmp 0x10009dfe
mov dword [edi + 0x4d30], 0
movss xmm0, dword [edi + 0x4d24]
mov dword [edi + 0x4d20], ecx
test ecx, ecx
je 0x10009e29
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4d1c], 0
movss dword [edi + 0x4d24], xmm0
jmp 0x10009e69
comiss xmm0, dword [0x1005d8f0]
jbe 0x10009e73
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x1005d950]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4d28]
addss xmm1, xmm1
movss dword [edi + 0x4d28], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x10009e73
mov dword [edi + 0x4d24], 0
mov dword [edi + 0x4d28], 0
mov eax, dword [edi + 0x4c58]
mov dword [edi + 0x4c5c], eax
mov dword [edi + 0x4c58], 0
mov dword [edi + 0x4c54], 0x7f7fffff
mov word [edi + 0x4bf5], 0
mov dword [edi + 0x4c64], 0
call fcn.10012800
call fcn.10017300
call fcn.10012ca0
call fcn.10009220
mov esi, dword [0x1010ec9c]
mov ecx, dword [esi + 0x3fb4]
test ecx, ecx
je 0x10009f75
mov eax, dword [esi + 0x3ff8]
mov dword [esi + 0x3ffc], eax
cmp dword [esi + 0x4020], eax
jne 0x10009ee9
mov byte [esi + 0x4024], 1
cmp byte [esi + 0xe08], 0
mov ebx, dword [ecx + 0x308]
je 0x10009f69
lea eax, [esi + 0xe00]
mov ecx, eax
test eax, eax
jne 0x10009f0a
lea ecx, [esi + 0xe00]
movss xmm0, dword [ecx]
movss xmm1, dword [0x1005db34]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x10009f69
comiss xmm2, xmm1
jb 0x10009f69
movss xmm0, dword [eax]
lea edx, [esp + 0x38]
subss xmm0, dword [esi + 0x400c]
push 1
mov ecx, ebx
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x4010]
movss dword [esp + 0x40], xmm0
call fcn.10011b00
mov ecx, dword [esi + 0x3fb4]
add esp, 4
xor edx, edx
call fcn.100115f0
jmp 0x10009fb1
mov dword [esi + 0x3fb4], 0
jmp 0x10009fa8
mov ecx, dword [esi + 0x4014]
test ecx, ecx
je 0x10009fb1
mov eax, dword [esi + 0x3ff8]
cmp dword [ecx + 0x74], eax
jne 0x10009fb1
mov dword [esi + 0x3ffc], eax
cmp dword [esi + 0x4020], eax
jne 0x10009f9f
mov byte [esi + 0x4024], 1
cmp byte [esi + 0xe08], 0
jne 0x10009fb1
xor edx, edx
xor ecx, ecx
call fcn.10008650
mov eax, dword [0x1010ec9c]
mov edx, dword [eax + 0x49dc]
sub edx, 1
js 0x10009fe7
mov eax, dword [eax + 0x49e4]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x10009fdf
test dword [ecx + 0xc], 0x8000000
jne 0x1000a001
sub eax, 0x28
sub edx, 1
jns 0x10009fd0
cmp dword [edi + 0x4bc8], 0
je 0x1000a020
movss xmm0, dword [edi + 0x4bd8]
comiss xmm0, dword [0x1005d8f0]
jbe 0x1000a020
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x1005da08]
addss xmm1, dword [edi + 0x4bf0]
minss xmm1, dword [0x1005d9a4]
jmp 0x1000a041
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x1005da1c]
movss xmm1, dword [edi + 0x4bf0]
subss xmm1, xmm0
maxss xmm1, dword [0x1005d8f0]
movss dword [edi + 0x4bf0], xmm1
movups xmm0, xmmword [edi + 0x5d38]
mov dword [edi + 0x4d34], 0
mov dword [edi + 0x5f90], 0xffffffff
mov dword [edi + 0x5f8c], 0xffffffff
mov dword [edi + 0x5f88], 0xffffffff
movups xmmword [edi + 0x5d48], xmm0
mov byte [edi + 0x5d38], 0
call fcn.10013050
cmp byte [edi + 0x3f37], 0
jne 0x1000a0b9
movss xmm0, dword [edi + 0x4c]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x1000a0b9
movsd xmm1, qword [edi + 0x3f20]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [esp + 0x1c], xmm1
jmp 0x1000a0bf
movss xmm1, dword [esp + 0x1c]
mov ebx, dword [edi + 0x3f68]
mov eax, dword [edi + 0x3f60]
lea eax, [ebx + eax*4]
mov dword [esp + 0x30], eax
cmp ebx, eax
je 0x1000a193
mov edi, eax
nop dword [eax]
mov esi, dword [ebx]
mov ax, word [esi + 0xbc]
mov cl, byte [esi + 0xae]
mov word [esi + 0xbe], ax
xor eax, eax
mov byte [esi + 0xaf], cl
mov byte [esi + 0xae], 0
mov byte [esi + 0xb0], 0
mov word [esi + 0xbc], ax
test cl, cl
jne 0x1000a17e
cmp byte [esi + 0x360], al
jne 0x1000a17e
comiss xmm1, dword [esi + 0x244]
jbe 0x1000a17e
mov ecx, dword [esi + 0x26c]
mov byte [esi + 0x360], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x358], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0xec]
mov dword [esi + 0x35c], eax
call fcn.10003320
mov ecx, dword [esi + 0x26c]
call fcn.10025190
lea ecx, [esi + 0x188]
call fcn.10003320
lea ecx, [esi + 0x1b0]
call fcn.10003320
lea ecx, [esi + 0x1bc]
call fcn.10003320
movss xmm1, dword [esp + 0x1c]
add ebx, 4
cmp ebx, edi
jne 0x1000a0e0
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp dword [edi + 0x4cc8], ecx
jle 0x1000a2f5
xor edx, edx
xorps xmm1, xmm1
mov dword [esp + 0x30], edx
nop
mov eax, dword [edi + 0x4cd0]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x1000a2da
movss xmm1, dword [esp + 0x1c]
comiss xmm1, xmm0
jbe 0x1000a2d7
mov esi, dword [edi + 0x4cb0]
mov ebx, dword [0x1010ec9c]
add esi, edx
mov dword [esp + 0x38], ebx
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x1000a27b
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test ebx, ebx
je 0x1000a269
movsx eax, word [ebx + 0x5e58]
mov edx, dword [ebx + 0x3f28]
mov dword [esp + 0x34], edx
lea eax, [eax*8 + 0x5e5c]
add eax, ebx
cmp dword [eax], edx
je 0x1000a25f
movsx eax, word [ebx + 0x5e58]
inc eax
cdq
idiv dword [esp + 0x24]
movzx eax, dx
mov edx, dword [esp + 0x34]
mov word [ebx + 0x5e58], ax
cwde
lea eax, [eax*8 + 0x5e5c]
add eax, ebx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ebx + 0x5e54]
push ecx
call dword [esp + 0x2c]
add esp, 4
mov dword [esi + 0x1a4], 0
lea ecx, [esi + 0x15c]
mov byte [esi + 0x1ed], 1
call fcn.10003320
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x1000a2b9
xor ecx, ecx
or ebx, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [ecx + eax - 0x20], bx
cmp edx, dword [esi + 0x40]
jl 0x1000a2a0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
sub esi, dword [ebx + 0x4cb0]
mov eax, dword [ebx + 0x4cd0]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
xorps xmm1, xmm1
inc ecx
add edx, 0x200
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
cmp ecx, dword [edi + 0x4cc8]
jl 0x1000a1b0
imul ebx, dword [edi + 0x4c9c], 0x6c
mov esi, dword [edi + 0x4ca4]
add ebx, esi
cmp esi, ebx
je 0x1000a33e
xorps xmm1, xmm1
nop dword [eax + eax]
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x1000a337
movss xmm1, dword [esp + 0x1c]
comiss xmm1, xmm0
jbe 0x1000a334
lea ecx, [esi + 0x14]
call fcn.10027e80
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x6c
cmp esi, ebx
jne 0x1000a310
cmp byte [edi + 0x3f37], 0
je 0x1000a3f3
mov esi, dword [0x1010ec9c]
lea ecx, [esi + 0x49c4]
call fcn.10003320
mov ebx, dword [esi + 0x49d8]
test ebx, ebx
je 0x1000a3ee
mov ecx, dword [0x1010ec9c]
mov dword [esi + 0x49d4], 0
mov dword [esi + 0x49d0], 0
test ecx, ecx
je 0x1000a3dc
movsx eax, word [ecx + 0x5e58]
mov edx, dword [ecx + 0x3f28]
mov dword [esp + 0x38], edx
lea eax, [eax*8 + 0x5e5c]
add eax, ecx
cmp dword [eax], edx
je 0x1000a3d2
movsx eax, word [ecx + 0x5e58]
inc eax
cdq
idiv dword [esp + 0x24]
movzx eax, dx
mov edx, dword [esp + 0x38]
mov word [ecx + 0x5e58], ax
cwde
lea eax, [eax*8 + 0x5e5c]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5e54]
push ebx
call dword [esp + 0x2c]
add esp, 4
mov dword [esi + 0x49d8], 0
call fcn.10030100
mov eax, dword [edi + 0x4a10]
mov byte [edi + 0x3f37], 0
test eax, eax
je 0x1000a458
cmp byte [eax + 0xaf], 0
jne 0x1000a458
mov eax, dword [0x1010ec9c]
mov edx, dword [eax + 0x3f6c]
sub edx, 1
js 0x1000a44c
mov eax, dword [eax + 0x3f74]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x1000a444
cmp byte [ecx + 0xaf], 0
je 0x1000a444
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x1000a44e
sub esi, 4
sub edx, 1
jns 0x1000a426
xor ecx, ecx
mov edx, 1
call fcn.100115f0
mov ecx, dword [edi + 0x3f88]
test ecx, ecx
jns 0x1000a47e
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 + 0x3f84]
call fcn.1001c8b0
mov dword [edi + 0x3f84], 0
mov ecx, dword [edi + 0x49ec]
test ecx, ecx
jns 0x1000a4ae
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 + 0x49e8]
call fcn.1001c7e0
lea esi, [edi + 0x49c4]
mov dword [edi + 0x49e8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1000a4dd
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.1001c260
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x1000a4f2
push 8
mov ecx, esi
call fcn.1001c260
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x49d0]
inc dword [esi]
call fcn.1001bf20
call fcn.1001b6e0
mov esi, dword [0x1010ec9c]
mov dword [esi + 0x3fe0], 0
mov eax, dword [esi + 0x5e30]
inc eax
cmp dword [esi + 0x3f28], eax
jne 0x1000a60f
mov ebx, dword [esi + 0x3fe8]
test ebx, ebx
jne 0x1000a545
mov ebx, dword [esi + 0x3ff8]
cmp dword [esi + 0x5e38], ebx
je 0x1000a592
lea eax, [esi + 0x5e3c]
mov dword [esi + 0x5e38], ebx
mov dword [esi + 0x5e34], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x1000a58c
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 + 0x5e3c]
call fcn.1001ca50
lea eax, [esi + 0x5e3c]
mov dword [eax], 0
test ebx, ebx
je 0x1000a60f
mov eax, dword [esi + 0x5e34]
test eax, eax
js 0x1000a5d8
mov ecx, eax
cmp eax, dword [esi + 0x5e3c]
jge 0x1000a5eb
mov ecx, dword [esi + 0x5e44]
lea edx, [eax + eax*8]
cmp byte [ecx + edx*8 + 5], 0
jne 0x1000a5d1
mov edi, dword [esi + 0x5e44]
mov ecx, eax
cmp byte [edi + edx*8 + 4], 2
mov edi, dword [esp + 0x20]
jle 0x1000a5eb
inc eax
mov dword [esi + 0x5e34], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x1000a5e7
mov dword [esi + 0x3fe0], ebx
jmp 0x1000a60f
test ecx, ecx
js 0x1000a60f
cmp ecx, dword [esi + 0x5e3c]
jge 0x1000a60f
mov eax, dword [esi + 0x5e44]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3fe0], eax
mov eax, dword [esi + 0x5e44]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5e15]
test al, al
je 0x1000a62d
sub al, 1
mov byte [edi + 0x5e15], al
jne 0x1000a62d
mov dword [edi + 0x48cc], 0
mov al, byte [edi + 0x5e14]
test al, al
je 0x1000a655
sub al, 1
mov byte [edi + 0x5e14], al
jne 0x1000a655
push str._Auto_disabled_ImGuiDebugLogFlags_EventClipper_to_avoid_spamming__n
call fcn.1001b370
add esp, 4
and dword [edi + 0x5df4], 0xffffffef
mov eax, dword [0x1010ec9c]
xor edx, edx
mov byte [edi + 0x3f35], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x492c], 2
mov dword [eax + 0x494c], 0x43c80000
mov dword [eax + 0x4950], 0x43c80000
mov dword [eax + 0x4934], 4
call fcn.1000eb10
add esp, 4
cmp byte [edi + 0x65], 0
je 0x1000a6d2
mov cl, byte [edi + 0x5e16]
cmp cl, 0xff
jne 0x1000a6ac
xor edx, edx
jmp 0x1000a6d5
mov eax, dword [edi + 0x3f28]
and eax, 0x80000003
jns 0x1000a6be
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 0x1000a6d5
or dl, 0xff
mov byte [edi + 0x5e16], dl
mov eax, dword [edi + 0x5d90]
mov esi, dword [edi + 0x5d98]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x1000a708
cmp dword [esi + 4], 1
jne 0x1000a701
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x1000a6f1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret