Function at 0x408210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [0x439440]
mov dword [ebp - 8], edi
mov eax, dword [edi + 0x5d88]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x40829e
lea ebx, [eax + eax*4]
shl ebx, 2
nop word [eax + eax]
mov ecx, dword [edi + 0x5d90]
cmp dword [ecx + ebx + 4], 7
jne 0x408293
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 + 0x5d88]
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 - 0x10]
add esp, 0xc
dec dword [edi + 0x5d88]
dec eax
sub ebx, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x408240
mov eax, dword [edi + 0x5d88]
mov esi, dword [edi + 0x5d90]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x4082cb
cmp dword [esi + 4], 0
jne 0x4082c4
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x4082b4
mov esi, dword [0x439440]
cmp byte [esi + 0x4a], 0
je 0x4082e1
test byte [esi + 0xc], 2
jne 0x4082e1
mov byte [esi + 0x4a], 0
cmp byte [esi + 0x5d50], 0
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0xc], 6
mov dword [ebp - 0x10], eax
jne 0x40839c
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x408395
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.00404a40
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408395
mov edx, dword [ebp - 4]
test edx, edx
je 0x408331
mov ecx, eax
call fcn.00417dc0
mov ecx, dword [0x439440]
test ecx, ecx
je 0x40838c
movsx eax, word [ecx + 0x5e50]
mov edx, dword [ecx + 0x3f08]
mov dword [ebp - 0x18], edx
lea eax, [eax*8 + 0x5e54]
add eax, ecx
cmp dword [eax], edx
je 0x408382
movsx eax, word [ecx + 0x5e50]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x18]
mov word [ecx + 0x5e50], ax
cwde
lea eax, [eax*8 + 0x5e54]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5e4c]
push dword [ebp - 0x14]
call dword [ebp - 0x10]
add esp, 4
mov byte [esi + 0x5d50], 1
movss xmm0, dword [esi + 0x5d54]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x408424
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5d54], xmm0
jb 0x408424
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x408413
mov eax, dword [0x439440]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5d54], 0
call fcn.00417fe0
mov edx, 0x432020
mov dword [ebp - 0x18], eax
mov ecx, ebx
call fcn.004049a0
mov ebx, eax
test ebx, ebx
je 0x40841a
push ebx
push dword [ebp - 4]
push 1
push dword [ebp - 0x18]
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 0x40841a
mov byte [esi + 0x92], 1
mov dword [esi + 0x5d54], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3f08]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3f14], 1
mov word [edi + 0x5cb4], ax
mov dword [edi + 0x3f7c], eax
addsd xmm0, qword [edi + 0x3f00]
movsd qword [edi + 0x3f00], xmm0
mov ecx, dword [edi + 0x5cc8]
test ecx, ecx
jns 0x40847e
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 + 0x5cc4]
call fcn.00419860
mov dword [edi + 0x5cc4], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x5f74]
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [edi + eax*4 + 0x5e84]
addss xmm0, dword [edi + 0x5f7c]
movss dword [edi + 0x5f7c], xmm0
movss dword [edi + eax*4 + 0x5e84], xmm1
mov eax, dword [edi + 0x5f74]
inc eax
movss xmm1, dword [edi + 0x5f7c]
cdq
idiv ecx
mov eax, dword [edi + 0x5f78]
movss xmm0, dword [0x436bac]
inc eax
cmp eax, ecx
mov dword [edi + 0x5f74], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x436a98]
mov dword [edi + 0x5f78], ecx
jbe 0x408514
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x436b18]
divss xmm0, xmm1
movss dword [edi + 0x98], xmm0
mov ecx, dword [edi + 0x3f30]
test ecx, ecx
jns 0x408542
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 + 0x3f2c]
call fcn.0041a030
mov dword [edi + 0x3f2c], 0
mov cl, byte [edi + 0x46]
call fcn.00411e90
mov ebx, dword [0x439440]
xorps xmm3, xmm3
mov eax, dword [ebx + 0x49fc]
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 + 0x49fc]
mov eax, dword [ebx + 0x49f4]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x40866d
mov edi, eax
nop
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 0x4085a0
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x2c]
mov byte [eax + 0x10], 1
mov esi, dword [ebx + 0x38]
test esi, esi
jne 0x408683
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm2, dword [0x436b18]
mov ecx, dword [ebx + 0x3f88]
movaps xmm0, xmm2
mov dword [ebx + 0x3cf0], esi
movss xmm1, dword [esi + 0x10]
mulss xmm1, dword [ebx + 0x30]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [ebx + 0x3cf8], xmm0
test ecx, ecx
je 0x4086df
mov eax, dword [ecx]
movss xmm0, dword [eax + 0x3cf8]
mov eax, dword [ecx + 0x300]
mulss xmm0, dword [ecx + 0x264]
test eax, eax
je 0x4086e2
mulss xmm0, dword [eax + 0x264]
jmp 0x4086e2
movaps xmm0, xmm3
movss xmm7, dword [ebp - 4]
movss xmm5, dword [0x436bc8]
movaps xmm6, xmm7
movss dword [ebx + 0x3cf4], xmm0
movaps xmm4, xmm5
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [ebx + 0x3cfc], eax
lea eax, [edx + 0x60]
mov dword [ebx + 0x3d00], ecx
mov dword [ebx + 0x3ef8], eax
mov dword [ebx + 0x3d04], esi
movss dword [ebx + 0x3d08], xmm0
mov ecx, dword [edi + 0x49fc]
mov eax, dword [edi + 0x49f4]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40878b
nop dword [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 0x408764
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x40876c
movaps xmm6, xmm2
comiss xmm0, xmm5
jbe 0x408774
movaps xmm5, xmm0
comiss xmm1, xmm4
jbe 0x40877c
movaps xmm4, xmm1
add ecx, 4
cmp ecx, edx
jne 0x408740
movss xmm2, dword [0x436b18]
mov eax, dword [edi + 0x3984]
movss xmm1, dword [edi + 0x3988]
movss dword [ebp - 0x30], xmm7
movss dword [ebp - 0x2c], xmm6
movss dword [ebp - 0x28], xmm5
movss dword [ebp - 0x24], xmm4
movups xmm0, xmmword [ebp - 0x30]
mov dword [edi + 0x3d0c], eax
movups xmmword [edi + 0x3d14], xmm0
movss xmm0, dword [edi + 0x3d10]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x4088b7
movss dword [edi + 0x3d10], xmm1
xor esi, esi
mov ebx, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x408862
movss xmm1, dword [edi + 0x3d10]
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 [0x436b40]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x28]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x408858
mov eax, 4
jmp 0x408867
cmp eax, 0x200
cmovg eax, ebx
jmp 0x408867
mov eax, 0x30
movss xmm2, dword [0x436b18]
mov byte [esi + edi + 0x3eb8], al
inc esi
cmp esi, 0x40
jl 0x4087e2
movsd xmm0, qword [0x436b28]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x436b18]
cvtsd2ss xmm0, xmm0
mov ebx, dword [0x439440]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3d10]
divss xmm0, xmm1
movss dword [edi + 0x3eb4], xmm0
xor edx, edx
mov dword [edi + 0x3d24], 0
cmp byte [edi + 0x3980], dl
je 0x4088da
mov dword [edi + 0x3d24], 1
mov edx, 1
cmp byte [edi + 0x3981], 0
mov ecx, edx
je 0x4088fc
mov eax, dword [edi + 0x3cf0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x4088fc
or ecx, 2
mov dword [edi + 0x3d24], ecx
cmp byte [edi + 0x3982], 0
je 0x40890e
or ecx, 4
mov dword [edi + 0x3d24], ecx
test byte [edi + 0xc], 8
je 0x40891d
or ecx, 8
mov dword [edi + 0x3d24], ecx
mov ecx, dword [edi + 0x49fc]
mov eax, dword [edi + 0x49f4]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40893d
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x38], 0
cmp ecx, edx
jne 0x408930
cmp byte [edi + 0x4bdc], 0
je 0x408971
mov eax, dword [edi + 0x4bf4]
cmp eax, dword [edi + 0x3fd8]
jne 0x408971
cmp dword [ebx + 0x3fd8], eax
jne 0x408962
mov dword [ebx + 0x3fdc], eax
cmp dword [ebx + 0x4000], eax
jne 0x408971
mov byte [ebx + 0x4004], 1
cmp dword [edi + 0x3fc8], 0
lea eax, [edi + 0x3fc4]
mov ecx, dword [eax]
jne 0x40898e
mov dword [edi + 0x3fd0], 0
jmp 0x40899e
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x4089ac
cmp dword [edi + 0x3fd8], ecx
jne 0x4089ac
mov dword [edi + 0x3fd4], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [edi + 0x18]
test edx, edx
je 0x4089e3
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3fd0]
movss dword [edi + 0x3fd0], xmm0
cmp dword [edi + 0x3fd8], edx
je 0x4089e3
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3fd4]
movss dword [edi + 0x3fd4], xmm0
mov eax, dword [edi + 0x3fd8]
movaps xmm2, xmm1
mov dword [edi + 0x3fc8], edx
mov dword [esi], 0
mov word [edi + 0x3fcc], 0
test eax, eax
je 0x408a3f
cmp dword [edi + 0x3fdc], eax
je 0x408a3f
cmp dword [edi + 0x4000], eax
jne 0x408a3f
test byte [edi + 0x5dec], 1
je 0x408a2b
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.00418900
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.004074b0
movss xmm2, dword [edi + 0x18]
mov ebx, dword [0x439440]
mov esi, dword [edi + 0x3fd8]
test esi, esi
je 0x408a5c
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x3fe0]
movss dword [edi + 0x3fe0], xmm0
mov eax, dword [edi + 0x3ff4]
addss xmm2, dword [edi + 0x4010]
mov dword [edi + 0x4008], eax
mov al, byte [edi + 0x3fe8]
mov byte [edi + 0x4005], al
mov eax, dword [edi + 0x5c24]
movss dword [edi + 0x4010], xmm2
mov dword [edi + 0x4000], esi
mov dword [edi + 0x3fdc], 0
mov byte [edi + 0x3fe9], 0
mov byte [edi + 0x4004], 0
mov byte [edi + 0x3fe4], 0
test eax, eax
je 0x408ac1
cmp esi, eax
je 0x408ac1
mov dword [edi + 0x5c24], 0
test esi, esi
jne 0x408ae0
mov dword [edi + 0x48a0], esi
mov dword [edi + 0x4898], esi
mov byte [edi + 0x489c], 0
mov dword [edi + 0x48a0], esi
jmp 0x408b05
mov eax, dword [edi + 0x48a0]
test eax, eax
je 0x408b05
test al, 2
je 0x408b05
mov edx, 0x20e
mov ecx, ebx
call fcn.00403cf0
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov ecx, dword [edi + 0x4d14]
mov eax, edi
mov edx, 0x4d30
mov esi, edi
mov ebx, 0x3cdc
test ecx, ecx
je 0x408b36
movss xmm0, dword [edi + 0x4d30]
comiss xmm0, dword [edi + 0x3cdc]
jb 0x408b40
mov dword [edi + 0x4d24], ecx
jmp 0x408b40
mov dword [edi + 0x4d24], 0
cmp dword [edi + 0x3f8c], 0
je 0x408b65
movss xmm0, dword [edx + eax]
comiss xmm0, dword [ebx + esi]
jb 0x408b6f
mov eax, dword [edi + 0x3f8c]
mov eax, dword [eax + 8]
mov dword [edi + 0x4d28], eax
jmp 0x408b6f
mov dword [edi + 0x4d28], 0
movss xmm0, dword [edi + 0x4d1c]
mov dword [edi + 0x4d18], ecx
test ecx, ecx
je 0x408b9a
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4d14], 0
movss dword [edi + 0x4d1c], xmm0
jmp 0x408bda
comiss xmm0, dword [0x436a98]
jbe 0x408be4
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x436acc]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4d20]
addss xmm1, xmm1
movss dword [edi + 0x4d20], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x408be4
mov dword [edi + 0x4d1c], 0
mov dword [edi + 0x4d20], 0
mov eax, dword [edi + 0x4c50]
mov dword [edi + 0x4c54], eax
mov dword [edi + 0x4c50], 0
mov dword [edi + 0x4c4c], 0x7f7fffff
mov word [edi + 0x4bdd], 0
mov dword [edi + 0x4c5c], 0
call fcn.00410c00
call fcn.00414ab0
call fcn.00411080
call fcn.00407f80
mov esi, dword [0x439440]
mov ecx, dword [esi + 0x3f94]
test ecx, ecx
je 0x408ce3
mov eax, dword [esi + 0x3fd8]
mov dword [esi + 0x3fdc], eax
cmp dword [esi + 0x4000], eax
jne 0x408c5a
mov byte [esi + 0x4004], 1
cmp byte [esi + 0xe08], 0
mov ebx, dword [ecx + 0x308]
je 0x408cd7
lea eax, [esi + 0xe00]
mov ecx, eax
test eax, eax
jne 0x408c7b
lea ecx, [esi + 0xe00]
movss xmm0, dword [ecx]
movss xmm1, dword [0x436bc4]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x408cd7
comiss xmm2, xmm1
jb 0x408cd7
movss xmm0, dword [eax]
lea edx, [ebp - 0x28]
subss xmm0, dword [esi + 0x3fec]
push 1
mov ecx, ebx
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3ff0]
movss dword [ebp - 0x24], xmm0
call fcn.00410170
mov ecx, dword [esi + 0x3f94]
add esp, 4
xor edx, edx
call fcn.0040fd80
jmp 0x408d1f
mov dword [esi + 0x3f94], 0
jmp 0x408d16
mov ecx, dword [esi + 0x3ff4]
test ecx, ecx
je 0x408d1f
mov eax, dword [esi + 0x3fd8]
cmp dword [ecx + 0x74], eax
jne 0x408d1f
mov dword [esi + 0x3fdc], eax
cmp dword [esi + 0x4000], eax
jne 0x408d0d
mov byte [esi + 0x4004], 1
cmp byte [esi + 0xe08], 0
jne 0x408d1f
xor edx, edx
xor ecx, ecx
call fcn.004074b0
mov eax, dword [0x439440]
mov edx, dword [eax + 0x49cc]
sub edx, 1
js 0x408d57
mov eax, dword [eax + 0x49d4]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop
mov ecx, dword [eax]
test ecx, ecx
je 0x408d4f
test dword [ecx + 0xc], 0x8000000
jne 0x408d71
sub eax, 0x28
sub edx, 1
jns 0x408d40
cmp dword [edi + 0x4bb0], 0
je 0x408d90
movss xmm0, dword [edi + 0x4bc0]
comiss xmm0, dword [0x436a98]
jbe 0x408d90
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x436b4c]
addss xmm1, dword [edi + 0x4bd8]
minss xmm1, dword [0x436b18]
jmp 0x408db1
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x436b58]
movss xmm1, dword [edi + 0x4bd8]
subss xmm1, xmm0
maxss xmm1, dword [0x436a98]
movss dword [edi + 0x4bd8], xmm1
movups xmm0, xmmword [edi + 0x5d30]
mov dword [edi + 0x4d2c], 0
mov dword [edi + 0x5f88], 0xffffffff
mov dword [edi + 0x5f84], 0xffffffff
mov dword [edi + 0x5f80], 0xffffffff
movups xmmword [edi + 0x5d40], xmm0
mov byte [edi + 0x5d30], 0
call fcn.00411450
cmp byte [edi + 0x3f17], 0
jne 0x408e28
movss xmm0, dword [edi + 0x4c]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x408e28
movsd xmm1, qword [edi + 0x3f00]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 4], xmm1
jmp 0x408e2d
movss xmm1, dword [ebp - 4]
mov ebx, dword [edi + 0x3f48]
mov eax, dword [edi + 0x3f40]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x18], eax
cmp ebx, eax
je 0x408f01
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 0x408eee
cmp byte [esi + 0x360], al
jne 0x408eee
comiss xmm1, dword [esi + 0x244]
jbe 0x408eee
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.00401e30
mov ecx, dword [esi + 0x26c]
call fcn.004227e0
lea ecx, [esi + 0x188]
call fcn.00401e30
lea ecx, [esi + 0x1b0]
call fcn.00401e30
lea ecx, [esi + 0x1bc]
call fcn.00401e30
movss xmm1, dword [ebp - 4]
add ebx, 4
cmp ebx, edi
jne 0x408e50
mov edi, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x4cc0], ecx
jle 0x40905f
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x18], edx
nop word [eax + eax]
mov eax, dword [edi + 0x4cc8]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x409046
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x409043
mov esi, dword [edi + 0x4ca8]
mov ebx, dword [0x439440]
add esi, edx
mov dword [ebp - 0x24], ebx
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x408fe5
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test ebx, ebx
je 0x408fd4
movsx eax, word [ebx + 0x5e50]
mov edx, dword [ebx + 0x3f08]
mov dword [ebp - 0x1c], edx
lea eax, [eax*8 + 0x5e54]
add eax, ebx
cmp dword [eax], edx
je 0x408fca
movsx eax, word [ebx + 0x5e50]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [ebx + 0x5e50], ax
cwde
lea eax, [eax*8 + 0x5e54]
add eax, ebx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ebx + 0x5e4c]
push ecx
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x1a4], 0
lea ecx, [esi + 0x15c]
mov byte [esi + 0x1ed], 1
call fcn.00401e30
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x409027
xor ecx, ecx
or ebx, 0xffffffff
nop word [eax + eax]
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [ecx + eax - 0x20], bx
cmp edx, dword [esi + 0x40]
jl 0x409010
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
sub esi, dword [ebx + 0x4ca8]
mov eax, dword [ebx + 0x4cc8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
xorps xmm1, xmm1
inc ecx
add edx, 0x200
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
cmp ecx, dword [edi + 0x4cc0]
jl 0x408f20
imul ebx, dword [edi + 0x4c94], 0x6c
mov esi, dword [edi + 0x4c9c]
add ebx, esi
cmp esi, ebx
je 0x4090a2
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x40909b
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x409098
lea ecx, [esi + 0x14]
call fcn.00425030
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x6c
cmp esi, ebx
jne 0x409075
cmp byte [edi + 0x3f17], 0
je 0x409153
mov esi, dword [0x439440]
lea ecx, [esi + 0x49b4]
call fcn.00401e30
mov ebx, dword [esi + 0x49c8]
test ebx, ebx
je 0x40914e
mov ecx, dword [0x439440]
mov dword [esi + 0x49c4], 0
mov dword [esi + 0x49c0], 0
test ecx, ecx
je 0x40913d
movsx eax, word [ecx + 0x5e50]
mov edx, dword [ecx + 0x3f08]
mov dword [ebp - 0x24], edx
lea eax, [eax*8 + 0x5e54]
add eax, ecx
cmp dword [eax], edx
je 0x409133
movsx eax, word [ecx + 0x5e50]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x24]
mov word [ecx + 0x5e50], ax
cwde
lea eax, [eax*8 + 0x5e54]
add eax, ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5e4c]
push ebx
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x49c8], 0
call fcn.0042cba0
mov eax, dword [edi + 0x4a00]
mov byte [edi + 0x3f17], 0
test eax, eax
je 0x4091b8
cmp byte [eax + 0xaf], 0
jne 0x4091b8
mov eax, dword [0x439440]
mov edx, dword [eax + 0x3f4c]
sub edx, 1
js 0x4091ac
mov eax, dword [eax + 0x3f54]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x4091a4
cmp byte [ecx + 0xaf], 0
je 0x4091a4
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x4091ae
sub esi, 4
sub edx, 1
jns 0x409186
xor ecx, ecx
mov edx, 1
call fcn.0040fd80
mov ecx, dword [edi + 0x3f68]
test ecx, ecx
jns 0x4091de
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 + 0x3f64]
call fcn.00419f70
mov dword [edi + 0x3f64], 0
mov ecx, dword [edi + 0x49dc]
test ecx, ecx
jns 0x40920e
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 + 0x49d8]
call fcn.00419ea0
lea esi, [edi + 0x49b4]
mov dword [edi + 0x49d8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40923d
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.00419860
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x409252
push 8
mov ecx, esi
call fcn.00419860
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ecx
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x49c0]
inc dword [esi]
call fcn.00419530
call fcn.00418ca0
mov esi, dword [0x439440]
mov dword [ebp - 0x1c], esi
mov dword [esi + 0x3fc0], 0
mov eax, dword [esi + 0x5e28]
inc eax
cmp dword [esi + 0x3f08], eax
jne 0x40936d
mov ebx, dword [esi + 0x3fc8]
test ebx, ebx
jne 0x4092a7
mov ebx, dword [esi + 0x3fd8]
lea edx, [esi + 0x5e34]
cmp dword [esi + 0x5e30], ebx
je 0x4092f4
mov dword [esi + 0x5e30], ebx
mov dword [esi + 0x5e2c], 0xffffffff
mov ecx, dword [edx + 4]
test ecx, ecx
jns 0x4092ee
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 + 0x5e34]
call fcn.0041a110
lea edx, [esi + 0x5e34]
mov dword [edx], 0
test ebx, ebx
je 0x40936d
mov eax, dword [esi + 0x5e2c]
test eax, eax
js 0x40933a
mov ecx, eax
cmp eax, dword [edx]
jge 0x40934d
mov edi, dword [esi + 0x5e3c]
lea ecx, [eax + eax*8]
cmp byte [edi + ecx*8 + 5], 0
mov edi, dword [ebp - 8]
jne 0x409333
mov esi, dword [esi + 0x5e3c]
lea edi, [eax + eax*8]
mov ecx, eax
cmp byte [esi + edi*8 + 4], 2
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x1c]
jle 0x40934d
inc eax
mov dword [esi + 0x5e2c], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x409349
mov dword [esi + 0x3fc0], ebx
jmp 0x40936d
test ecx, ecx
js 0x40936d
cmp ecx, dword [edx]
jge 0x40936d
mov eax, dword [esi + 0x5e3c]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3fc0], eax
mov eax, dword [esi + 0x5e3c]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5e0d]
test al, al
je 0x40938b
sub al, 1
mov byte [edi + 0x5e0d], al
jne 0x40938b
mov dword [edi + 0x48ac], 0
mov al, byte [edi + 0x5e0c]
test al, al
je 0x4093b3
sub al, 1
mov byte [edi + 0x5e0c], al
jne 0x4093b3
push str._Auto_disabled_ImGuiDebugLogFlags_EventClipper_to_avoid_spamming__n
call fcn.00418900
add esp, 4
and dword [edi + 0x5dec], 0xffffffef
mov eax, dword [0x439440]
xor edx, edx
mov byte [edi + 0x3f15], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x491c], 2
mov dword [eax + 0x493c], 0x43c80000
mov dword [eax + 0x4940], 0x43c80000
mov dword [eax + 0x4924], 4
call fcn.0040d1b0
add esp, 4
cmp byte [edi + 0x65], 0
je 0x409430
mov cl, byte [edi + 0x5e0e]
cmp cl, 0xff
jne 0x40940a
xor edx, edx
jmp 0x409433
mov eax, dword [edi + 0x3f08]
and eax, 0x80000003
jns 0x40941c
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 0x409433
or dl, 0xff
mov byte [edi + 0x5e0e], dl
mov eax, dword [edi + 0x5d88]
mov esi, dword [edi + 0x5d90]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x409467
nop
cmp dword [esi + 4], 1
jne 0x409460
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x409450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret