Function at 0x40ab00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [0x4be710]
mov dword [esp + 0x34], edi
mov eax, dword [edi + 0x5a60]
sub eax, 1
mov dword [esp + 0x28], eax
js 0x40ab90
lea ebx, [eax + eax*4]
shl ebx, 2
nop dword [eax + eax]
mov ecx, dword [edi + 0x5a68]
cmp dword [ecx + ebx + 4], 7
jne 0x40ab84
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 + 0x5a60]
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [eax*4 - 0x14]
push eax
lea eax, [edx + 0x14]
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x34]
add esp, 0xc
dec dword [edi + 0x5a60]
dec eax
sub ebx, 0x14
mov dword [esp + 0x28], eax
test eax, eax
jns 0x40ab30
xor esi, esi
cmp dword [edi + 0x5a60], esi
jle 0x40abc4
xor ebx, ebx
nop dword [eax]
mov eax, dword [edi + 0x5a68]
add eax, ebx
cmp dword [eax + 4], 0
jne 0x40abb8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a60]
jl 0x40aba0
mov esi, dword [0x4be710]
cmp byte [esi + 0x66], 0
je 0x40abda
test byte [esi + 0xc], 2
jne 0x40abda
mov byte [esi + 0x66], 0
cmp byte [esi + 0x5a29], 0
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esp + 0x24], ebx
jne 0x40ac41
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40ac3a
push ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
call fcn.00407000
mov ecx, eax
add esp, 8
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x40ac3a
mov edx, dword [esp + 0x28]
test edx, edx
je 0x40ac25
call fcn.0041b7e0
mov ecx, dword [esp + 0x30]
mov eax, dword [0x4be710]
test eax, eax
je 0x40ac34
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov byte [esi + 0x5a29], 1
movss xmm0, dword [esi + 0x5a2c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x40acce
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5a2c], xmm0
jb 0x40acce
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x40acbd
mov eax, dword [0x4be710]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
mov dword [eax + 0x5a2c], 0
call fcn.0041ba10
mov edx, 0x4a18c8
mov dword [esp + 0x30], eax
mov ecx, ebx
call fcn.00406f00
mov ebx, eax
test ebx, ebx
je 0x40acc4
push ebx
push dword [esp + 0x2c]
push 1
push dword [esp + 0x3c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x40acc4
mov byte [esi + 0x9c], 1
mov dword [esi + 0x5a2c], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3de8]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3df4], 1
mov word [edi + 0x59ee], ax
mov dword [edi + 0x3e3c], eax
addsd xmm0, qword [edi + 0x3de0]
movsd qword [edi + 0x3de0], xmm0
mov ecx, dword [edi + 0x5a00]
test ecx, ecx
jns 0x40ad28
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 + 0x59fc]
call fcn.0041d120
mov dword [edi + 0x59fc], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x5c0c]
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
movss xmm2, dword [0x4a8e88]
subss xmm0, dword [edi + eax*4 + 0x5b1c]
addss xmm0, dword [edi + 0x5c14]
movss dword [edi + 0x5c14], xmm0
movss dword [edi + eax*4 + 0x5b1c], xmm1
mov eax, dword [edi + 0x5c0c]
inc eax
movss xmm1, dword [edi + 0x5c14]
cdq
idiv ecx
mov eax, dword [edi + 0x5c10]
movss xmm0, dword [0x4a914c]
inc eax
cmp eax, ecx
mov dword [edi + 0x5c0c], edx
movss dword [esp + 0x28], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x4a8dbc]
mov dword [edi + 0x5c10], ecx
jbe 0x40adc2
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
movss dword [edi + 0xa0], xmm0
mov ecx, dword [edi + 0x3798]
test ecx, ecx
jns 0x40adf0
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 + 0x3794]
call fcn.0041d740
mov dword [edi + 0x3794], 0
mov cl, byte [edi + 0x62]
call fcn.00414880
mov ebx, dword [0x4be710]
xor esi, esi
mov dword [esp + 0x30], ebx
xorps xmm3, xmm3
mov eax, dword [ebx + 0x47c4]
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
cmp dword [ebx + 0x47bc], esi
jle 0x40af1b
nop word [eax + eax]
mov eax, dword [ebx + 0x47c4]
movaps xmm2, xmm3
mov edx, dword [eax + esi*4]
inc esi
mov eax, dword [edx + 0x8c]
mov ecx, dword [edx + 0x90]
movss xmm0, dword [edx + 8]
mov dword [edx + 0x7c], eax
mov eax, dword [edx + 0x94]
mov dword [edx + 0x80], ecx
mov ecx, dword [edx + 0x98]
mov dword [edx + 0x84], eax
mov dword [edx + 0x88], ecx
mov dword [edx + 0x94], 0
mov dword [edx + 0x98], 0
mov dword [edx + 0x8c], 0
mov dword [edx + 0x90], 0
addss xmm0, dword [edx + 0x80]
movss xmm1, dword [edx + 0x7c]
addss xmm1, dword [edx + 4]
movss dword [edx + 0x18], xmm0
movss xmm0, dword [edx + 0xc]
movss dword [edx + 0x14], xmm1
movaps xmm1, xmm3
subss xmm0, dword [edx + 0x7c]
addss xmm0, dword [edx + 0x84]
maxss xmm2, xmm0
movss xmm0, dword [edx + 0x10]
subss xmm0, dword [edx + 0x80]
addss xmm0, dword [edx + 0x88]
movss dword [edx + 0x1c], xmm2
maxss xmm1, xmm0
movss dword [edx + 0x20], xmm1
cmp esi, dword [ebx + 0x47bc]
jl 0x40ae50
mov eax, dword [edi + 0x48]
mov byte [eax + 0x10], 1
mov esi, dword [ebx + 0x54]
test esi, esi
jne 0x40af31
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x44]
mov esi, dword [eax]
movss xmm1, dword [ebx + 0x4c]
movss xmm2, dword [0x4a8e88]
mov ecx, dword [ebx + 0x3e48]
movaps xmm0, xmm2
mov dword [ebx + 0x3bd0], esi
mulss xmm1, dword [esi + 0x10]
mulss xmm1, dword [esi + 0x4c]
maxss xmm0, xmm1
movss dword [ebx + 0x3bd8], xmm0
test ecx, ecx
je 0x40af8d
mov eax, dword [ecx]
movss xmm0, dword [eax + 0x3bd8]
mov eax, dword [ecx + 0x2f8]
mulss xmm0, dword [ecx + 0x25c]
test eax, eax
je 0x40af90
mulss xmm0, dword [eax + 0x25c]
jmp 0x40af90
movaps xmm0, xmm3
movss xmm7, dword [esp + 0x28]
movss xmm4, dword [0x4a9194]
movaps xmm6, xmm7
movss dword [ebx + 0x3bd4], xmm0
movaps xmm5, xmm4
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [ebx + 0x3bdc], eax
lea eax, [edx + 0x60]
mov dword [ebx + 0x3be0], ecx
mov dword [ebx + 0x3dd8], eax
mov dword [ebx + 0x3be4], esi
movss dword [ebx + 0x3be8], xmm0
mov edx, dword [edi + 0x47bc]
test edx, edx
jle 0x40b03c
mov ecx, dword [edi + 0x47c4]
nop dword [eax + 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 0x40b014
movaps xmm7, xmm3
comiss xmm6, xmm2
jbe 0x40b01c
movaps xmm6, xmm2
comiss xmm0, xmm4
jbe 0x40b024
movaps xmm4, xmm0
comiss xmm1, xmm5
jbe 0x40b02c
movaps xmm5, xmm1
add ecx, 4
sub edx, 1
jne 0x40aff0
movss xmm2, dword [0x4a8e88]
movss dword [edi + 0x3bf4], xmm7
movss dword [edi + 0x3bf8], xmm6
movss dword [edi + 0x3bfc], xmm4
movss dword [edi + 0x3c00], xmm5
mov eax, dword [edi + 0x3878]
movss xmm1, dword [edi + 0x387c]
mov dword [edi + 0x3bec], eax
movss xmm0, dword [edi + 0x3bf0]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40b16b
movss dword [edi + 0x3bf0], xmm1
xor esi, esi
mov ebx, 0x200
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x40b118
movss xmm1, dword [edi + 0x3bf0]
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 [0x4a8ef0]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x40b10e
mov eax, 4
jmp 0x40b11d
cmp eax, 0x200
cmovg eax, ebx
jmp 0x40b11d
mov eax, 0x30
movss xmm2, dword [0x4a8e88]
mov byte [esi + edi + 0x3d98], al
inc esi
cmp esi, 0x40
jl 0x40b094
movsd xmm0, qword [0x4a8e98]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [0x4a8e88]
cvtsd2ss xmm0, xmm0
mov ebx, dword [esp + 0x30]
subss xmm1, xmm0
movss xmm0, dword [edi + 0x3bf0]
divss xmm0, xmm1
movss dword [edi + 0x3d94], xmm0
xor edx, edx
mov dword [edi + 0x3c04], 0
cmp byte [edi + 0x3874], dl
je 0x40b18e
mov dword [edi + 0x3c04], 1
mov edx, 1
cmp byte [edi + 0x3875], 0
mov ecx, edx
je 0x40b1b0
mov eax, dword [edi + 0x3bd0]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x40b1b0
or ecx, 2
mov dword [edi + 0x3c04], ecx
cmp byte [edi + 0x3876], 0
je 0x40b1c2
or ecx, 4
mov dword [edi + 0x3c04], ecx
test byte [edi + 0xc], 8
je 0x40b1d1
or ecx, 8
mov dword [edi + 0x3c04], ecx
xor esi, esi
cmp dword [edi + 0x47bc], esi
jle 0x40b202
nop dword [eax + eax]
mov eax, dword [edi + 0x47c4]
push 0x2c
push 0
mov eax, dword [eax + esi*4]
add eax, 0x38
push eax
call sub.VCRUNTIME140.dll_memset
inc esi
add esp, 0xc
cmp esi, dword [edi + 0x47bc]
jl 0x40b1e0
cmp byte [edi + 0x494c], 0
je 0x40b236
mov eax, dword [edi + 0x4964]
cmp eax, dword [edi + 0x3e94]
jne 0x40b236
cmp dword [ebx + 0x3e94], eax
jne 0x40b227
mov dword [ebx + 0x3e98], eax
cmp dword [ebx + 0x3ebc], eax
jne 0x40b236
mov byte [ebx + 0x3ec0], 1
cmp dword [edi + 0x3e84], 0
jne 0x40b24b
mov dword [edi + 0x3e8c], 0
jmp 0x40b25d
mov eax, dword [edi + 0x3e80]
test eax, eax
je 0x40b267
cmp dword [edi + 0x3e94], eax
jne 0x40b267
mov dword [edi + 0x3e90], 0
mov eax, dword [edi + 0x3e80]
test eax, eax
je 0x40b2a1
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e8c]
movss dword [edi + 0x3e8c], xmm0
cmp dword [edi + 0x3e94], eax
je 0x40b2a1
addss xmm1, dword [edi + 0x3e90]
movss dword [edi + 0x3e90], xmm1
mov dword [edi + 0x3e84], eax
mov eax, dword [edi + 0x3e94]
mov dword [edi + 0x3e80], 0
mov word [edi + 0x3e88], 0
test eax, eax
je 0x40b2f9
cmp dword [edi + 0x3e98], eax
je 0x40b2f9
cmp dword [edi + 0x3ebc], eax
jne 0x40b2f9
test byte [edi + 0x5ac0], 1
je 0x40b2ea
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.0041c330
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.0040a0e0
mov ebx, dword [0x4be710]
mov esi, dword [edi + 0x3e94]
test esi, esi
je 0x40b318
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x3e9c]
movss dword [edi + 0x3e9c], xmm0
mov eax, dword [edi + 0x3eb0]
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x3ecc]
mov dword [edi + 0x3ec4], eax
mov al, byte [edi + 0x3ea4]
mov byte [edi + 0x3ec1], al
mov eax, dword [edi + 0x5974]
movss dword [edi + 0x3ecc], xmm0
mov dword [edi + 0x3ebc], esi
mov dword [edi + 0x3e98], 0
mov byte [edi + 0x3ea5], 0
mov byte [edi + 0x3ec0], 0
mov byte [edi + 0x3ea0], 0
test eax, eax
je 0x40b382
cmp esi, eax
je 0x40b382
mov dword [edi + 0x5974], 0
test esi, esi
jne 0x40b3a1
mov dword [edi + 0x4698], esi
mov dword [edi + 0x4690], esi
mov byte [edi + 0x4694], 0
mov dword [edi + 0x4698], esi
jmp 0x40b3c6
mov eax, dword [edi + 0x4698]
test eax, eax
je 0x40b3c6
test al, 2
je 0x40b3c6
mov edx, 0x20e
mov ecx, ebx
call fcn.00406310
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov eax, dword [edi + 0x4a74]
movss xmm0, dword [edi + 0x4a7c]
mov dword [edi + 0x4a78], eax
test eax, eax
je 0x40b3f7
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4a74], 0
movss dword [edi + 0x4a7c], xmm0
jmp 0x40b437
comiss xmm0, dword [0x4a8dbc]
jbe 0x40b441
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x4a8e3c]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4a80]
addss xmm1, xmm1
movss dword [edi + 0x4a80], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x40b441
mov dword [edi + 0x4a7c], 0
mov dword [edi + 0x4a80], 0
mov eax, dword [edi + 0x49b0]
mov dword [edi + 0x49b4], eax
mov dword [edi + 0x49b0], 0
mov dword [edi + 0x49ac], 0x7f7fffff
mov word [edi + 0x494d], 0
mov dword [edi + 0x49bc], 0
call fcn.004135b0
call fcn.00418380
call fcn.00413a80
call fcn.0040a890
mov esi, dword [0x4be710]
mov ecx, dword [esi + 0x3e54]
test ecx, ecx
je 0x40b541
mov eax, dword [esi + 0x3e94]
mov dword [esi + 0x3e98], eax
cmp dword [esi + 0x3ebc], eax
jne 0x40b4b7
mov byte [esi + 0x3ec0], 1
cmp byte [esi + 0xdc8], 0
mov ebx, dword [ecx + 0x300]
je 0x40b535
lea eax, [esi + 0xdc0]
mov ecx, eax
test eax, eax
jne 0x40b4d8
lea ecx, [esi + 0xdc0]
movss xmm0, dword [ecx]
movss xmm1, dword [0x4a9190]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x40b535
comiss xmm2, xmm1
jb 0x40b535
movss xmm0, dword [eax]
lea edx, [esp + 0x38]
subss xmm0, dword [esi + 0x3ea8]
push 1
mov ecx, ebx
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x3eac]
movss dword [esp + 0x40], xmm0
call fcn.00412880
mov ecx, dword [esi + 0x3e54]
add esp, 4
call fcn.00412370
jmp 0x40b57d
mov dword [esi + 0x3e54], 0
jmp 0x40b574
mov ecx, dword [esi + 0x3eb0]
test ecx, ecx
je 0x40b57d
mov eax, dword [esi + 0x3e94]
cmp dword [ecx + 0x70], eax
jne 0x40b57d
mov dword [esi + 0x3e98], eax
cmp dword [esi + 0x3ebc], eax
jne 0x40b56b
mov byte [esi + 0x3ec0], 1
cmp byte [esi + 0xdc8], 0
jne 0x40b57d
xor edx, edx
xor ecx, ecx
call fcn.0040a0e0
mov eax, dword [0x4be710]
mov edx, dword [eax + 0x47a0]
sub edx, 1
js 0x40b5b7
mov eax, dword [eax + 0x47a8]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x40b5af
test dword [ecx + 0xc], 0x8000000
jne 0x40b5d1
sub eax, 0x28
sub edx, 1
jns 0x40b5a0
cmp dword [edi + 0x491c], 0
je 0x40b5f0
movss xmm0, dword [edi + 0x492c]
comiss xmm0, dword [0x4a8dbc]
jbe 0x40b5f0
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x4a9070]
addss xmm1, dword [edi + 0x4944]
minss xmm1, dword [0x4a8e88]
jmp 0x40b611
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x4a90ac]
movss xmm1, dword [edi + 0x4944]
subss xmm1, xmm0
maxss xmm1, dword [0x4a8dbc]
movss dword [edi + 0x4944], xmm1
movups xmm0, xmmword [edi + 0x5a08]
mov dword [edi + 0x4948], 0
mov dword [edi + 0x5c20], 0xffffffff
mov dword [edi + 0x5c1c], 0xffffffff
mov dword [edi + 0x5c18], 0xffffffff
movups xmmword [edi + 0x5a18], xmm0
mov byte [edi + 0x5a08], 0
call fcn.00413e40
cmp byte [edi + 0x3df7], 0
jne 0x40b689
movss xmm0, dword [edi + 0x68]
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x40b689
movsd xmm1, qword [edi + 0x3de0]
cvtpd2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [esp + 0x28], xmm1
jmp 0x40b68f
movss xmm1, dword [esp + 0x28]
xor ebx, ebx
cmp dword [edi + 0x3e00], ebx
je 0x40b834
nop dword [eax]
mov eax, dword [edi + 0x3e08]
mov esi, dword [eax + ebx*4]
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 0x40b821
cmp byte [esi + 0x348], al
jne 0x40b821
comiss xmm1, dword [esi + 0x23c]
jbe 0x40b821
mov ecx, dword [esi + 0x264]
mov byte [esi + 0x348], 1
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x340], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x344], eax
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x40b759
mov eax, dword [0x4be710]
mov dword [esi + 0xe8], 0
mov dword [esi + 0xe4], 0
test eax, eax
je 0x40b747
dec dword [eax + 0xb4]
push ecx
call dword [esp + 0x28]
add esp, 4
mov dword [esi + 0xec], 0
mov ecx, dword [esi + 0x264]
call fcn.00426030
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x40b7a3
mov eax, dword [0x4be710]
mov dword [esi + 0x184], 0
mov dword [esi + 0x180], 0
test eax, eax
je 0x40b791
dec dword [eax + 0xb4]
push ecx
call dword [esp + 0x28]
add esp, 4
mov dword [esi + 0x188], 0
mov ecx, dword [esi + 0x1b0]
test ecx, ecx
je 0x40b7e2
mov eax, dword [0x4be710]
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x1a8], 0
test eax, eax
je 0x40b7d0
dec dword [eax + 0xb4]
push ecx
call dword [esp + 0x28]
add esp, 4
mov dword [esi + 0x1b0], 0
mov ecx, dword [esi + 0x1bc]
test ecx, ecx
je 0x40b821
mov eax, dword [0x4be710]
mov dword [esi + 0x1b8], 0
mov dword [esi + 0x1b4], 0
test eax, eax
je 0x40b80f
dec dword [eax + 0xb4]
push ecx
call dword [esp + 0x28]
add esp, 4
mov dword [esi + 0x1bc], 0
movss xmm1, dword [esp + 0x28]
inc ebx
cmp ebx, dword [edi + 0x3e00]
jne 0x40b6a0
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp dword [edi + 0x4a20], ecx
jle 0x40b985
xor edx, edx
xorps xmm1, xmm1
mov dword [esp + 0x30], edx
nop
mov eax, dword [edi + 0x4a28]
movss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm1
jb 0x40b96a
movss xmm1, dword [esp + 0x28]
comiss xmm1, xmm0
jbe 0x40b967
mov esi, dword [edi + 0x4a08]
mov ebx, dword [0x4be710]
add esi, edx
mov dword [esp + 0x38], ebx
mov dword [esi + 0x198], 0
mov eax, dword [esi + 0x194]
test eax, eax
je 0x40b8c9
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], 0
test ebx, ebx
je 0x40b8b7
dec dword [ebx + 0xb4]
push eax
call dword [esp + 0x28]
add esp, 4
mov dword [esi + 0x194], 0
mov byte [esi + 0x1d9], 1
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x40b90f
mov eax, dword [0x4be710]
mov dword [esi + 0x158], 0
mov dword [esi + 0x154], 0
test eax, eax
je 0x40b8fd
dec dword [eax + 0xb4]
push ecx
call dword [esp + 0x28]
add esp, 4
mov dword [esi + 0x15c], 0
xor edx, edx
mov byte [esi + 0x1e5], 1
cmp dword [esi + 0x40], edx
jle 0x40b93b
xor ecx, ecx
or ebx, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [ecx + eax - 0x20], bx
cmp edx, dword [esi + 0x40]
jl 0x40b922
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
sub esi, dword [ebx + 0x4a08]
mov eax, 0x4325c53f
imul esi
mov eax, dword [ebx + 0x4a28]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [esp + 0x2c]
xorps xmm1, xmm1
inc ecx
add edx, 0x1e8
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
cmp ecx, dword [edi + 0x4a20]
jl 0x40b850
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [edi + 0x49f4], eax
jle 0x40b9e5
xor esi, esi
xorps xmm1, xmm1
nop dword [eax + eax]
mov ebx, dword [edi + 0x49fc]
movss xmm0, dword [esi + ebx + 4]
comiss xmm0, xmm1
jb 0x40b9d5
movss xmm1, dword [esp + 0x28]
comiss xmm1, xmm0
jbe 0x40b9d2
lea ecx, [ebx + 0x10]
add ecx, esi
call fcn.00429250
mov eax, dword [esp + 0x30]
mov dword [esi + ebx + 4], 0xbf800000
xorps xmm1, xmm1
inc eax
add esi, 0x68
mov dword [esp + 0x30], eax
cmp eax, dword [edi + 0x49f4]
jl 0x40b9a0
cmp byte [edi + 0x3df7], 0
je 0x40ba7c
mov esi, dword [0x4be710]
mov eax, dword [esi + 0x4790]
test eax, eax
je 0x40ba36
mov dword [esi + 0x478c], 0
mov dword [esi + 0x4788], 0
test esi, esi
je 0x40ba20
dec dword [esi + 0xb4]
mov ebx, dword [esp + 0x24]
push eax
call ebx
add esp, 4
mov dword [esi + 0x4790], 0
jmp 0x40ba3a
mov ebx, dword [esp + 0x24]
mov ecx, dword [esi + 0x479c]
test ecx, ecx
je 0x40ba77
mov eax, dword [0x4be710]
mov dword [esi + 0x4798], 0
mov dword [esi + 0x4794], 0
test eax, eax
je 0x40ba67
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [esi + 0x479c], 0
call fcn.0042fff0
mov eax, dword [edi + 0x47c8]
mov byte [edi + 0x3df7], 0
test eax, eax
je 0x40bae1
cmp byte [eax + 0xab], 0
jne 0x40bae1
mov eax, dword [0x4be710]
mov edx, dword [eax + 0x3e0c]
sub edx, 1
js 0x40bada
mov eax, dword [eax + 0x3e14]
lea esi, [eax + edx*4]
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x40bad2
cmp byte [ecx + 0xab], 0
je 0x40bad2
mov eax, dword [ecx + 0xc]
and eax, 0x40200
cmp eax, 0x40200
jne 0x40bc70
sub esi, 4
sub edx, 1
jns 0x40bab0
xor ecx, ecx
call fcn.00412370
mov ecx, dword [edi + 0x3e28]
test ecx, ecx
jns 0x40bb07
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 + 0x3e24]
call fcn.0041d6d0
mov dword [edi + 0x3e24], 0
mov ecx, dword [edi + 0x47b0]
test ecx, ecx
jns 0x40bb37
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 + 0x47ac]
call fcn.0041d650
lea esi, [edi + 0x4788]
mov dword [edi + 0x47ac], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x40bb66
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.0041d120
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x40bb7b
push 8
mov ecx, esi
call fcn.0041d120
mov ecx, dword [esi]
mov eax, dword [esi + 8]
push 0
mov dword [eax + ecx*4], 0
lea ecx, [edi + 0x4794]
inc dword [esi]
call fcn.0041cef0
call fcn.0041c6a0
mov esi, dword [0x4be710]
mov dword [esi + 0x3e7c], 0
mov eax, dword [esi + 0x5afc]
inc eax
cmp dword [esi + 0x3de8], eax
jne 0x40bcb4
mov ebx, dword [esi + 0x3e84]
test ebx, ebx
jne 0x40bbce
mov ebx, dword [esi + 0x3e94]
cmp dword [esi + 0x5b04], ebx
je 0x40bc1b
lea eax, [esi + 0x5b08]
mov dword [esi + 0x5b04], ebx
mov dword [esi + 0x5b00], 0xffffffff
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x40bc15
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 + 0x5b08]
call fcn.0041d7c0
lea eax, [esi + 0x5b08]
mov dword [eax], 0
test ebx, ebx
je 0x40bcb4
mov eax, dword [esi + 0x5b00]
test eax, eax
js 0x40bc61
mov ecx, eax
cmp eax, dword [esi + 0x5b08]
jge 0x40bc90
mov ecx, dword [esi + 0x5b10]
lea edx, [eax + eax*8]
cmp byte [ecx + edx*8 + 5], 0
jne 0x40bc5a
mov edi, dword [esi + 0x5b10]
mov ecx, eax
cmp byte [edi + edx*8 + 4], 2
mov edi, dword [esp + 0x34]
jle 0x40bc90
inc eax
mov dword [esi + 0x5b00], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x40bc8c
mov dword [esi + 0x3e7c], ebx
jmp 0x40bcb4
mov eax, dword [ecx + 0x310]
test eax, eax
je 0x40bc83
cmp byte [eax + 0xab], 0
jne 0x40bc85
mov eax, ecx
mov ecx, eax
jmp 0x40badc
test ecx, ecx
js 0x40bcb4
cmp ecx, dword [esi + 0x5b08]
jge 0x40bcb4
mov eax, dword [esi + 0x5b10]
lea ecx, [ecx + ecx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3e7c], eax
mov eax, dword [esi + 0x5b10]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5ae1]
test al, al
je 0x40bcd2
sub al, 1
mov byte [edi + 0x5ae1], al
jne 0x40bcd2
mov dword [edi + 0x46a4], 0
mov al, byte [edi + 0x5ae0]
test al, al
je 0x40bcfa
sub al, 1
mov byte [edi + 0x5ae0], al
jne 0x40bcfa
push str._Auto_disabled_ImGuiDebugLogFlags_EventClipper_to_avoid_spamming__n
call fcn.0041c330
add esp, 4
and dword [edi + 0x5ac0], 0xffffffef
mov eax, dword [0x4be710]
xor edx, edx
mov byte [edi + 0x3df5], 1
mov ecx, str.DebugDefault
push 0
or dword [eax + 0x46f8], 2
mov dword [eax + 0x4718], 0x43c80000
mov dword [eax + 0x471c], 0x43c80000
mov dword [eax + 0x4700], 4
call fcn.0040f850
add esp, 4
cmp byte [edi + 0x6d], 0
je 0x40bd77
mov cl, byte [edi + 0x5ae2]
cmp cl, 0xff
jne 0x40bd51
xor edx, edx
jmp 0x40bd7a
mov eax, dword [edi + 0x3de8]
and eax, reloc.WS2_32.dll_closesocket
jns 0x40bd63
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 0x40bd7a
or dl, 0xff
xor esi, esi
mov byte [edi + 0x5ae2], dl
cmp dword [edi + 0x5a60], esi
jle 0x40bdb4
xor ebx, ebx
nop dword [eax]
mov eax, dword [edi + 0x5a68]
add eax, ebx
cmp dword [eax + 4], 1
jne 0x40bda8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5a60]
jl 0x40bd90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret