Function at 0x1004f3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x100bc040]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov edi, dword [0x1019fdb0]
mov dword [esp + 0x2c], edi
mov edx, dword [edi + 0x5a78]
sub edx, 1
mov dword [esp + 0x1c], edx
js 0x1004f468
lea eax, [edx + edx*4]
shl eax, 2
mov dword [esp + 0xc], eax
nop dword [eax]
mov ecx, dword [edi + 0x5a80]
cmp dword [ecx + eax + 4], 7
jne 0x1004f458
mov esi, ecx
sub ecx, esi
add ecx, eax
mov eax, 0x66666667
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 + 0x5a78]
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 + 0x18]
add esp, 0xc
dec dword [edi + 0x5a78]
mov edx, dword [esp + 0x1c]
dec edx
sub eax, 0x14
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], eax
test edx, edx
jns 0x1004f400
xor esi, esi
cmp dword [edi + 0x5a78], esi
jle 0x1004f4ac
xor ecx, ecx
mov dword [esp + 0x1c], ecx
nop dword [eax + eax]
mov eax, dword [edi + 0x5a80]
add eax, ecx
cmp dword [eax + 4], 0
jne 0x1004f49c
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x24]
add esp, 8
inc esi
add ecx, 0x14
mov dword [esp + 0x1c], ecx
cmp esi, dword [edi + 0x5a78]
jl 0x1004f480
mov eax, dword [0x1019fdb0]
mov dword [esp + 0xc], eax
cmp byte [eax + 0x66], 0
je 0x1004f4c5
test byte [eax + 0xc], 2
jne 0x1004f4c5
mov byte [eax + 0x66], 0
cmp byte [eax + 0x5a41], 0
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esp + 0x24], esi
jne 0x1004f530
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x1004f529
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
call fcn.1004be80
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x1004f525
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x1004f510
call fcn.10062ed0
mov ecx, dword [esp + 0x10]
mov eax, dword [0x1019fdb0]
test eax, eax
je 0x1004f51f
dec dword [eax + 0xb4]
push ecx
call esi
add esp, 4
mov eax, dword [esp + 0xc]
mov byte [eax + 0x5a41], 1
movss xmm0, dword [eax + 0x5a44]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1004f5bc
subss xmm0, dword [eax + 0x18]
comiss xmm1, xmm0
movss dword [eax + 0x5a44], xmm0
jb 0x1004f5bc
mov esi, dword [eax + 0x20]
test esi, esi
je 0x1004f91e
mov eax, dword [0x1019fdb0]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [eax + 0x5a44], 0
call fcn.10063100
mov edx, 0x100b0fdc
mov dword [esp + 0x10], eax
mov ecx, esi
call fcn.1004bd80
mov esi, eax
test esi, esi
je 0x1004f5ae
push esi
push dword [esp + 0x20]
push 1
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov eax, dword [esp + 0xc]
mov dword [eax + 0x5a44], 0
movss xmm0, dword [edi + 0x18]
xor eax, eax
inc dword [edi + 0x3dc8]
cvtps2pd xmm0, xmm0
mov byte [edi + 0x3dd4], 1
mov word [edi + 0x5a06], ax
mov dword [edi + 0x3e3c], eax
addsd xmm0, qword [edi + 0x3dc0]
movsd qword [edi + 0x3dc0], xmm0
mov ecx, dword [edi + 0x5a18]
test ecx, ecx
jns 0x1004f616
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 + 0x5a14]
call fcn.10064880
mov dword [edi + 0x5a14], 0
mov ecx, 0x3c
mov eax, dword [edi + 0x5c24]
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [edi + eax*4 + 0x5b34]
addss xmm0, dword [edi + 0x5c2c]
movss dword [edi + 0x5c2c], xmm0
movss dword [edi + eax*4 + 0x5b34], xmm1
mov eax, dword [edi + 0x5c24]
inc eax
movss xmm1, dword [edi + 0x5c2c]
cdq
idiv ecx
mov eax, dword [edi + 0x5c28]
movss xmm0, dword [0x100b2a7c]
inc eax
cmp eax, ecx
mov dword [edi + 0x5c24], edx
movss dword [esp + 0xc], xmm0
cmovl ecx, eax
comiss xmm1, dword [0x100b274c]
mov dword [edi + 0x5c28], ecx
jbe 0x1004f6ad
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x100b2860]
divss xmm0, xmm1
movss dword [edi + 0xa0], xmm0
mov ecx, dword [edi + 0x3df0]
test ecx, ecx
jns 0x1004f6db
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 + 0x3dec]
call fcn.10065010
mov dword [edi + 0x3dec], 0
mov cl, byte [edi + 0x62]
call fcn.1005b950
mov eax, dword [0x1019fdb0]
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], eax
sub esp, 8
mov eax, dword [eax + 0x47c4]
mov dword [esp + 4], 0
mov dword [esp], 0
mov esi, dword [eax]
mov dword [esi], 5
call fcn.100248c0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
cmp dword [edx + 0x47bc], 0
jle 0x1004f894
xor ecx, ecx
mov edi, edx
mov dword [esp + 0x48], ecx
nop word [eax + eax]
mov eax, dword [edi + 0x47c4]
sub esp, 8
mov esi, dword [ecx + eax]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, dword [esi + 0x90]
mov eax, dword [esi + 0x8c]
mov dword [esi + 0x80], ecx
mov ecx, dword [esi + 0x98]
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x94]
mov dword [esi + 0x88], ecx
lea ecx, [esp + 0x38]
mov dword [esi + 0x84], eax
call fcn.100248c0
sub esp, 8
lea ecx, [esp + 0x18]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esi + 0x94], xmm0
movss dword [esi + 0x8c], xmm0
movss xmm0, dword [esi + 8]
movss dword [esi + 0x98], xmm1
movss dword [esi + 0x90], xmm1
addss xmm0, dword [esi + 0x80]
movss dword [esp + 4], xmm0
movss xmm0, dword [esi + 4]
addss xmm0, dword [esi + 0x7c]
movss dword [esp], xmm0
call fcn.100248c0
movss xmm1, dword [esi + 0x10]
xorps xmm0, xmm0
mov eax, dword [esp + 0x10]
sub esp, 8
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x18], ecx
lea ecx, [esp + 0x24]
mov dword [esi + 0x14], eax
subss xmm1, dword [esi + 0x80]
addss xmm1, dword [esi + 0x88]
maxss xmm0, xmm1
movss xmm1, dword [esi + 0xc]
subss xmm1, dword [esi + 0x7c]
movss dword [esp + 4], xmm0
xorps xmm0, xmm0
addss xmm1, dword [esi + 0x84]
maxss xmm0, xmm1
movss dword [esp], xmm0
call fcn.100248c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x20], ecx
inc eax
mov ecx, dword [esp + 0x48]
add ecx, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], ecx
cmp eax, dword [edi + 0x47bc]
jl 0x1004f760
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 0x48]
mov esi, dword [0x1019fdb0]
mov byte [eax + 0x10], 1
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x48], ecx
test ecx, ecx
jne 0x1004f8c5
mov ecx, dword [esi + 0x48]
add ecx, 0x3c
push 0
call fcn.10036dc0
mov esi, dword [0x1019fdb0]
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
movss xmm2, dword [0x100b2860]
mov edx, dword [esi + 0x3e48]
mov dword [esi + 0x3bb4], ecx
movss xmm1, dword [ecx + 0x10]
mulss xmm1, dword [esi + 0x4c]
mulss xmm1, dword [ecx + 0x4c]
maxss xmm2, xmm1
movss dword [esi + 0x3bbc], xmm2
test edx, edx
je 0x1004f92a
mov eax, dword [edx]
movss xmm0, dword [edx + 0x25c]
mulss xmm0, dword [eax + 0x3bbc]
mov eax, dword [edx + 0x2f8]
test eax, eax
je 0x1004f92d
mulss xmm0, dword [eax + 0x25c]
jmp 0x1004f92d
mov byte [eax + 0x9c], 1
jmp 0x1004f5b2
xorps xmm0, xmm0
movss dword [esi + 0x3bb8], xmm0
sub esp, 0x10
mov edx, dword [ecx + 0x30]
mov dword [esp + 0xc], 0xff7fffff
mov eax, dword [edx + 0x34]
mov ecx, dword [edx + 0x38]
mov dword [esi + 0x3bc0], eax
lea eax, [edx + 0x60]
mov dword [esp + 8], 0xff7fffff
mov dword [esi + 0x3bc4], ecx
lea ecx, [esp + 0x60]
mov dword [esi + 0x3dbc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], 0x7f7fffff
mov dword [esi + 0x3bc8], eax
movss dword [esi + 0x3bcc], xmm0
mov dword [esp], 0x7f7fffff
call fcn.10024b70
xor esi, esi
cmp dword [edi + 0x47bc], esi
jle 0x1004fa56
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov eax, dword [edi + 0x47c4]
sub esp, 0x10
mov eax, dword [ecx + eax]
lea ecx, [esp + 0x40]
movss xmm1, dword [eax + 8]
movss xmm2, dword [eax + 4]
movaps xmm0, xmm1
addss xmm0, dword [eax + 0x10]
movss dword [esp + 0xc], xmm0
movaps xmm0, xmm2
addss xmm0, dword [eax + 0xc]
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
call fcn.10024b70
movss xmm0, dword [esp + 0x50]
movss xmm1, dword [esp + 0x30]
comiss xmm0, xmm1
jbe 0x1004fa01
movss dword [esp + 0x50], xmm1
movss xmm0, dword [esp + 0x54]
movss xmm1, dword [esp + 0x34]
comiss xmm0, xmm1
jbe 0x1004fa18
movss dword [esp + 0x54], xmm1
movss xmm0, dword [esp + 0x38]
comiss xmm0, dword [esp + 0x58]
jbe 0x1004fa2b
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x3c]
comiss xmm0, dword [esp + 0x5c]
jbe 0x1004fa3e
movss dword [esp + 0x5c], xmm0
mov ecx, dword [esp + 0x48]
inc esi
add ecx, 4
mov dword [esp + 0x48], ecx
cmp esi, dword [edi + 0x47bc]
jl 0x1004f9a4
movaps xmm0, xmmword [esp + 0x50]
mov eax, dword [edi + 0x385c]
movss xmm1, dword [edi + 0x3860]
mov dword [edi + 0x3bd0], eax
movups xmmword [edi + 0x3bd8], xmm0
movss xmm0, dword [edi + 0x3bd4]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1004fb89
comiss xmm1, dword [0x100b274c]
ja 0x1004fa9e
mov dword [0], 0
movss dword [edi + 0x3bd4], xmm1
xor esi, esi
nop dword [eax + eax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x1004fb42
movss xmm1, dword [edi + 0x3bd4]
minss xmm1, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x100b2860]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x100b28e0]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
and eax, 0xfffffffe
cmp eax, 4
jge 0x1004fb33
mov eax, 4
jmp 0x1004fb47
cmp eax, 0x200
mov ecx, 0x200
cmovg eax, ecx
jmp 0x1004fb47
mov eax, 0x30
mov byte [edi + esi + 0x3d7c], al
inc esi
cmp esi, 0x40
jl 0x1004fab0
movsd xmm0, qword [0x100b2880]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm2, dword [0x100b2860]
cvtsd2ss xmm0, xmm0
subss xmm2, xmm0
movss xmm0, dword [edi + 0x3bd4]
divss xmm0, xmm2
movss dword [edi + 0x3d78], xmm0
xor edx, edx
mov dword [edi + 0x3be8], 0
cmp byte [edi + 0x3858], dl
je 0x1004fbac
mov dword [edi + 0x3be8], 1
mov edx, 1
cmp byte [edi + 0x3859], 0
mov ecx, edx
je 0x1004fbce
mov eax, dword [edi + 0x3bb4]
mov eax, dword [eax + 0x30]
test byte [eax], 4
jne 0x1004fbce
or ecx, 2
mov dword [edi + 0x3be8], ecx
cmp byte [edi + 0x385a], 0
je 0x1004fbe0
or ecx, 4
mov dword [edi + 0x3be8], ecx
test byte [edi + 0xc], 8
je 0x1004fbef
or ecx, 8
mov dword [edi + 0x3be8], ecx
xor esi, esi
cmp dword [edi + 0x47bc], esi
jle 0x1004fc2d
xor ecx, ecx
mov dword [esp + 0x48], ecx
nop
mov eax, dword [edi + 0x47c4]
push 0x2c
push 0
mov eax, dword [ecx + eax]
add eax, 0x38
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x54]
inc esi
add ecx, 4
add esp, 0xc
mov dword [esp + 0x48], ecx
cmp esi, dword [edi + 0x47bc]
jl 0x1004fc00
cmp byte [edi + 0x4964], 0
mov ecx, dword [0x1019fdb0]
je 0x1004fc67
mov eax, dword [edi + 0x497c]
cmp eax, dword [edi + 0x3e94]
jne 0x1004fc67
cmp dword [ecx + 0x3e94], eax
jne 0x1004fc58
mov dword [ecx + 0x3e98], eax
cmp dword [ecx + 0x3ebc], eax
jne 0x1004fc67
mov byte [ecx + 0x3ec0], 1
cmp dword [edi + 0x3e84], 0
jne 0x1004fc7c
mov dword [edi + 0x3e8c], 0
jmp 0x1004fc8e
mov eax, dword [edi + 0x3e80]
test eax, eax
je 0x1004fc98
cmp dword [edi + 0x3e94], eax
jne 0x1004fc98
mov dword [edi + 0x3e90], 0
mov eax, dword [edi + 0x3e80]
test eax, eax
je 0x1004fcd2
movss xmm1, dword [edi + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x3e8c]
movss dword [edi + 0x3e8c], xmm0
cmp dword [edi + 0x3e94], eax
je 0x1004fcd2
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 0x1004fd2a
cmp dword [edi + 0x3e98], eax
je 0x1004fd2a
cmp dword [edi + 0x3ebc], eax
jne 0x1004fd2a
test byte [edi + 0x5ad8], 1
je 0x1004fd1b
push str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.100639c0
add esp, 4
xor edx, edx
xor ecx, ecx
call fcn.1004e7e0
mov ecx, dword [0x1019fdb0]
mov edx, dword [edi + 0x3e94]
test edx, edx
je 0x1004fd49
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 + 0x598c]
movss dword [edi + 0x3ecc], xmm0
mov dword [edi + 0x3ebc], edx
mov dword [edi + 0x3e98], 0
mov byte [edi + 0x3ea5], 0
mov byte [edi + 0x3ec0], 0
mov byte [edi + 0x3ea0], 0
test eax, eax
je 0x1004fdb3
cmp edx, eax
je 0x1004fdb3
mov dword [edi + 0x598c], 0
test edx, edx
jne 0x1004fdd1
mov dword [edi + 0x4698], edx
mov dword [edi + 0x4690], edx
mov byte [edi + 0x4694], dl
mov dword [edi + 0x4698], edx
jmp 0x1004fdfa
mov eax, dword [edi + 0x4698]
test eax, eax
je 0x1004fdfa
test al, 2
je 0x1004fdfa
mov esi, dword [edi + 0x3e94]
mov edx, 0x20e
call fcn.1004ae40
mov dword [eax + 4], esi
mov dword [eax], esi
mov word [eax + 8], 0
mov eax, dword [edi + 0x4a8c]
movss xmm0, dword [edi + 0x4a94]
mov dword [edi + 0x4a90], eax
test eax, eax
je 0x1004fe2b
addss xmm0, dword [edi + 0x18]
mov dword [edi + 0x4a8c], 0
movss dword [edi + 0x4a94], xmm0
jmp 0x1004fe6b
comiss xmm0, dword [0x100b274c]
jbe 0x1004fe75
movss xmm1, dword [edi + 0x18]
movss xmm0, dword [0x100b27e4]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x4a98]
addss xmm1, xmm1
movss dword [edi + 0x4a98], xmm2
maxss xmm0, xmm1
comiss xmm2, xmm0
jb 0x1004fe75
mov dword [edi + 0x4a94], 0
mov dword [edi + 0x4a98], 0
mov eax, dword [edi + 0x49c8]
mov dword [edi + 0x49cc], eax
mov dword [edi + 0x49c8], 0
mov dword [edi + 0x49c4], 0x7f7fffff
mov word [edi + 0x4965], 0
mov dword [edi + 0x49d4], 0
call fcn.1005a480
call fcn.1005f8d0
call fcn.1005a950
call fcn.1004f130
mov esi, dword [0x1019fdb0]
mov ecx, dword [esi + 0x3e54]
test ecx, ecx
je 0x1004ff8c
mov eax, dword [esi + 0x3e94]
mov dword [esi + 0x3e98], eax
cmp dword [esi + 0x3ebc], eax
jne 0x1004feeb
mov byte [esi + 0x3ec0], 1
cmp byte [esi + 0xdc8], 0
mov eax, dword [ecx + 0x300]
mov dword [esp + 0x10], eax
je 0x1004ff80
lea eax, [esi + 0xdc0]
mov ecx, eax
test eax, eax
jne 0x1004ff14
lea ecx, [esi + 0xdc0]
movss xmm0, dword [ecx]
movss xmm1, dword [0x100b2aac]
comiss xmm0, xmm1
movss xmm2, dword [ecx + 4]
jb 0x1004ff80
comiss xmm2, xmm1
jb 0x1004ff80
movss xmm0, dword [eax + 4]
lea ecx, [esp + 0x48]
subss xmm0, dword [esi + 0x3eac]
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [eax]
subss xmm0, dword [esi + 0x3ea8]
movss dword [esp], xmm0
call fcn.100248c0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
push 1
call fcn.10059560
mov ecx, dword [esi + 0x3e54]
add esp, 4
xor edx, edx
call fcn.10058c20
jmp 0x1004ffc8
mov dword [esi + 0x3e54], 0
jmp 0x1004ffbf
mov ecx, dword [esi + 0x3eb0]
test ecx, ecx
je 0x1004ffc8
mov eax, dword [esi + 0x3e94]
cmp dword [ecx + 0x70], eax
jne 0x1004ffc8
mov dword [esi + 0x3e98], eax
cmp dword [esi + 0x3ebc], eax
jne 0x1004ffb6
mov byte [esi + 0x3ec0], 1
cmp byte [esi + 0xdc8], 0
jne 0x1004ffc8
xor edx, edx
xor ecx, ecx
call fcn.1004e7e0
mov eax, dword [0x1019fdb0]
mov edx, dword [eax + 0x47a0]
sub edx, 1
js 0x1004fffe
mov eax, dword [eax + 0x47a8]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
mov ecx, dword [eax]
test ecx, ecx
je 0x1004fff6
test dword [ecx + 0xc], 0x8000000
jne 0x10050018
sub eax, 0x28
sub edx, 1
jns 0x1004ffe7
cmp dword [edi + 0x4934], 0
je 0x10050037
movss xmm0, dword [edi + 0x4944]
comiss xmm0, dword [0x100b274c]
jbe 0x10050037
movss xmm1, dword [edi + 0x18]
mulss xmm1, dword [0x100b28f8]
addss xmm1, dword [edi + 0x495c]
minss xmm1, dword [0x100b2860]
jmp 0x10050058
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x100b2908]
movss xmm1, dword [edi + 0x495c]
subss xmm1, xmm0
maxss xmm1, dword [0x100b274c]
movss dword [edi + 0x495c], xmm1
movups xmm0, xmmword [edi + 0x5a20]
mov dword [edi + 0x4960], 0
mov dword [edi + 0x5c38], 0xffffffff
mov dword [edi + 0x5c34], 0xffffffff
mov dword [edi + 0x5c30], 0xffffffff
movups xmmword [edi + 0x5a30], xmm0
mov byte [edi + 0x5a20], 0
call fcn.1005ada0
cmp byte [edi + 0x3dd7], 0
jne 0x100500d0
movss xmm1, dword [edi + 0x68]
xorps xmm0, xmm0
comiss xmm0, xmm1
ja 0x100500d0
movsd xmm0, qword [edi + 0x3dc0]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm1
movss dword [esp + 0xc], xmm0
jmp 0x100500d6
movss xmm0, dword [esp + 0xc]
cmp dword [edi + 0x3e00], 0
mov dword [esp + 0x48], 0
je 0x100502a7
xor ecx, ecx
mov dword [esp + 0x28], ecx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0x3e08]
mov esi, dword [ecx + eax]
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 0x10050281
cmp byte [esi + 0x358], al
jne 0x10050281
comiss xmm0, dword [esi + 0x23c]
jbe 0x10050281
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]
mov dword [esi + 0x354], eax
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x100501b9
mov eax, dword [0x1019fdb0]
mov dword [esi + 0xe8], 0
mov dword [esi + 0xe4], 0
test eax, eax
je 0x100501a7
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.10065fe0
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x10050203
mov eax, dword [0x1019fdb0]
mov dword [esi + 0x184], 0
mov dword [esi + 0x180], 0
test eax, eax
je 0x100501f1
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 0x10050242
mov eax, dword [0x1019fdb0]
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x1a8], 0
test eax, eax
je 0x10050230
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 0x10050281
mov eax, dword [0x1019fdb0]
mov dword [esi + 0x1b8], 0
mov dword [esi + 0x1b4], 0
test eax, eax
je 0x1005026f
dec dword [eax + 0xb4]
push ecx
call dword [esp + 0x28]
add esp, 4
mov dword [esi + 0x1bc], 0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
inc eax
movss xmm0, dword [esp + 0xc]
add ecx, 4
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], ecx
cmp eax, dword [edi + 0x3e00]
jne 0x10050100
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [edi + 0x4a38], ecx
jle 0x10050415
xor esi, esi
xorps xmm1, xmm1
xor edx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edx
nop dword [eax + eax]
mov eax, dword [edi + 0x4a40]
movss xmm0, dword [edx + eax]
comiss xmm0, xmm1
jb 0x100503f3
movss xmm2, dword [esp + 0xc]
comiss xmm2, xmm0
jbe 0x100503f3
mov esi, dword [edi + 0x4a20]
add esi, dword [esp + 0x1c]
mov eax, dword [0x1019fdb0]
mov dword [esp + 0x48], eax
mov dword [esi + 0x198], 0
mov ecx, dword [esi + 0x194]
test ecx, ecx
je 0x1005034a
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], 0
test eax, eax
je 0x10050338
dec dword [eax + 0xb4]
push ecx
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 0x10050390
mov eax, dword [0x1019fdb0]
mov dword [esi + 0x158], 0
mov dword [esi + 0x154], 0
test eax, eax
je 0x1005037e
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 0x100503b8
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov word [eax + ecx - 0x20], di
cmp edx, dword [esi + 0x40]
jl 0x100503a3
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
xorps xmm1, xmm1
sub esi, dword [eax + 0x4a20]
mov eax, 0x4325c53f
imul esi
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
sar edx, 7
mov ecx, edx
mov eax, dword [eax + 0x4a40]
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xbf800000
mov ecx, dword [esp + 0x28]
inc ecx
add esi, 0x1e8
add edx, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edx
cmp ecx, dword [edi + 0x4a38]
jl 0x100502d0
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x4a0c], ecx
jle 0x1005047d
xor esi, esi
xorps xmm1, xmm1
nop dword [eax + eax]
mov eax, dword [edi + 0x4a14]
mov dword [esp + 0x48], eax
movss xmm0, dword [eax + esi + 4]
comiss xmm0, xmm1
jb 0x1005046d
movss xmm2, dword [esp + 0xc]
comiss xmm2, xmm0
jbe 0x1005046d
lea ecx, [eax + 0x10]
add ecx, esi
call fcn.10069380
mov eax, dword [esp + 0x48]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x10]
mov dword [eax + esi + 4], 0xbf800000
inc ecx
add esi, 0x68
mov dword [esp + 0x10], ecx
cmp ecx, dword [edi + 0x4a0c]
jl 0x10050430
cmp byte [edi + 0x3dd7], 0
je 0x1005051f
mov eax, dword [0x1019fdb0]
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 0x4790]
test ecx, ecx
je 0x100504d5
mov dword [eax + 0x478c], 0
mov dword [eax + 0x4788], 0
test eax, eax
je 0x100504bb
dec dword [eax + 0xb4]
mov esi, dword [esp + 0x24]
push ecx
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax + 0x4790], 0
jmp 0x100504d9
mov esi, dword [esp + 0x24]
mov ecx, dword [eax + 0x479c]
test ecx, ecx
je 0x1005051a
mov dword [eax + 0x4798], 0
mov dword [eax + 0x4794], 0
mov eax, dword [0x1019fdb0]
test eax, eax
je 0x10050506
dec dword [eax + 0xb4]
push ecx
call esi
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax + 0x479c], 0
call fcn.100727f0
mov eax, dword [edi + 0x47c8]
mov byte [edi + 0x3dd7], 0
test eax, eax
je 0x10050584
cmp byte [eax + 0xab], 0
jne 0x10050584
mov eax, dword [0x1019fdb0]
mov edx, dword [eax + 0x3e0c]
sub edx, 1
js 0x10050578
mov eax, dword [eax + 0x3e14]
lea esi, [eax + edx*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x10050570
cmp byte [ecx + 0xab], 0
je 0x10050570
mov eax, dword [ecx + 0xc]
and eax, 0x40200
cmp eax, 0x40200
jne 0x1005057a
sub esi, 4
sub edx, 1
jns 0x10050552
xor ecx, ecx
mov edx, 1
call fcn.10058c20
mov ecx, dword [edi + 0x3e28]
test ecx, ecx
jns 0x100505aa
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.10064fa0
push 0
lea ecx, [edi + 0x47ac]
mov dword [edi + 0x3e24], 0
call fcn.100645a0
mov ecx, dword [edi + 0x478c]
lea esi, [edi + 0x4788]
test ecx, ecx
jns 0x100505e9
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.10064880
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x100505fe
push 8
mov ecx, esi
call fcn.10064880
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.10064650
call fcn.10063ce0
mov esi, dword [0x1019fdb0]
mov dword [esi + 0x3e7c], 0
mov eax, dword [esi + 0x5b14]
inc eax
cmp dword [esi + 0x3dc8], eax
jne 0x10050738
mov ecx, dword [esi + 0x3e84]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x10050659
mov ecx, dword [esi + 0x3e94]
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0x5b1c], ecx
je 0x100506b0
lea eax, [esi + 0x5b20]
mov dword [esi + 0x5b1c], ecx
mov dword [esi + 0x5b18], 0xffffffff
mov edx, dword [eax + 4]
mov dword [esp + 0x10], edx
test edx, edx
jns 0x100506aa
mov eax, edx
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x10]
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x5b20]
call fcn.100650a0
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0x5b20]
mov dword [eax], 0
test ecx, ecx
je 0x10050738
mov eax, dword [esi + 0x5b18]
test eax, eax
js 0x10050701
mov edx, eax
cmp eax, dword [esi + 0x5b20]
jge 0x10050714
mov edi, dword [esi + 0x5b28]
lea edx, [eax + eax*8]
cmp byte [edi + edx*8 + 5], 0
mov edi, dword [esp + 0x2c]
jne 0x100506fa
mov ecx, dword [esi + 0x5b28]
lea edi, [eax + eax*8]
mov edx, eax
cmp byte [ecx + edi*8 + 4], 2
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
jle 0x10050714
inc eax
mov dword [esi + 0x5b18], eax
mov edx, eax
cmp eax, 0xffffffff
jne 0x10050710
mov dword [esi + 0x3e7c], ecx
jmp 0x10050738
test edx, edx
js 0x10050738
cmp edx, dword [esi + 0x5b20]
jge 0x10050738
mov eax, dword [esi + 0x5b28]
lea ecx, [edx + edx*8]
mov eax, dword [eax + ecx*8]
mov dword [esi + 0x3e7c], eax
mov eax, dword [esi + 0x5b28]
inc byte [eax + ecx*8 + 4]
mov al, byte [edi + 0x5af9]
test al, al
je 0x10050756
sub al, 1
mov byte [edi + 0x5af9], al
jne 0x10050756
mov dword [edi + 0x46a4], 0
mov al, byte [edi + 0x5af8]
test al, al
je 0x1005077e
sub al, 1
mov byte [edi + 0x5af8], al
jne 0x1005077e
push str._Auto_disabled_ImGuiDebugLogFlags_EventClipper_to_avoid_spamming__n
call fcn.100639c0
add esp, 4
and dword [edi + 0x5ad8], 0xffffffef
sub esp, 8
mov byte [edi + 0x3dd5], 1
lea ecx, [esp + 0x38]
mov dword [esp + 4], 0x43c80000
mov dword [esp], 0x43c80000
call fcn.100248c0
mov edx, dword [0x1019fdb0]
push 0
or dword [edx + 0x46f8], 2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edx + 0x4718], ecx
mov ecx, str.DebugDefault
mov dword [edx + 0x471c], eax
mov dword [edx + 0x4700], 4
xor edx, edx
call fcn.10055ee0
add esp, 4
cmp byte [edi + 0x6d], 0
je 0x10050814
mov cl, byte [edi + 0x5afa]
cmp cl, 0xff
jne 0x100507ee
xor edx, edx
jmp 0x10050817
mov eax, dword [edi + 0x3dc8]
and eax, reloc.WS2_32.dll_closesocket
jns 0x10050800
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 0x10050817
or dl, 0xff
xor esi, esi
mov byte [edi + 0x5afa], dl
cmp dword [edi + 0x5a78], esi
jle 0x1005085c
xor ecx, ecx
mov dword [esp + 0x10], ecx
nop dword [eax]
mov eax, dword [edi + 0x5a80]
add eax, ecx
cmp dword [eax + 4], 1
jne 0x1005084c
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [esp + 0x18]
add esp, 8
inc esi
add ecx, 0x14
mov dword [esp + 0x10], ecx
cmp esi, dword [edi + 0x5a78]
jl 0x10050830
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.100a046e
mov esp, ebp
pop ebp
ret