Function at 0x40f220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [0x45e6e8]
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x5dbc]
sub eax, 1
mov dword [ebp - 0x10], eax
js 0x40f2ae
lea edi, [eax + eax*4]
shl edi, 2
nop word [eax + eax]
mov ecx, dword [ebx + 0x5dc4]
cmp dword [ecx + edi + 4], 7
jne 0x40f2a3
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 + 0x5dbc]
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 + 0x5dbc]
dec eax
sub edi, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x40f250
mov eax, dword [ebx + 0x5dbc]
mov esi, dword [ebx + 0x5dc4]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x40f2db
cmp dword [esi + 4], 0
jne 0x40f2d4
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x40f2c4
mov esi, dword [0x45e6e8]
cmp byte [esi + 0x4a], 0
je 0x40f2f1
test byte [esi + 0xc], 2
jne 0x40f2f1
mov byte [esi + 0x4a], 0
cmp byte [esi + 0x5d84], 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 0x40f3a8
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40f3a1
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.0040ac40
mov edi, eax
add esp, 8
test edi, edi
je 0x40f3a1
mov edx, dword [ebp - 4]
test edx, edx
je 0x40f340
mov ecx, edi
call fcn.00420a10
mov ecx, dword [0x45e6e8]
test ecx, ecx
je 0x40f39a
movsx eax, word [ecx + 0x5ea4]
mov edx, dword [ecx + 0x3f10]
add eax, 0xbd5
mov dword [ebp - 0x1c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x40f390
movsx eax, word [ecx + 0x5ea4]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x1c]
mov word [ecx + 0x5ea4], ax
cwde
add eax, 0xbd5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ea0]
push edi
call dword [ebp - 0x10]
add esp, 4
mov byte [esi + 0x5d84], 1
movss xmm0, dword [esi + 0x5d88]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x40f430
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5d88], xmm0
jb 0x40f430
mov edi, dword [esi + 0x20]
test edi, edi
je 0x40f41f
mov eax, dword [0x45e6e8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5d88], 0
call fcn.00420c30
mov edx, 0x45535c
mov dword [ebp - 0x1c], eax
mov ecx, edi
call fcn.0040aba0
mov edi, eax
test edi, edi
je 0x40f426
push edi
push dword [ebp - 4]
push 1
push dword [ebp - 0x1c]
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 0x40f426
mov byte [esi + 0x96], 1
mov dword [esi + 0x5d88], 0
movss xmm0, dword [ebx + 0x18]
xor eax, eax
inc dword [ebx + 0x3f10]
cvtps2pd xmm0, xmm0
mov byte [ebx + 0x3f1c], 1
mov word [ebx + 0x5ce8], ax
mov dword [ebx + 0x3f84], eax
addsd xmm0, qword [ebx + 0x3f08]
movsd qword [ebx + 0x3f08], xmm0
mov ecx, dword [ebx + 0x5cfc]
test ecx, ecx
jns 0x40f48a
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 + 0x5cf8]
call fcn.004225d0
mov dword [ebx + 0x5cf8], 0
mov ecx, 0x3c
mov eax, dword [ebx + 0x5fc8]
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [ebx + eax*4 + 0x5ed8]
addss xmm0, dword [ebx + 0x5fd0]
movss dword [ebx + 0x5fd0], xmm0
movss dword [ebx + eax*4 + 0x5ed8], xmm1
mov eax, dword [ebx + 0x5fc8]
inc eax
movss xmm1, dword [ebx + 0x5fd0]
cdq
idiv ecx
mov eax, dword [ebx + 0x5fcc]
movss xmm0, dword [0x45aea0]
inc eax
cmp eax, ecx
mov dword [ebx + 0x5fc8], edx
movss dword [ebp - 4], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x45aca0]
mov dword [ebx + 0x5fcc], ecx
jbe 0x40f520
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x45ad54]
divss xmm0, xmm1
movss dword [ebx + 0x9c], xmm0
mov ecx, dword [ebx + 0x3f38]
test ecx, ecx
jns 0x40f54e
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 + 0x3f34]
call fcn.00422d90
mov dword [ebx + 0x3f34], 0
mov cl, byte [ebx + 0x46]
call fcn.00419680
mov edi, dword [0x45e6e8]
xorps xmm3, xmm3
mov eax, dword [edi + 0x4a28]
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 + 0x4a28]
mov eax, dword [edi + 0x4a20]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x40f67d
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 0x40f5b0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
mov byte [eax + 0x10], 1
mov esi, dword [edi + 0x38]
test esi, esi
jne 0x40f693
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm1, dword [edi + 0x30]
movss xmm2, dword [0x45ad54]
mov ecx, dword [edi + 0x3f94]
movaps xmm0, xmm2
mov dword [edi + 0x3cf8], esi
mulss xmm1, dword [esi + 0x10]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [edi + 0x3d00], xmm0
test ecx, ecx
je 0x40f6ef
mov eax, dword [ecx]
movss xmm0, dword [ecx + 0x264]
mulss xmm0, dword [eax + 0x3d00]
mov eax, dword [ecx + 0x300]
test eax, eax
je 0x40f6f2
mulss xmm0, dword [eax + 0x264]
jmp 0x40f6f2
movaps xmm0, xmm3
movss xmm7, dword [ebp - 4]
movss xmm5, dword [0x45aeec]
movaps xmm6, xmm7
movss dword [edi + 0x3cfc], xmm0
movaps xmm4, xmm5
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [edi + 0x3d04], eax
lea eax, [edx + 0x60]
mov dword [edi + 0x3d08], ecx
mov dword [edi + 0x3f00], eax
mov dword [edi + 0x3d0c], esi
movss dword [edi + 0x3d10], xmm0
mov ecx, dword [ebx + 0x4a28]
mov eax, dword [ebx + 0x4a20]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40f79b
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 0x40f774
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x40f77c
movaps xmm6, xmm2
comiss xmm0, xmm5
jbe 0x40f784
movaps xmm5, xmm0
comiss xmm1, xmm4
jbe 0x40f78c
movaps xmm4, xmm1
add ecx, 4
cmp ecx, edx
jne 0x40f750
movss xmm2, dword [0x45ad54]
mov eax, dword [ebx + 0x398c]
movss xmm1, dword [ebx + 0x3990]
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 + 0x3d14], eax
movups xmmword [ebx + 0x3d1c], xmm0
movss xmm0, dword [ebx + 0x3d18]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40f8c7
movss dword [ebx + 0x3d18], xmm1
xor esi, esi
mov edi, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x40f872
movss xmm1, dword [ebx + 0x3d18]
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 [0x45adf8]
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 0x40f868
mov eax, 4
jmp 0x40f877
cmp eax, 0x200
cmovg eax, edi
jmp 0x40f877
mov eax, 0x30
movss xmm2, dword [0x45ad54]
mov byte [ebx + esi + 0x3ec0], al
inc esi
cmp esi, 0x40
jl 0x40f7f2
movsd xmm0, qword [0x45ad78]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x45ad54]
cvtsd2ss xmm0, xmm0
mov edi, dword [0x45e6e8]
subss xmm1, xmm0
movss xmm0, dword [ebx + 0x3d18]
divss xmm0, xmm1
movss dword [ebx + 0x3ebc], xmm0
xor edx, edx
mov dword [ebx + 0x3d2c], 0
cmp byte [ebx + 0x3988], dl
je 0x40f8ea
mov dword [ebx + 0x3d2c], 1
mov edx, 1
cmp byte [ebx + 0x3989], 0
mov ecx, edx
je 0x40f90c
mov eax, dword [ebx + 0x3cf8]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x40f90c
or ecx, 2
mov dword [ebx + 0x3d2c], ecx
cmp byte [ebx + 0x398a], 0
je 0x40f91e
or ecx, 4
mov dword [ebx + 0x3d2c], ecx
test byte [ebx + 0xc], 8
je 0x40f92d
or ecx, 8
mov dword [ebx + 0x3d2c], ecx
mov ecx, dword [ebx + 0x4a28]
mov eax, dword [ebx + 0x4a20]
lea edx, [ecx + eax*4]
cmp ecx, edx
je 0x40f94d
mov eax, dword [ecx]
add ecx, 4
mov byte [eax + 0x38], 0
cmp ecx, edx
jne 0x40f940
cmp byte [ebx + 0x4c0c], 0
je 0x40f981
mov eax, dword [ebx + 0x4c24]
cmp eax, dword [ebx + 0x3fe4]
jne 0x40f981
cmp dword [edi + 0x3fe4], eax
jne 0x40f972
mov dword [edi + 0x3fe8], eax
cmp dword [edi + 0x400c], eax
jne 0x40f981
mov byte [edi + 0x4010], 1
cmp dword [ebx + 0x3fd4], 0
jne 0x40f996
mov dword [ebx + 0x3fdc], 0
jmp 0x40f9a8
mov eax, dword [ebx + 0x3fd0]
test eax, eax
je 0x40f9b2
cmp dword [ebx + 0x3fe4], eax
jne 0x40f9b2
mov dword [ebx + 0x3fe0], 0
mov eax, dword [ebx + 0x3fd0]
test eax, eax
je 0x40f9ec
movss xmm1, dword [ebx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [ebx + 0x3fdc]
movss dword [ebx + 0x3fdc], xmm0
cmp dword [ebx + 0x3fe4], eax
je 0x40f9ec
addss xmm1, dword [ebx + 0x3fe0]
movss dword [ebx + 0x3fe0], xmm1
mov dword [ebx + 0x3fd4], eax
mov eax, dword [ebx + 0x3fe4]
mov dword [ebx + 0x3fd0], 0
mov word [ebx + 0x3fd8], 0
test eax, eax
je 0x40fa44
cmp dword [ebx + 0x3fe8], eax
je 0x40fa44
cmp dword [ebx + 0x400c], eax
jne 0x40fa44
test byte [ebx + 0x5e20], 1
je 0x40fa35
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.00421550
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.0040e390
mov edi, dword [0x45e6e8]
mov ecx, dword [ebx + 0x3fe4]
test ecx, ecx
je 0x40fa63
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x3fec]
movss dword [ebx + 0x3fec], xmm0
mov eax, dword [ebx + 0x4000]
movss xmm0, dword [ebx + 0x18]
addss xmm0, dword [ebx + 0x401c]
mov dword [ebx + 0x4014], eax
mov al, byte [ebx + 0x3ff4]
mov byte [ebx + 0x4011], al
mov eax, dword [ebx + 0x5c58]
movss dword [ebx + 0x401c], xmm0
mov dword [ebx + 0x400c], ecx
mov dword [ebx + 0x3fe8], 0
mov byte [ebx + 0x3ff5], 0
mov byte [ebx + 0x4010], 0
mov byte [ebx + 0x3ff0], 0
test eax, eax
je 0x40facd
cmp ecx, eax
je 0x40facd
mov dword [ebx + 0x5c58], 0
test ecx, ecx
jne 0x40faeb
mov dword [ebx + 0x48c8], ecx
mov dword [ebx + 0x48bc], ecx
mov byte [ebx + 0x48c0], cl
mov dword [ebx + 0x48c8], ecx
jmp 0x40fb16
mov eax, dword [ebx + 0x48c8]
test eax, eax
je 0x40fb16
test al, 2
je 0x40fb16
mov esi, dword [ebx + 0x3fe4]
mov edx, 0x20e
mov ecx, edi
call fcn.00409c30
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov ecx, dword [ebx + 0x4d48]
test ecx, ecx
je 0x40fb39
movss xmm0, dword [ebx + 0x4d64]
comiss xmm0, dword [ebx + 0x3ce4]
jb 0x40fb43
mov dword [ebx + 0x4d58], ecx
jmp 0x40fb43
mov dword [ebx + 0x4d58], 0
mov eax, dword [ebx + 0x3f98]
test eax, eax
je 0x40fb69
movss xmm0, dword [ebx + 0x4d64]
comiss xmm0, dword [ebx + 0x3ce4]
jb 0x40fb73
mov eax, dword [eax + 8]
mov dword [ebx + 0x4d5c], eax
jmp 0x40fb73
mov dword [ebx + 0x4d5c], 0
movss xmm0, dword [ebx + 0x4d50]
mov dword [ebx + 0x4d4c], ecx
test ecx, ecx
je 0x40fb9e
addss xmm0, dword [ebx + 0x18]
mov dword [ebx + 0x4d48], 0
movss dword [ebx + 0x4d50], xmm0
jmp 0x40fbde
comiss xmm0, dword [0x45aca0]
jbe 0x40fbe8
movss xmm1, dword [ebx + 0x18]
movss xmm0, dword [0x45acf8]
movaps xmm2, xmm1
addss xmm2, dword [ebx + 0x4d54]
addss xmm1, xmm1
movss dword [ebx + 0x4d54], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x40fbe8
mov dword [ebx + 0x4d50], 0
mov dword [ebx + 0x4d54], 0
mov eax, dword [ebx + 0x4c80]
mov dword [ebx + 0x4c84], eax
mov dword [ebx + 0x4c80], 0
mov dword [ebx + 0x4c7c], 0x7f7fffff
mov word [ebx + 0x4c0d], 0
mov dword [ebx + 0x4c8c], 0
call fcn.004183e0
call fcn.0041d020
call fcn.004188e0
call fcn.0040ef80
mov esi, dword [0x45e6e8]
mov ecx, dword [esi + 0x3fa0]
test ecx, ecx
je 0x40fce7
mov eax, dword [esi + 0x3fe4]
mov dword [esi + 0x3fe8], eax
cmp dword [esi + 0x400c], eax
jne 0x40fc5e
mov byte [esi + 0x4010], 1
cmp byte [esi + 0xe0c], 0
mov edi, dword [ecx + 0x308]
je 0x40fcdb
lea eax, [esi + 0xe04]
mov ecx, eax
test eax, eax
jne 0x40fc7f
lea ecx, [esi + 0xe04]
movss xmm0, dword [ecx]
movss xmm1, dword [0x45aee8]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x40fcdb
comiss xmm2, xmm1
jb 0x40fcdb
movss xmm0, dword [eax]
lea edx, [ebp - 0x28]
subss xmm0, dword [esi + 0x3ff8]
push 1
mov ecx, edi
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3ffc]
movss dword [ebp - 0x24], xmm0
call fcn.004177b0
mov ecx, dword [esi + 0x3fa0]
add esp, 4
xor edx, edx
call fcn.004171d0
jmp 0x40fd23
mov dword [esi + 0x3fa0], 0
jmp 0x40fd1a
mov ecx, dword [esi + 0x4000]
test ecx, ecx
je 0x40fd23
mov eax, dword [esi + 0x3fe4]
cmp dword [ecx + 0x74], eax
jne 0x40fd23
mov dword [esi + 0x3fe8], eax
cmp dword [esi + 0x400c], eax
jne 0x40fd11
mov byte [esi + 0x4010], 1
cmp byte [esi + 0xe0c], 0
jne 0x40fd23
xor edx, edx
xor ecx, ecx
call fcn.0040e390
mov eax, dword [0x45e6e8]
movss xmm2, dword [0x45ae24]
mov edx, dword [eax + 0x49f8]
sub edx, 1
js 0x40fd67
mov eax, dword [eax + 0x4a00]
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 0x40fd5f
test dword [ecx + 0xc], 0x8000000
jne 0x40fd81
sub eax, 0x28
sub edx, 1
jns 0x40fd50
cmp dword [ebx + 0x4be0], 0
je 0x40fd9c
movss xmm0, dword [ebx + 0x4bf0]
comiss xmm0, dword [0x45aca0]
jbe 0x40fd9c
movss xmm1, dword [ebx + 0x18]
mulss xmm1, xmm2
addss xmm1, dword [ebx + 0x4c08]
minss xmm1, dword [0x45ad54]
jmp 0x40fdbd
movss xmm0, dword [ebx + 0x18]
mulss xmm0, dword [0x45ae34]
movss xmm1, dword [ebx + 0x4c08]
subss xmm1, xmm0
maxss xmm1, dword [0x45aca0]
movss dword [ebx + 0x4c08], xmm1
movups xmm0, xmmword [ebx + 0x5d64]
mov dword [ebx + 0x4d60], 0
mov dword [ebx + 0x5fdc], 0xffffffff
mov dword [ebx + 0x5fd8], 0xffffffff
mov dword [ebx + 0x5fd4], 0xffffffff
movups xmmword [ebx + 0x5d74], xmm0
mov byte [ebx + 0x5d64], 0
call fcn.00418c70
cmp byte [ebx + 0x3f1f], 0
jne 0x40fe34
movss xmm0, dword [ebx + 0x4c]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x40fe34
movsd xmm1, qword [ebx + 0x3f08]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 4], xmm1
jmp 0x40fe39
movss xmm1, dword [ebp - 4]
mov edi, dword [ebx + 0x3f50]
mov eax, dword [ebx + 0x3f48]
lea eax, [edi + eax*4]
mov dword [ebp - 0x1c], eax
cmp edi, eax
je 0x40ff11
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 0x40fefe
cmp byte [esi + 0x360], al
jne 0x40fefe
comiss xmm1, dword [esi + 0x244]
jbe 0x40fefe
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.00407b90
mov ecx, dword [esi + 0x26c]
call fcn.0042b470
lea ecx, [esi + 0x188]
call fcn.00407b90
lea ecx, [esi + 0x1b0]
call fcn.00407b90
lea ecx, [esi + 0x1bc]
call fcn.00407b90
movss xmm1, dword [ebp - 4]
add edi, 4
cmp edi, ebx
jne 0x40fe60
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4cf4], ecx
jle 0x410078
xor edi, edi
xorps xmm1, xmm1
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edx
nop
mov eax, dword [ebx + 0x4cfc]
movss xmm0, dword [edx + eax]
comiss xmm0, xmm1
jb 0x410059
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x410056
mov esi, dword [ebx + 0x4cdc]
add esi, edi
mov edi, dword [0x45e6e8]
mov dword [ebp - 0x24], edi
mov dword [esi + 0x1a8], 0
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x40fff4
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x19c], 0
test edi, edi
je 0x40ffe3
movsx eax, word [edi + 0x5ea4]
mov edx, dword [edi + 0x3f10]
add eax, 0xbd5
mov dword [ebp - 0x20], edx
cmp dword [edi + eax*8], edx
lea eax, [edi + eax*8]
je 0x40ffd9
movsx eax, word [edi + 0x5ea4]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [edi + 0x5ea4], ax
cwde
add eax, 0xbd5
lea eax, [edi + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [edi + 0x5ea0]
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.00407b90
xor edx, edx
mov byte [esi + 0x1fc], 1
cmp dword [esi + 0x40], edx
jle 0x410037
xor ecx, ecx
or edi, 0xffffffff
nop dword [eax]
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [eax + ecx - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x410020
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
sub esi, dword [edi + 0x4cdc]
mov eax, dword [edi + 0x4cfc]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
sar esi, 9
mov dword [eax + esi*4], 0xbf800000
xorps xmm1, xmm1
inc ecx
add edi, 0x200
add edx, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edx
cmp ecx, dword [ebx + 0x4cf4]
jl 0x40ff30
imul edi, dword [ebx + 0x4cc8], 0x6c
mov esi, dword [ebx + 0x4cd0]
add edi, esi
cmp esi, edi
je 0x4100bd
xorps xmm1, xmm1
nop
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jb 0x4100b6
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x4100b3
lea ecx, [esi + 0x14]
call fcn.0042e2e0
mov dword [esi + 4], 0xbf800000
xorps xmm1, xmm1
add esi, 0x6c
cmp esi, edi
jne 0x410090
cmp byte [ebx + 0x3f1f], 0
je 0x41016d
mov esi, dword [0x45e6e8]
lea ecx, [esi + 0x49e0]
call fcn.00407b90
mov edi, dword [esi + 0x49f4]
test edi, edi
je 0x410168
mov ecx, dword [0x45e6e8]
mov dword [esi + 0x49f0], 0
mov dword [esi + 0x49ec], 0
test ecx, ecx
je 0x410157
movsx eax, word [ecx + 0x5ea4]
mov edx, dword [ecx + 0x3f10]
add eax, 0xbd5
mov dword [ebp - 0x24], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x41014d
movsx eax, word [ecx + 0x5ea4]
inc eax
cdq
idiv dword [ebp - 0xc]
movzx eax, dx
mov edx, dword [ebp - 0x24]
mov word [ecx + 0x5ea4], ax
cwde
add eax, 0xbd5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ea0]
push edi
call dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x49f4], 0
call fcn.00436a80
mov eax, dword [ebx + 0x4a2c]
mov byte [ebx + 0x3f1f], 0
test eax, eax
je 0x4101d2
cmp byte [eax + 0xaf], 0
jne 0x4101d2
mov eax, dword [0x45e6e8]
mov edx, dword [eax + 0x3f54]
sub edx, 1
js 0x4101c6
mov eax, dword [eax + 0x3f5c]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x4101be
cmp byte [ecx + 0xaf], 0
je 0x4101be
mov eax, dword [ecx + 0xc]
and eax, 0x10200
cmp eax, 0x10200
jne 0x4101c8
sub esi, 4
sub edx, 1
jns 0x4101a0
xor ecx, ecx
mov edx, 1
call fcn.004171d0
mov ecx, dword [ebx + 0x3f70]
test ecx, ecx
jns 0x4101f8
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 + 0x3f6c]
call fcn.00422cd0
mov dword [ebx + 0x3f6c], 0
mov ecx, dword [ebx + 0x4a08]
test ecx, ecx
jns 0x410228
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 + 0x4a04]
call fcn.00422c00
lea esi, [ebx + 0x49e0]
mov dword [ebx + 0x4a04], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x410257
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.004225d0
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x41026c
push 8
mov ecx, esi
call fcn.004225d0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [ebx + 0x49ec]
inc dword [esi]
call fcn.00422290
call fcn.004218e0
mov edx, dword [0x45e6e8]
mov esi, edx
mov dword [esi + 0x3fcc], 0
mov eax, dword [esi + 0x5e7c]
inc eax
cmp dword [esi + 0x3f10], eax
jne 0x41039c
mov edi, dword [esi + 0x3fd4]
test edi, edi
jne 0x4102c1
mov edi, dword [esi + 0x3fe4]
cmp dword [esi + 0x5e84], edi
je 0x410314
lea eax, [esi + 0x5e88]
mov dword [esi + 0x5e84], edi
mov dword [esi + 0x5e80], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x41030e
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 + 0x5e88]
call fcn.00422e70
mov edx, dword [0x45e6e8]
lea eax, [esi + 0x5e88]
mov dword [eax], 0
test edi, edi
je 0x41039c
mov eax, dword [esi + 0x5e80]
test eax, eax
js 0x410365
mov ecx, eax
cmp eax, dword [esi + 0x5e88]
jge 0x410378
mov ebx, dword [esi + 0x5e90]
lea ecx, [eax + eax*8]
cmp byte [ebx + ecx*8 + 5], 0
mov ebx, dword [ebp - 8]
jne 0x41035e
mov edx, dword [esi + 0x5e90]
lea ebx, [eax + eax*8]
mov ecx, eax
cmp byte [edx + ebx*8 + 4], 2
mov ebx, dword [ebp - 8]
mov edx, dword [0x45e6e8]
jle 0x410378
inc eax
mov dword [esi + 0x5e80], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x410374
mov dword [esi + 0x3fcc], edi
jmp 0x41039c
test ecx, ecx
js 0x41039c
cmp ecx, dword [esi + 0x5e88]
jge 0x41039c
mov eax, dword [esi + 0x5e90]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3fcc], eax
mov eax, dword [esi + 0x5e90]
inc byte [eax + ecx*8 + 4]
movss xmm0, dword [edx + 0x5e54]
xorps xmm1, xmm1
comiss xmm1, xmm0
jae 0x410460
mov ecx, dword [edx + 0x49ac]
mulss xmm0, dword [0x45ae24]
shl ecx, 4
cvtps2pd xmm0, xmm0
lea eax, [ecx + 0x399c]
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 [0x45ad14]
lea edx, [esi + 0x3998]
cvtsd2ss xmm0, xmm0
lea ecx, [edi + 0x3994]
movaps xmm2, xmm1
mulss xmm0, xmm1
addss xmm0, xmm1
call fcn.0040b120
mov edx, dword [0x45e6e8]
xorps xmm1, xmm1
add esp, 4
mov eax, dword [edx + 0x49ac]
add eax, 0x39a
add eax, eax
mov dword [edx + eax*8], 0x3f800000
movss xmm0, dword [edx + 0x5e54]
subss xmm0, dword [edx + 0x18]
comiss xmm1, xmm0
movss dword [edx + 0x5e54], xmm0
jb 0x410460
mov eax, dword [edx + 0x49ac]
cmp eax, 0x35
je 0x410456
movups xmm0, xmmword [edx + 0x5e58]
add eax, eax
movups xmmword [edx + eax*8 + 0x3994], xmm0
mov dword [edx + 0x49ac], 0x35
mov al, byte [ebx + 0x5e45]
test al, al
je 0x410485
sub al, 1
mov byte [ebx + 0x5e45], al
jne 0x410485
mov dword [ebx + 0x48d4], 0
mov byte [ebx + 0x5e46], 0
mov al, byte [ebx + 0x5e44]
test al, al
je 0x4104be
sub al, 1
mov byte [ebx + 0x5e44], al
jne 0x4104be
push str._Debug_Log:_Auto_disabled_some_ImGuiDebugLogFlags_after_2_frames__n
call fcn.00421550
mov eax, dword [ebx + 0x5e40]
add esp, 4
not eax
mov dword [ebx + 0x5e40], 0
and dword [ebx + 0x5e20], eax
mov eax, dword [0x45e6e8]
xor edx, edx
mov byte [ebx + 0x3f1d], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x4944], 2
mov dword [eax + 0x4964], 0x43c80000
mov dword [eax + 0x4968], 0x43c80000
mov dword [eax + 0x494c], 4
call fcn.00414700
add esp, 4
cmp byte [ebx + 0x66], 0
je 0x41053b
mov cl, byte [ebx + 0x5e4c]
cmp cl, 0xff
jne 0x410515
xor edx, edx
jmp 0x41053e
mov eax, dword [ebx + 0x3f10]
and eax, 0x80000003
jns 0x410527
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 0x41053e
or dl, 0xff
mov byte [ebx + 0x5e4c], dl
mov eax, dword [ebx + 0x5dbc]
mov esi, dword [ebx + 0x5dc4]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x410577
nop word [eax + eax]
cmp dword [esi + 4], 1
jne 0x410570
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
add esp, 8
add esi, 0x14
cmp esi, edi
jne 0x410560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret