Function at 0x4081e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [0x43c648]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5dd4]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x40826e
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5ddc]
cmp dword [ecx + edi + 4], 7
jne 0x408263
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 + 0x5dd4]
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 [ebx + 0x5dd4]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x408210
mov eax, dword [ebx + 0x5dd4]
mov esi, dword [ebx + 0x5ddc]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40829b
cmp dword [esi + 4], 0
jne 0x408294
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x408284
mov esi, dword [0x43c648]
cmp byte [esi + 0x4a], 0
je 0x4082b1
test byte [esi + 0xc], 2
jne 0x4082b1
mov byte [esi + 0x4a], 0
cmp byte [esi + 0x5d9c], 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 0x408368
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x408361
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.004047a0
mov edi, eax
add esp, 8
test edi, edi
je 0x408361
mov edx, dword [ebp - 4]
test edx, edx
je 0x408300
mov ecx, edi
call fcn.00417de0
mov ecx, dword [0x43c648]
test ecx, ecx
je 0x40835a
movsx eax, word [ecx + 0x5ebc]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbd8
mov dword [ebp - 0x18], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x408350
movsx eax, word [ecx + 0x5ebc]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x18]
mov word [ecx + 0x5ebc], ax
cwde
add eax, 0xbd8
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5eb8]
push edi
call dword [ebp - 0x10]
add esp, 4
mov byte [esi + 0x5d9c], 1
movss xmm0, dword [esi + 0x5da0]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x4083f0
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5da0], xmm0
jb 0x4083f0
mov edi, dword [esi + 0x20]
test edi, edi
je 0x4083df
mov eax, dword [0x43c648]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5da0], 0
call fcn.00418000
mov edx, 0x438750
mov dword [ebp - 0x18], eax
mov ecx, edi
call fcn.00404700
mov edi, eax
test edi, edi
je 0x4083e6
push edi
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 edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x4083e6
mov byte [esi + 0x96], 1
mov dword [esi + 0x5da0], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f08]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f14], 1
mov word [ebx + 0x5d00], ax
mov dword [ebx + 0x3f7c], eax
addsd xmm0, qword [ebx + 0x3f00]
movsd qword [ebx + 0x3f00], xmm0
mov ecx, dword [ebx + 0x5d14]
test ecx, ecx
jns 0x40844a
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 + 0x5d10]
call fcn.004196f0
mov dword [ebx + 0x5d10], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x5fe0]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x5ef0]
addss xmm0, dword [ebx + 0x5fe8]
movss dword [ebx + 0x5fe8], xmm0
movss dword [ebx + eax*4 + 0x5ef0], xmm1
mov eax, dword [ebx + 0x5fe0]
inc eax
movss xmm1, dword [ebx + 0x5fe8]
cdq
idiv ecx
mov eax, dword [ebx + 0x5fe4]
movss xmm0, dword [0x439638]
inc eax
cmp eax, ecx
mov dword [ebx + 0x5fe0], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x439518]
mov dword [ebx + 0x5fe4], ecx
jbe 0x4084e0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x4395a8]
divss xmm0, xmm1
movss dword [ebx + 0x9c], xmm0
mov ecx, dword [ebx + 0x3f30]
test ecx, ecx
jns 0x40850e
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 + 0x3f2c]
call fcn.00419f40
mov dword [ebx + 0x3f2c], 0
mov cl, byte [ebx + 0x46]
call fcn.00411e30
mov edi, dword [0x43c648]
xorps xmm3, xmm3
mov eax, dword [edi + 0x4a38]
mov edx, dword [eax]
mov dword [edx], 5
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
mov esi, dword [edi + 0x4a38]
mov eax, dword [edi + 0x4a30]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x40863d
mov ebx, eax
nop word [eax + eax]
mov edx, dword [esi]
add esi, 4
mov eax, dword [edx + 0x94]
mov ecx, dword [edx + 0x98]
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 xmm0, dword [edx + 0x88]
movss xmm2, dword [edx + 0x84]
movaps xmm1, xmm2
addss xmm0, dword [edx + 8]
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, ebx
jne 0x408570
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
mov esi, dword [edi + 0x38]
test esi, esi
jne 0x408653
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm1, dword [edi + 0x30]
movss xmm2, dword [0x4395a8]
mov ecx, dword [edi + 0x3f8c]
movaps xmm0, xmm2
mov dword [edi + 0x3cf0], esi
mulss xmm1, dword [esi + 0x10]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [edi + 0x3cf8], xmm0
test ecx, ecx
je 0x4086af
mov eax, dword [ecx]
movss xmm0, dword [ecx + 0x264]
mulss xmm0, dword [eax + 0x3cf8]
mov eax, dword [ecx + 0x300]
test eax, eax
je 0x4086b2
mulss xmm0, dword [eax + 0x264]
jmp 0x4086b2
movaps xmm0, xmm3
movss xmm7, dword [ebp - 4]
movss xmm5, dword [0x439650]
movaps xmm6, xmm7
movss dword [edi + 0x3cf4], xmm0
movaps xmm4, xmm5
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [edi + 0x3cfc], eax
lea eax, [edx + 0x60]
mov dword [edi + 0x3d00], ecx
mov dword [edi + 0x3ef8], eax
mov dword [edi + 0x3d04], esi
movss dword [edi + 0x3d08], xmm0
mov ecx, dword [ebx + 0x4a38]
mov eax, dword [ebx + 0x4a30]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40875b
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 0x408734
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x40873c
movaps xmm6, xmm2
comiss xmm0, xmm5
jbe 0x408744
movaps xmm5, xmm0
comiss xmm1, xmm4
jbe 0x40874c
movaps xmm4, xmm1
add ecx, 4
cmp ecx, edx
jne 0x408710
movss xmm2, dword [0x4395a8]
mov eax, dword [ebx + 0x3984]
movss xmm1, dword [ebx + 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 [ebx + 0x3d0c], eax
movups xmmword [ebx + 0x3d14], xmm0
movss xmm0, dword [ebx + 0x3d10]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x408887
movss dword [ebx + 0x3d10], xmm1
xor esi, esi
mov edi, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x408832
movss xmm1, dword [ebx + 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 [0x4395cc]
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 0x408828
mov eax, 4
jmp 0x408837
cmp eax, 0x200
cmovg eax, edi
jmp 0x408837
mov eax, 0x30
movss xmm2, dword [0x4395a8]
mov byte [ebx + esi + 0x3eb8], al
inc esi
cmp esi, 0x40
jl 0x4087b2
movsd xmm0, qword [0x4395b8]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x4395a8]
cvtsd2ss xmm0, xmm0
mov edi, dword [0x43c648]
subss xmm1, xmm0
movss xmm0, dword [ebx + 0x3d10]
divss xmm0, xmm1
movss dword [ebx + 0x3eb4], xmm0
xor edx, edx
mov dword [ebx + 0x3d24], 0
cmp byte [ebx + 0x3980], dl
je 0x4088aa
mov dword [ebx + 0x3d24], 1
mov edx, 1
cmp byte [ebx + 0x3981], 0
mov ecx, edx
je 0x4088cc
mov eax, dword [ebx + 0x3cf0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x4088cc
or ecx, 2
mov dword [ebx + 0x3d24], ecx
cmp byte [ebx + 0x3982], 0
je 0x4088de
or ecx, 4
mov dword [ebx + 0x3d24], ecx
test byte [ebx + 0xc], 8
je 0x4088ed
or ecx, 8
mov dword [ebx + 0x3d24], ecx
mov ecx, dword [ebx + 0x4a38]
mov eax, dword [ebx + 0x4a30]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40890d
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x38], 0
cmp ecx, edx
jne 0x408900
cmp byte [ebx + 0x4c24], 0
je 0x408941
mov eax, dword [ebx + 0x4c3c]
cmp eax, dword [ebx + 0x3fdc]
jne 0x408941
cmp dword [edi + 0x3fdc], eax
jne 0x408932
mov dword [edi + 0x3fe0], eax
cmp dword [edi + 0x4004], eax
jne 0x408941
mov byte [edi + 0x4008], 1
cmp dword [ebx + 0x3fcc], 0
jne 0x408956
mov dword [ebx + 0x3fd4], 0
jmp 0x408968
mov eax, dword [ebx + 0x3fc8]
test eax, eax
je 0x408972
cmp dword [ebx + 0x3fdc], eax
jne 0x408972
mov dword [ebx + 0x3fd8], 0
mov eax, dword [ebx + 0x3fc8]
test eax, eax
je 0x4089ac
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x3fd4]
movss dword [ebx + 0x3fd4], xmm0
cmp dword [ebx + 0x3fdc], eax
je 0x4089ac
addss xmm1, dword [ebx + 0x3fd8]
movss dword [ebx + 0x3fd8], xmm1
mov dword [ebx + 0x3fcc], eax
mov eax, dword [ebx + 0x3fdc]
mov dword [ebx + 0x3fc8], 0
mov word [ebx + 0x3fd0], 0
test eax, eax
je 0x408a04
cmp dword [ebx + 0x3fe0], eax
je 0x408a04
cmp dword [ebx + 0x4004], eax
jne 0x408a04
test byte [ebx + 0x5e38], 1
je 0x4089f5
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.00418920
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.00407490
mov edi, dword [0x43c648]
mov ecx, dword [ebx + 0x3fdc]
test ecx, ecx
je 0x408a23
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x3fe4]
movss dword [ebx + 0x3fe4], xmm0
mov eax, dword [ebx + 0x3ff8]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x4014]
mov dword [ebx + 0x400c], eax
mov al, byte [ebx + 0x3fec]
mov byte [ebx + 0x4009], al
mov eax, dword [ebx + 0x5c70]
movss dword [ebx + 0x4014], xmm0
mov dword [ebx + 0x4004], ecx
mov dword [ebx + 0x3fe0], 0
mov byte [ebx + 0x3fed], 0
mov byte [ebx + 0x4008], 0
mov byte [ebx + 0x3fe8], 0
test eax, eax
je 0x408a8d
cmp ecx, eax
je 0x408a8d
mov dword [ebx + 0x5c70], 0
test ecx, ecx
jne 0x408aab
mov dword [ebx + 0x48d4], ecx
mov dword [ebx + 0x48c8], ecx
mov byte [ebx + 0x48cc], cl
mov dword [ebx + 0x48d4], ecx
jmp 0x408ad6
mov eax, dword [ebx + 0x48d4]
test eax, eax
je 0x408ad6
test al, 2
je 0x408ad6
mov esi, dword [ebx + 0x3fdc]
mov edx, 0x20e
mov ecx, edi
call fcn.00403a10
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov ecx, dword [ebx + 0x4d60]
test ecx, ecx
je 0x408af9
movss xmm0, dword [ebx + 0x4d7c]
comiss xmm0, dword [ebx + 0x3cdc]
jb 0x408b03
mov dword [ebx + 0x4d70], ecx
jmp 0x408b03
mov dword [ebx + 0x4d70], 0
mov eax, dword [ebx + 0x3f90]
test eax, eax
je 0x408b29
movss xmm0, dword [ebx + 0x4d7c]
comiss xmm0, dword [ebx + 0x3cdc]
jb 0x408b33
mov eax, dword [eax + 8]
mov dword [ebx + 0x4d74], eax
jmp 0x408b33
mov dword [ebx + 0x4d74], 0
movss xmm0, dword [ebx + 0x4d68]
mov dword [ebx + 0x4d64], ecx
test ecx, ecx
je 0x408b5e
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4d60], 0
movss dword [ebx + 0x4d68], xmm0
jmp 0x408b9e
comiss xmm0, dword [0x439518]
jbe 0x408ba8
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x439554]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4d6c]
addss xmm1, xmm1
movss dword [ebx + 0x4d6c], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x408ba8
mov dword [ebx + 0x4d68], 0
mov dword [ebx + 0x4d6c], 0
mov eax, dword [ebx + 0x4c98]
mov dword [ebx + 0x4c9c], eax
mov dword [ebx + 0x4c98], 0
mov dword [ebx + 0x4c94], 0x7f7fffff
mov word [ebx + 0x4c25], 0
mov dword [ebx + 0x4ca4], 0
call fcn.00410b90
call fcn.00414a20
call fcn.00411090
call fcn.00407f40
mov esi, dword [0x43c648]
mov ecx, dword [esi + 0x3f98]
test ecx, ecx
je 0x408ca7
mov eax, dword [esi + 0x3fdc]
mov dword [esi + 0x3fe0], eax
cmp dword [esi + 0x4004], eax
jne 0x408c1e
mov byte [esi + 0x4008], 1
cmp byte [esi + 0xe08], 0
mov edi, dword [ecx + 0x308]
je 0x408c9b
lea eax, [esi + 0xe00]
mov ecx, eax
test eax, eax
jne 0x408c3f
lea ecx, [esi + 0xe00]
movss xmm0, dword [ecx]
movss xmm1, dword [0x43964c]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x408c9b
comiss xmm2, xmm1
jb 0x408c9b
movss xmm0, dword [eax]
lea edx, [ebp - 0x28]
subss xmm0, dword [esi + 0x3ff0]
push 1
mov ecx, edi
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3ff4]
movss dword [ebp - 0x24], xmm0
call fcn.0040fd60
mov ecx, dword [esi + 0x3f98]
add esp, 4
xor edx, edx
call fcn.0040f970
jmp 0x408ce3
mov dword [esi + 0x3f98], 0
jmp 0x408cda
mov ecx, dword [esi + 0x3ff8]
test ecx, ecx
je 0x408ce3
mov eax, dword [esi + 0x3fdc]
cmp dword [ecx + 0x74], eax
jne 0x408ce3
mov dword [esi + 0x3fe0], eax
cmp dword [esi + 0x4004], eax
jne 0x408cd1
mov byte [esi + 0x4008], 1
cmp byte [esi + 0xe08], 0
jne 0x408ce3
xor edx, edx
xor ecx, ecx
call fcn.00407490
mov eax, dword [0x43c648]
movss xmm2, dword [0x4395e0]
mov edx, dword [eax + 0x4a08]
sub edx, 1
js 0x408d27
mov eax, dword [eax + 0x4a10]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop word [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x408d1f
test dword [ecx + 0xc], 0x8000000
jne 0x408d41
sub eax, 0x28
sub edx, 1
jns 0x408d10
cmp dword [ebx + 0x4bf8], 0
je 0x408d5c
movss xmm0, dword [ebx + 0x4c08]
comiss xmm0, dword [0x439518]
jbe 0x408d5c
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4c20]
minss xmm1, dword [0x4395a8]
jmp 0x408d7d
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x4395ec]
movss xmm1, dword [ebx + 0x4c20]
subss xmm1, xmm0
maxss xmm1, dword [0x439518]
movss dword [ebx + 0x4c20], xmm1
movups xmm0, xmmword [ebx + 0x5d7c]
mov dword [ebx + 0x4d78], 0
mov dword [ebx + 0x5ff4], 0xffffffff
mov dword [ebx + 0x5ff0], 0xffffffff
mov dword [ebx + 0x5fec], 0xffffffff
movups xmmword [ebx + 0x5d8c], xmm0
mov byte [ebx + 0x5d7c], 0
call fcn.00411420
cmp byte [ebx + 0x3f17], 0
jne 0x408df4
movss xmm0, dword [ebx + 0x4c]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x408df4
movsd xmm1, qword [ebx + 0x3f00]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 4], xmm1
jmp 0x408df9
movss xmm1, dword [ebp - 4]
mov edi, dword [ebx + 0x3f48]
mov eax, dword [ebx + 0x3f40]
lea eax, [edi + eax*4]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x408ed1
mov ebx, eax
nop word [eax + eax]
mov esi, dword [edi]
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 0x408ebe
cmp byte [esi + 0x364], al
jne 0x408ebe
comiss xmm1, dword [esi + 0x244]
jbe 0x408ebe
mov ecx, dword [esi + 0x26c]
mov byte [esi + 0x364], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x35c], eax
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0xec]
mov dword [esi + 0x360], eax
call fcn.00401d00
mov ecx, dword [esi + 0x26c]
call fcn.00422590
lea ecx, [esi + 0x188]
call fcn.00401d00
lea ecx, [esi + 0x1b0]
call fcn.00401d00
lea ecx, [esi + 0x1bc]
call fcn.00401d00
movss xmm1, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x408e20
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4d0c], ecx
jle 0x409024
xor edx, edx
xorps xmm1, xmm1
mov dword [ebp - 0x18], edx
nop word [eax + eax]
mov eax, dword [ebx + 0x4d14]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x40900b
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x409008
mov esi, dword [ebx + 0x4cf4]
mov edi, dword [0x43c648]
add esi, edx
mov dword [ebp - 0x24], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x408fb0
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x408f9f
movsx eax, word [edi + 0x5ebc]
mov edx, dword [edi + 0x3f08]
add eax, 0xbd8
mov dword [ebp - 0x1c], edx
cmp dword [edi + eax*8], edx
lea eax, [edi + eax*8]
je 0x408f95
movsx eax, word [edi + 0x5ebc]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [edi + 0x5ebc], ax
cwde
add eax, 0xbd8
lea eax, [edi + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x5eb8]
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.00401d00
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x408fec
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [ecx + eax - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x408fd5
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
sub esi, dword [edi + 0x4cf4]
mov eax, dword [edi + 0x4d14]
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 [ebx + 0x4d0c]
jl 0x408ef0
imul edi, dword [ebx + 0x4ce0], 0x6c
mov esi, dword [ebx + 0x4ce8]
add edi, esi
cmp esi, edi
je 0x40906d
xorps xmm1, xmm1
nop word [eax + eax]
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x409066
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x409063
lea ecx, [esi + 0x14]
call fcn.00424f90
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x6c
cmp esi, edi
jne 0x409040
cmp byte [ebx + 0x3f17], 0
je 0x409119
mov esi, dword [0x43c648]
lea ecx, [esi + 0x49f0]
call fcn.00401d00
mov edi, dword [esi + 0x4a04]
test edi, edi
je 0x409114
mov ecx, dword [0x43c648]
mov dword [esi + 0x4a00], 0
mov dword [esi + 0x49fc], 0
test ecx, ecx
je 0x409103
movsx eax, word [ecx + 0x5ebc]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbd8
mov dword [ebp - 0x24], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x4090f9
movsx eax, word [ecx + 0x5ebc]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x24]
mov word [ecx + 0x5ebc], ax
cwde
add eax, 0xbd8
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5eb8]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x4a04], 0
call fcn.0042d2e0
mov eax, dword [ebx + 0x4a3c]
mov byte [ebx + 0x3f17], 0
test eax, eax
je 0x409182
cmp byte [eax + 0xaf], 0
jne 0x409182
mov eax, dword [0x43c648]
mov edx, dword [eax + 0x3f4c]
sub edx, 1
js 0x409176
mov eax, dword [eax + 0x3f54]
lea esi, [eax + edx*4]
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x40916e
cmp byte [ecx + 0xaf], 0
je 0x40916e
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x409178
sub esi, 4
sub edx, 1
jns 0x409150
xor ecx, ecx
mov edx, 1
call fcn.0040f970
mov ecx, dword [ebx + 0x3f68]
test ecx, ecx
jns 0x4091a8
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 + 0x3f64]
call fcn.00419e80
mov dword [ebx + 0x3f64], 0
mov ecx, dword [ebx + 0x4a18]
test ecx, ecx
jns 0x4091d8
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 + 0x4a14]
call fcn.00419ce0
lea esi, [ebx + 0x49f0]
mov dword [ebx + 0x4a14], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x409207
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.004196f0
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40921c
push 8
mov ecx, esi
call fcn.004196f0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push ecx
mov dword [eax + ecx*4], 0
lea ecx, [ebx + 0x49fc]
inc dword [esi]
call fcn.004193c0
call fcn.00418cb0
mov edx, dword [0x43c648]
mov esi, edx
mov dword [esi + 0x3fc4], 0
mov eax, dword [esi + 0x5e94]
inc eax
cmp dword [esi + 0x3f08], eax
jne 0x40934b
mov edi, dword [esi + 0x3fcc]
test edi, edi
jne 0x409270
mov edi, dword [esi + 0x3fdc]
cmp dword [esi + 0x5e9c], edi
je 0x4092c3
lea eax, [esi + 0x5ea0]
mov dword [esi + 0x5e9c], edi
mov dword [esi + 0x5e98], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x4092bd
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 + 0x5ea0]
call fcn.0041a020
mov edx, dword [0x43c648]
lea eax, [esi + 0x5ea0]
mov dword [eax], 0
test edi, edi
je 0x40934b
mov eax, dword [esi + 0x5e98]
test eax, eax
js 0x409314
mov ecx, eax
cmp eax, dword [esi + 0x5ea0]
jge 0x409327
mov ebx, dword [esi + 0x5ea8]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x40930d
mov edx, dword [esi + 0x5ea8]
lea ebx, [eax + eax*8]
mov ecx, eax
cmp byte [edx + ebx*8 + 4], 2
mov ebx, dword [ebp - 8]
mov edx, dword [0x43c648]
jle 0x409327
inc eax
mov dword [esi + 0x5e98], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x409323
mov dword [esi + 0x3fc4], edi
jmp 0x40934b
test ecx, ecx
js 0x40934b
cmp ecx, dword [esi + 0x5ea0]
jge 0x40934b
mov eax, dword [esi + 0x5ea8]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3fc4], eax
mov eax, dword [esi + 0x5ea8]
inc byte [eax + ecx*8 + 4]
movss xmm0, dword [edx + 0x5e6c]
xorps xmm1, xmm1
comiss xmm1, xmm0
jae 0x40940e
mov ecx, dword [edx + 0x49bc]
mulss xmm0, dword [0x4395e0]
shl ecx, 4
cvtps2pd xmm0, xmm0
lea eax, [ecx + 0x3994]
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 [0x439574]
lea edx, [esi + 0x3990]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x398c]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.00404a40
mov edx, dword [0x43c648]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edx + 0x49bc]
add eax, eax
mov dword [edx + eax*8 + 0x3998], 0x3f800000
movss xmm0, dword [edx + 0x5e6c]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x5e6c], xmm0
jb 0x40940e
mov eax, dword [edx + 0x49bc]
cmp eax, 0x35
je 0x409404
movups xmm0, xmmword [edx + 0x5e70]
add eax, eax
movups xmmword [edx + eax*8 + 0x398c], xmm0
mov dword [edx + 0x49bc], 0x35
mov al, byte [ebx + 0x5e5d]
test al, al
je 0x409433
sub al, 1
mov byte [ebx + 0x5e5d], al
jne 0x409433
mov dword [ebx + 0x48e0], 0
mov byte [ebx + 0x5e5e], 0
mov al, byte [ebx + 0x5e5c]
test al, al
je 0x40946c
sub al, 1
mov byte [ebx + 0x5e5c], al
jne 0x40946c
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.00418920
mov eax, dword [ebx + 0x5e58]
add esp, 4
not eax
mov dword [ebx + 0x5e58], 0
and dword [ebx + 0x5e38], eax
mov eax, dword [0x43c648]
xor edx, edx
mov byte [ebx + 0x3f15], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x4954], 2
mov dword [eax + 0x4974], 0x43c80000
mov dword [eax + 0x4978], 0x43c80000
mov dword [eax + 0x495c], 4
call fcn.0040d1d0
add esp, 4
cmp byte [ebx + 0x66], 0
je 0x4094e9
mov cl, byte [ebx + 0x5e64]
cmp cl, 0xff
jne 0x4094c3
xor edx, edx
jmp 0x4094ec
mov eax, dword [ebx + 0x3f08]
and eax, 0x80000003
jns 0x4094d5
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 0x4094ec
or dl, 0xff
mov byte [ebx + 0x5e64], dl
mov eax, dword [ebx + 0x5dd4]
mov esi, dword [ebx + 0x5ddc]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40951f
cmp dword [esi + 4], 1
jne 0x409518
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x409508
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret