Function at 0x407370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x4393a8]
mov dword [ebp - 8], edi
mov eax, dword [edi + 0x5b5c]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x4073fe
lea ebx, [eax + eax*4]
shl ebx, 2
nop word [eax + eax]
mov ecx, dword [edi + 0x5b64]
cmp dword [ecx + ebx + 4], 7
jne 0x4073f3
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 + 0x5b5c]
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 + 0x5b5c]
dec eax
sub ebx, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x4073a0
mov eax, dword [edi + 0x5b5c]
mov esi, dword [edi + 0x5b64]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x40742b
cmp dword [esi + 4], 0
jne 0x407424
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x407414
mov esi, dword [0x4393a8]
cmp byte [esi + 0x4a], 0
je 0x407441
test byte [esi + 0xc], 2
jne 0x407441
mov byte [esi + 0x4a], 0
cmp byte [esi + 0x5b24], 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 0x4074fb
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4074f4
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.00403b40
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4074f4
mov edx, dword [ebp - 4]
test edx, edx
je 0x407491
mov ecx, eax
call fcn.004169e0
mov ecx, dword [0x4393a8]
test ecx, ecx
je 0x4074eb
movsx eax, word [ecx + 0x5c24]
mov edx, dword [ecx + 0x3dd8]
add eax, 0xb85
mov dword [ebp - 0x18], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x4074e1
movsx eax, word [ecx + 0x5c24]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x18]
mov word [ecx + 0x5c24], ax
cwde
add eax, 0xb85
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5c20]
push dword [ebp - 0x14]
call dword [ebp - 0x10]
add esp, 4
mov byte [esi + 0x5b24], 1
movss xmm0, dword [esi + 0x5b28]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x407583
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5b28], xmm0
jb 0x407583
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x407572
mov eax, dword [0x4393a8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5b28], 0
call fcn.00416c00
mov edx, 0x431ef0
mov dword [ebp - 0x18], eax
mov ecx, ebx
call fcn.00403aa0
mov ebx, eax
test ebx, ebx
je 0x407579
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 0x407579
mov byte [esi + 0x92], 1
mov dword [esi + 0x5b28], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3dd8]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3de4], 1
mov word [edi + 0x5a88], ax
mov dword [edi + 0x3e4c], eax
addsd xmm0, qword [edi + 0x3dd0]
movsd qword [edi + 0x3dd0], xmm0
mov ecx, dword [edi + 0x5a9c]
test ecx, ecx
jns 0x4075dd
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 + 0x5a98]
call fcn.004183e0
mov dword [edi + 0x5a98], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x5d48]
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x4369c8]
subss xmm0, dword [edi + eax*4 + 0x5c58]
addss xmm0, dword [edi + 0x5d50]
movss dword [edi + 0x5d50], xmm0
movss dword [edi + eax*4 + 0x5c58], xmm1
mov eax, dword [edi + 0x5d48]
inc eax
movss xmm1, dword [edi + 0x5d50]
cdq
idiv ecx
mov eax, dword [edi + 0x5d4c]
movss xmm0, dword [0x436a64]
inc eax
cmp eax, ecx
mov dword [edi + 0x5d48], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x436948]
mov dword [edi + 0x5d4c], ecx
jbe 0x407676
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
movss dword [edi + 0x98], xmm0
mov ecx, dword [edi + 0x3e00]
test ecx, ecx
jns 0x4076a4
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 + 0x3dfc]
call fcn.00418ba0
mov dword [edi + 0x3dfc], 0
mov cl, byte [edi + 0x46]
call fcn.00410b50
mov ebx, dword [0x4393a8]
xorps xmm3, xmm3
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx + 0x47f0]
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 + 0x47f0]
mov eax, dword [ebx + 0x47e8]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x4077d0
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 0x407703
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x2c]
mov byte [eax + 0x10], 1
mov esi, dword [ebx + 0x38]
test esi, esi
jne 0x4077e6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm2, dword [0x4369c8]
mov ecx, dword [ebx + 0x3e58]
movaps xmm0, xmm2
mov dword [ebx + 0x3bc4], esi
movss xmm1, dword [esi + 0x10]
mulss xmm1, dword [ebx + 0x30]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [ebx + 0x3bcc], xmm0
test ecx, ecx
je 0x407842
mov eax, dword [ecx]
movss xmm0, dword [eax + 0x3bcc]
mov eax, dword [ecx + 0x2f8]
mulss xmm0, dword [ecx + 0x25c]
test eax, eax
je 0x407845
mulss xmm0, dword [eax + 0x25c]
jmp 0x407845
movaps xmm0, xmm3
movss xmm7, dword [ebp - 4]
movss xmm5, dword [0x436a80]
movaps xmm6, xmm7
movss dword [ebx + 0x3bc8], xmm0
movaps xmm4, xmm5
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [ebx + 0x3bd0], eax
lea eax, [edx + 0x60]
mov dword [ebx + 0x3bd4], ecx
mov dword [ebx + 0x3dcc], eax
mov dword [ebx + 0x3bd8], esi
movss dword [ebx + 0x3bdc], xmm0
mov ecx, dword [edi + 0x47f0]
mov eax, dword [edi + 0x47e8]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x4078eb
nop
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 0x4078c4
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x4078cc
movaps xmm6, xmm2
comiss xmm0, xmm5
jbe 0x4078d4
movaps xmm5, xmm0
comiss xmm1, xmm4
jbe 0x4078dc
movaps xmm4, xmm1
add ecx, 4
cmp ecx, edx
jne 0x4078a0
movss xmm2, dword [0x4369c8]
movss dword [edi + 0x3be8], xmm7
movss dword [edi + 0x3bec], xmm6
movss dword [edi + 0x3bf0], xmm5
movss dword [edi + 0x3bf4], xmm4
mov eax, dword [edi + 0x3858]
movss xmm1, dword [edi + 0x385c]
mov dword [edi + 0x3be0], eax
movss xmm0, dword [edi + 0x3be4]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x407a19
movss dword [edi + 0x3be4], xmm1
xor esi, esi
mov ebx, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x4079c7
movss xmm1, dword [edi + 0x3be4]
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 [0x4369f0]
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 0x4079bd
mov eax, 4
jmp 0x4079cc
cmp eax, 0x200
cmovg eax, ebx
jmp 0x4079cc
mov eax, 0x30
movss xmm2, dword [0x4369c8]
mov byte [esi + edi + 0x3d8c], al
inc esi
cmp esi, 0x40
jl 0x407943
movsd xmm0, qword [0x4369d8]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x4369c8]
cvtsd2ss xmm0, xmm0
mov ebx, dword [ebp - 0x14]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3be4]
divss xmm0, xmm1
movss dword [edi + 0x3d88], xmm0
xor edx, edx
mov dword [edi + 0x3bf8], 0
cmp byte [edi + 0x3854], dl
je 0x407a3c
mov dword [edi + 0x3bf8], 1
mov edx, 1
cmp byte [edi + 0x3855], 0
mov ecx, edx
je 0x407a5e
mov eax, dword [edi + 0x3bc4]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x407a5e
or ecx, 2
mov dword [edi + 0x3bf8], ecx
cmp byte [edi + 0x3856], 0
je 0x407a70
or ecx, 4
mov dword [edi + 0x3bf8], ecx
test byte [edi + 0xc], 8
je 0x407a7f
or ecx, 8
mov dword [edi + 0x3bf8], ecx
mov ecx, dword [edi + 0x47f0]
mov eax, dword [edi + 0x47e8]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x407a9f
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x38], 0
cmp ecx, edx
jne 0x407a92
cmp byte [edi + 0x49d4], 0
je 0x407ad3
mov eax, dword [edi + 0x49ec]
cmp eax, dword [edi + 0x3ea4]
jne 0x407ad3
cmp dword [ebx + 0x3ea4], eax
jne 0x407ac4
mov dword [ebx + 0x3ea8], eax
cmp dword [ebx + 0x3ecc], eax
jne 0x407ad3
mov byte [ebx + 0x3ed0], 1
cmp dword [edi + 0x3e94], 0
lea eax, [edi + 0x3e90]
mov ecx, dword [eax]
jne 0x407af0
mov dword [edi + 0x3e9c], 0
jmp 0x407b00
mov edx, ecx
mov esi, eax
test ecx, ecx
je 0x407b0e
cmp dword [edi + 0x3ea4], ecx
jne 0x407b0e
mov dword [edi + 0x3ea0], 0
mov edx, ecx
mov esi, eax
movss xmm1, dword [edi + 0x18]
test edx, edx
je 0x407b45
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e9c]
movss dword [edi + 0x3e9c], xmm0
cmp dword [edi + 0x3ea4], edx
je 0x407b45
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3ea0]
movss dword [edi + 0x3ea0], xmm0
mov eax, dword [edi + 0x3ea4]
movaps xmm2, xmm1
mov dword [edi + 0x3e94], edx
mov dword [esi], 0
mov word [edi + 0x3e98], 0
test eax, eax
je 0x407ba1
cmp dword [edi + 0x3ea8], eax
je 0x407ba1
cmp dword [edi + 0x3ecc], eax
jne 0x407ba1
test byte [edi + 0x5bc0], 1
je 0x407b8d
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.004174a0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00406610
movss xmm2, dword [edi + 0x18]
mov ebx, dword [0x4393a8]
mov esi, dword [edi + 0x3ea4]
test esi, esi
je 0x407bbe
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x3eac]
movss dword [edi + 0x3eac], xmm0
mov eax, dword [edi + 0x3ec0]
addss xmm2, dword [edi + 0x3edc]
mov dword [edi + 0x3ed4], eax
mov al, byte [edi + 0x3eb4]
mov byte [edi + 0x3ed1], al
mov eax, dword [edi + 0x5a0c]
movss dword [edi + 0x3edc], xmm2
mov dword [edi + 0x3ecc], esi
mov dword [edi + 0x3ea8], 0
mov byte [edi + 0x3eb5], 0
mov byte [edi + 0x3ed0], 0
mov byte [edi + 0x3eb0], 0
test eax, eax
je 0x407c23
cmp esi, eax
je 0x407c23
mov dword [edi + 0x5a0c], 0
test esi, esi
jne 0x407c42
mov dword [edi + 0x46a8], esi
mov dword [edi + 0x46a0], esi
mov byte [edi + 0x46a4], 0
mov dword [edi + 0x46a8], esi
jmp 0x407c67
mov eax, dword [edi + 0x46a8]
test eax, eax
je 0x407c67
test al, 2
je 0x407c67
mov edx, 0x20e
mov ecx, ebx
call fcn.00402e30
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov ecx, dword [edi + 0x4afc]
mov eax, edi
mov edx, 0x4b18
mov esi, edi
mov ebx, 0x3bb0
test ecx, ecx
je 0x407c98
movss xmm0, dword [edi + 0x4b18]
comiss xmm0, dword [edi + 0x3bb0]
jb 0x407ca2
mov dword [edi + 0x4b0c], ecx
jmp 0x407ca2
mov dword [edi + 0x4b0c], 0
cmp dword [edi + 0x3e5c], 0
je 0x407cc7
movss xmm0, dword [eax + edx]
comiss xmm0, dword [ebx + esi]
jb 0x407cd1
mov eax, dword [edi + 0x3e5c]
mov eax, dword [eax + 8]
mov dword [edi + 0x4b10], eax
jmp 0x407cd1
mov dword [edi + 0x4b10], 0
movss xmm0, dword [edi + 0x4b04]
mov dword [edi + 0x4b00], ecx
test ecx, ecx
je 0x407cfc
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4afc], 0
movss dword [edi + 0x4b04], xmm0
jmp 0x407d3c
comiss xmm0, dword [0x436948]
jbe 0x407d46
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x43697c]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4b08]
addss xmm1, xmm1
movss dword [edi + 0x4b08], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x407d46
mov dword [edi + 0x4b04], 0
mov dword [edi + 0x4b08], 0
mov eax, dword [edi + 0x4a38]
mov dword [edi + 0x4a3c], eax
mov dword [edi + 0x4a38], 0
mov dword [edi + 0x4a34], 0x7f7fffff
mov word [edi + 0x49d5], 0
mov dword [edi + 0x4a44], 0
call fcn.0040f8a0
call fcn.00413740
call fcn.0040fd60
call fcn.004070e0
mov esi, dword [0x4393a8]
mov ecx, dword [esi + 0x3e64]
test ecx, ecx
je 0x407e45
mov eax, dword [esi + 0x3ea4]
mov dword [esi + 0x3ea8], eax
cmp dword [esi + 0x3ecc], eax
jne 0x407dbc
mov byte [esi + 0x3ed0], 1
cmp byte [esi + 0xdc0], 0
mov ebx, dword [ecx + 0x300]
je 0x407e39
lea eax, [esi + 0xdb8]
mov ecx, eax
test eax, eax
jne 0x407ddd
lea ecx, [esi + 0xdb8]
movss xmm0, dword [ecx]
movss xmm1, dword [0x436a7c]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x407e39
comiss xmm2, xmm1
jb 0x407e39
movss xmm0, dword [eax]
lea edx, [ebp - 0x28]
subss xmm0, dword [esi + 0x3eb8]
push 1
mov ecx, ebx
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3ebc]
movss dword [ebp - 0x24], xmm0
call fcn.0040ee40
mov ecx, dword [esi + 0x3e64]
add esp, 4
xor edx, edx
call fcn.0040ea50
jmp 0x407e81
mov dword [esi + 0x3e64], 0
jmp 0x407e78
mov ecx, dword [esi + 0x3ec0]
test ecx, ecx
je 0x407e81
mov eax, dword [esi + 0x3ea4]
cmp dword [ecx + 0x70], eax
jne 0x407e81
mov dword [esi + 0x3ea8], eax
cmp dword [esi + 0x3ecc], eax
jne 0x407e6f
mov byte [esi + 0x3ed0], 1
cmp byte [esi + 0xdc0], 0
jne 0x407e81
xor edx, edx
xor ecx, ecx
call fcn.00406610
mov eax, dword [0x4393a8]
mov edx, dword [eax + 0x47c0]
sub edx, 1
js 0x407eb7
mov eax, dword [eax + 0x47c8]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x407eaf
test dword [ecx + 0xc], 0x8000000
jne 0x407ed1
sub eax, 0x28
sub edx, 1
jns 0x407ea0
cmp dword [edi + 0x49a8], 0
je 0x407ef0
movss xmm0, dword [edi + 0x49b8]
comiss xmm0, dword [0x436948]
jbe 0x407ef0
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x436a00]
addss xmm1, dword [edi + 0x49d0]
minss xmm1, dword [0x4369c8]
jmp 0x407f11
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x436a0c]
movss xmm1, dword [edi + 0x49d0]
subss xmm1, xmm0
maxss xmm1, dword [0x436948]
movss dword [edi + 0x49d0], xmm1
movups xmm0, xmmword [edi + 0x5b04]
mov dword [edi + 0x4b14], 0
mov dword [edi + 0x5d5c], 0xffffffff
mov dword [edi + 0x5d58], 0xffffffff
mov dword [edi + 0x5d54], 0xffffffff
movups xmmword [edi + 0x5b14], xmm0
mov byte [edi + 0x5b04], 0
call fcn.00410130
cmp byte [edi + 0x3de7], 0
jne 0x407f88
movss xmm0, dword [edi + 0x4c]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x407f88
movsd xmm1, qword [edi + 0x3dd0]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 4], xmm1
jmp 0x407f8d
movss xmm1, dword [ebp - 4]
mov ebx, dword [edi + 0x3e18]
mov eax, dword [edi + 0x3e10]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x18], eax
cmp ebx, eax
je 0x408061
mov edi, eax
nop dword [eax]
mov esi, dword [ebx]
mov ax, word [esi + 0xb6]
mov cl, byte [esi + 0xaa]
mov word [esi + 0xb8], ax
xor eax, eax
mov byte [esi + 0xab], cl
mov byte [esi + 0xaa], 0
mov byte [esi + 0xac], 0
mov word [esi + 0xb6], ax
test cl, cl
jne 0x40804e
cmp byte [esi + 0x358], al
jne 0x40804e
comiss xmm1, dword [esi + 0x23c]
jbe 0x40804e
mov ecx, dword [esi + 0x264]
mov byte [esi + 0x358], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x350], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0xe4]
mov dword [esi + 0x354], eax
call fcn.00401010
mov ecx, dword [esi + 0x264]
call fcn.00421320
lea ecx, [esi + 0x180]
call fcn.00401010
lea ecx, [esi + 0x1a8]
call fcn.00401010
lea ecx, [esi + 0x1b4]
call fcn.00401010
movss xmm1, dword [ebp - 4]
add ebx, 4
cmp ebx, edi
jne 0x407fb0
mov edi, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x4aa8], ecx
jle 0x4081cf
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x18], edx
nop word [eax + eax]
mov eax, dword [edi + 0x4ab0]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x4081b6
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x4081b3
mov esi, dword [edi + 0x4a90]
mov ebx, dword [0x4393a8]
add esi, edx
mov dword [ebp - 0x24], ebx
mov dword [esi + 0x1a0], 0
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x408144
mov dword [esi + 0x198], 0
mov dword [esi + 0x194], 0
test ebx, ebx
je 0x408133
movsx eax, word [ebx + 0x5c24]
mov edx, dword [ebx + 0x3dd8]
add eax, 0xb85
mov dword [ebp - 0x1c], edx
cmp dword [ebx + eax*8], edx
lea eax, [ebx + eax*8]
je 0x408129
movsx eax, word [ebx + 0x5c24]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [ebx + 0x5c24], ax
cwde
add eax, 0xb85
lea eax, [ebx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ebx + 0x5c20]
push ecx
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x19c], 0
lea ecx, [esi + 0x154]
mov byte [esi + 0x1e1], 1
call fcn.00401010
xor edx, edx
mov byte [esi + 0x1ed], 1
cmp dword [esi + 0x40], edx
jle 0x408187
xor ecx, ecx
or ebx, 0xffffffff
nop dword [eax]
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [ecx + eax - 0x20], bx
cmp edx, dword [esi + 0x40]
jl 0x408170
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x24]
sub esi, dword [ebx + 0x4a90]
mov eax, 0x84210843
imul esi
mov eax, dword [ebx + 0x4ab0]
add edx, esi
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x18]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [ebp - 0x14]
xorps xmm1, xmm1
inc ecx
add edx, 0x1f0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
cmp ecx, dword [edi + 0x4aa8]
jl 0x408080
imul ebx, dword [edi + 0x4a7c], 0x68
mov esi, dword [edi + 0x4a84]
add ebx, esi
cmp esi, ebx
je 0x408212
xorps xmm1, xmm1
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x40820b
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x408208
lea ecx, [esi + 0x10]
call fcn.00423b70
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x68
cmp esi, ebx
jne 0x4081e5
cmp byte [edi + 0x3de7], 0
je 0x4082c2
mov esi, dword [0x4393a8]
lea ecx, [esi + 0x47a8]
call fcn.00401010
mov ebx, dword [esi + 0x47bc]
test ebx, ebx
je 0x4082bd
mov ecx, dword [0x4393a8]
mov dword [esi + 0x47b8], 0
mov dword [esi + 0x47b4], 0
test ecx, ecx
je 0x4082ac
movsx eax, word [ecx + 0x5c24]
mov edx, dword [ecx + 0x3dd8]
add eax, 0xb85
mov dword [ebp - 0x24], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x4082a2
movsx eax, word [ecx + 0x5c24]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x24]
mov word [ecx + 0x5c24], ax
cwde
add eax, 0xb85
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5c20]
push ebx
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x47bc], 0
call fcn.0042b810
mov eax, dword [edi + 0x47f4]
mov byte [edi + 0x3de7], 0
test eax, eax
je 0x408327
cmp byte [eax + 0xab], 0
jne 0x408327
mov eax, dword [0x4393a8]
mov edx, dword [eax + 0x3e1c]
sub edx, 1
js 0x40831b
mov eax, dword [eax + 0x3e24]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x408313
cmp byte [ecx + 0xab], 0
je 0x408313
mov eax, dword [ecx + 0xc]
and eax, 0x40200
cmp eax, 0x40200
jne 0x40831d
sub esi, 4
sub edx, 1
jns 0x4082f5
xor ecx, ecx
mov edx, 1
call fcn.0040ea50
mov ecx, dword [edi + 0x3e38]
test ecx, ecx
jns 0x40834d
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 + 0x3e34]
call fcn.00418ae0
mov dword [edi + 0x3e34], 0
mov ecx, dword [edi + 0x47d0]
test ecx, ecx
jns 0x40837d
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 + 0x47cc]
call fcn.00418a10
lea esi, [edi + 0x47a8]
mov dword [edi + 0x47cc], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x4083ac
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.004183e0
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x4083c1
push 8
mov ecx, esi
call fcn.004183e0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ecx
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x47b4]
inc dword [esi]
call fcn.004180b0
call fcn.00417830
mov esi, dword [0x4393a8]
mov dword [ebp - 0x1c], esi
mov dword [esi + 0x3e8c], 0
mov eax, dword [esi + 0x5bfc]
inc eax
cmp dword [esi + 0x3dd8], eax
jne 0x4084e0
mov ebx, dword [esi + 0x3e94]
test ebx, ebx
jne 0x408416
mov ebx, dword [esi + 0x3ea4]
lea edx, [esi + 0x5c08]
cmp dword [esi + 0x5c04], ebx
je 0x408463
mov dword [esi + 0x5c04], ebx
mov dword [esi + 0x5c00], 0xffffffff
mov ecx, dword [edx + 4]
test ecx, ecx
jns 0x40845d
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 + 0x5c08]
call fcn.00418c80
lea edx, [esi + 0x5c08]
mov dword [edx], 0
test ebx, ebx
je 0x4084e0
mov eax, dword [esi + 0x5c00]
test eax, eax
js 0x4084ad
mov ecx, eax
cmp eax, dword [edx]
jge 0x4084c0
mov edi, dword [esi + 0x5c10]
lea ecx, [eax + eax*8]
cmp byte [edi + ecx*8 + 5], 0
mov edi, dword [ebp - 8]
jne 0x4084a6
mov esi, dword [esi + 0x5c10]
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 0x4084c0
inc eax
mov dword [esi + 0x5c00], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x4084bc
mov dword [esi + 0x3e8c], ebx
jmp 0x4084e0
test ecx, ecx
js 0x4084e0
cmp ecx, dword [edx]
jge 0x4084e0
mov eax, dword [esi + 0x5c10]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3e8c], eax
mov eax, dword [esi + 0x5c10]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5be1]
test al, al
je 0x4084fe
sub al, 1
mov byte [edi + 0x5be1], al
jne 0x4084fe
mov dword [edi + 0x46b4], 0
mov al, byte [edi + 0x5be0]
test al, al
je 0x408526
sub al, 1
mov byte [edi + 0x5be0], al
jne 0x408526
push str._Auto_disabled_ImGuiDebugLogFlags_EventClipper_to_avoid_spamming__n
call fcn.004174a0
add esp, 4
and dword [edi + 0x5bc0], 0xffffffef
mov eax, dword [0x4393a8]
xor edx, edx
mov byte [edi + 0x3de5], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x4714], 2
mov dword [eax + 0x4734], 0x43c80000
mov dword [eax + 0x4738], 0x43c80000
mov dword [eax + 0x471c], 4
call fcn.0040bf60
add esp, 4
cmp byte [edi + 0x65], 0
je 0x4085a3
mov cl, byte [edi + 0x5be2]
cmp cl, 0xff
jne 0x40857d
xor edx, edx
jmp 0x4085a6
mov eax, dword [edi + 0x3dd8]
and eax, 0x80000003
jns 0x40858f
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 0x4085a6
or dl, 0xff
mov byte [edi + 0x5be2], dl
mov eax, dword [edi + 0x5b5c]
mov esi, dword [edi + 0x5b64]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x4085d9
cmp dword [esi + 4], 1
jne 0x4085d2
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
add esp, 8
add esi, 0x14
cmp esi, ebx
jne 0x4085c2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret