Function at 0x140169900
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov qword [rax + 0x10], rbp
lea rcx, [0x14048d6c2]
mov qword [rax + 0x18], r12
mov qword [rax - 0x20], r14
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
call fcn.140289ea0
mov rbx, qword [0x140466678]
mov edi, dword [rbx + 0x5f60]
sub edi, 1
js 0x1401699b3
movsxd rsi, edi
shl rsi, 5
mov rbp, rsi
nop dword [rax + rax]
mov rdx, qword [rbx + 0x5f68]
cmp dword [rdx + rsi + 4], 7
jne 0x1401699a6
movsxd r8, dword [rbx + 0x5f60]
mov rcx, rdx
sub rdx, rdx
add rdx, rbp
sar rdx, 5
sub r8, rdx
mov rax, rdx
shl rax, 5
add rcx, rax
shl r8, 5
sub r8, 0x20
lea rdx, [rcx + 0x20]
call sub.VCRUNTIME140.dll_memmove
dec dword [rbx + 0x5f60]
sub rbp, 0x20
sub rsi, 0x20
sub edi, 1
jns 0x140169960
mov rdi, qword [rbx + 0x5f68]
movsxd rsi, dword [rbx + 0x5f60]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x1401699e8
nop dword [rax]
cmp dword [rdi + 4], 0
jne 0x1401699df
mov rdx, rdi
mov rcx, rbx
call qword [rdi + reloc.WS2_32.dll_recv]
add rdi, 0x20
cmp rdi, rsi
jne 0x1401699d0
mov rsi, qword [0x140466678]
cmp byte [rsi + 0x5e], 0
je 0x1401699ff
test byte [rsi + 0xc], 2
jne 0x1401699ff
mov byte [rsi + 0x5e], 0
xor edi, edi
cmp byte [rsi + 0x5f18], dil
jne 0x140169a54
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140169a4d
lea r8, [rsp + 0xc0]
mov qword [rsp + 0xc0], rdi
call fcn.1401648c0
mov rbp, rax
test rax, rax
je 0x140169a4d
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x140169a45
mov rcx, rax
call fcn.14017c7d0
mov rcx, rbp
call fcn.140168ee0
mov byte [rsi + 0x5f18], 1
movss xmm0, dword [rsi + 0x5f1c]
xorps xmm9, xmm9
comiss xmm0, xmm9
jbe 0x140169af3
subss xmm0, dword [rsi + 0x18]
comiss xmm9, xmm0
movss dword [rsi + 0x5f1c], xmm0
jb 0x140169af3
mov rbp, qword [rsi + 0x20]
test rbp, rbp
je 0x140169ae6
mov rax, qword [0x140466678]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0xc0], rdi
mov dword [rax + 0x5f1c], edi
call fcn.14017ca40
lea rdx, [0x1403bb484]
mov rcx, rbp
mov r14, rax
call fcn.1401647c0
mov rbp, rax
test rax, rax
je 0x140169aed
mov r8, qword [rsp + 0xc0]
mov r9, rax
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140169aed
mov byte [rsi + 0xce], 1
mov dword [rsi + 0x5f1c], edi
inc dword [rbx + 0x3f90]
movss xmm0, dword [rbx + 0x18]
cvtps2pd xmm0, xmm0
mov byte [rbx + 0x3f9c], 1
mov word [rbx + 0x5e68], di
mov dword [rbx + 0x4028], edi
addsd xmm0, qword [rbx + 0x3f88]
movsd qword [rbx + 0x3f88], xmm0
mov ecx, dword [rbx + 0x5e84]
test ecx, ecx
jns 0x140169b4b
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x5e80]
test eax, eax
cmovg edx, eax
call fcn.14017ea90
movss xmm8, dword [0x1403bf548]
movss xmm10, dword [0x1403bf34c]
mov dword [rbx + 0x5e80], edi
movsxd rax, dword [rbx + 0x619c]
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [rbx + rax*4 + 0x60ac]
addss xmm0, dword [rbx + 0x61a4]
movss dword [rbx + 0x61a4], xmm0
movss dword [rbx + rax*4 + 0x60ac], xmm1
mov eax, 0x88888889
mov ecx, dword [rbx + 0x619c]
movss xmm2, dword [rbx + 0x61a4]
inc ecx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3c
sub ecx, eax
mov eax, dword [rbx + 0x61a0]
inc eax
mov dword [rbx + 0x619c], ecx
mov ecx, reloc.WLDAP32.dll_Ordinal_60
cmp eax, ecx
cmovl ecx, eax
comiss xmm2, xmm9
mov dword [rbx + 0x61a0], ecx
jbe 0x140169bf5
movd xmm0, ecx
movaps xmm1, xmm10
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
divss xmm1, xmm2
jmp 0x140169bf9
movaps xmm1, xmm8
movss dword [rbx + 0xd4], xmm1
mov ecx, dword [rbx + 0x3fc4]
test ecx, ecx
jns 0x140169c27
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x3fc0]
test eax, eax
cmovg edx, eax
call fcn.14017e8a0
mov dword [rbx + 0x3fc0], edi
movzx ecx, byte [rbx + 0x5a]
call fcn.140174b40
mov rdx, qword [0x140466678]
mov rax, qword [rdx + 0x4b00]
mov rcx, qword [rax]
mov qword [rcx], 5
mov dword [rcx + 8], edi
movsd xmm0, qword [rdx + 0x10]
movsd qword [rcx + 0xc], xmm0
mov rcx, qword [rdx + 0x4b00]
movsxd rax, dword [rdx + 0x4af8]
lea r8, [rcx + rax*8]
cmp rcx, r8
je 0x140169d1f
nop word [rax + rax]
mov rax, qword [rcx]
add rcx, 8
movsd xmm4, qword [rax + 0xb8]
movsd xmm3, qword [rax + 0xc0]
movaps xmm0, xmm4
movss xmm1, dword [rax + 8]
movaps xmm2, xmm4
shufps xmm0, xmm0, 0x55
mov qword [rax + 0xc0], rdi
addss xmm1, xmm0
movss xmm0, dword [rax + 0xc]
mov qword [rax + 0xb8], rdi
subss xmm0, xmm4
movsd qword [rax + 0xb0], xmm3
movsd qword [rax + 0xa8], xmm4
movss dword [rax + 0x18], xmm1
movss xmm1, dword [rax + 0x10]
addss xmm0, xmm3
addss xmm2, dword [rax + 4]
movss dword [rax + 0x14], xmm2
movaps xmm2, xmm9
maxss xmm2, xmm0
movaps xmm0, xmm4
shufps xmm0, xmm0, 0x55
subss xmm1, xmm0
movaps xmm0, xmm9
addss xmm1, dword [rax + 0xb4]
movss dword [rax + 0x1c], xmm2
maxss xmm0, xmm1
movss dword [rax + 0x20], xmm0
cmp rcx, r8
jne 0x140169c80
mov rax, qword [rbx + 0x38]
mov byte [rax + 0x18], 1
mov rcx, qword [rdx + 0x48]
test rcx, rcx
jne 0x140169d3b
mov rax, qword [rdx + 0x38]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx]
call fcn.140171df0
mov rcx, qword [rbx + 0x4b00]
movaps xmm0, xmm8
movsxd rax, dword [rbx + 0x4af8]
movaps xmm7, xmm8
movss xmm5, dword [0x1403bf5b0]
movaps xmm6, xmm5
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x140169db6
nop word [rax + rax]
mov rax, qword [rcx]
movss xmm4, dword [rax + 4]
comiss xmm0, xmm4
movss xmm3, dword [rax + 8]
movaps xmm1, xmm4
addss xmm1, dword [rax + 0xc]
movaps xmm2, xmm3
addss xmm2, dword [rax + 0x10]
jbe 0x140169d95
movaps xmm0, xmm4
comiss xmm7, xmm3
jbe 0x140169d9d
movaps xmm7, xmm3
comiss xmm1, xmm5
jbe 0x140169da5
movaps xmm5, xmm1
comiss xmm2, xmm6
jbe 0x140169dad
movaps xmm6, xmm2
add rcx, 8
cmp rcx, rdx
jne 0x140169d70
mov eax, dword [rbx + 0x39cc]
movss xmm1, dword [rbx + 0x39d0]
shufps xmm0, xmm0, 0xe1
movss xmm0, xmm7
mov dword [rbx + 0x3d7c], eax
movaps xmm7, xmmword [rsp + 0x70]
shufps xmm0, xmm0, 0xc6
movss xmm0, xmm5
shufps xmm0, xmm0, 0x27
movss xmm0, xmm6
shufps xmm0, xmm0, 0x39
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rbx + 0x3d84], xmm0
movss xmm0, dword [rbx + 0x3d80]
ucomiss xmm0, xmm1
jp 0x140169e0a
je 0x140169ec2
movss xmm6, dword [0x1403bf410]
lea r14, [rbx + 0x3f2c]
movss dword [rbx + 0x3d80], xmm1
mov esi, edi
mov ebp, 0x200
nop dword [rax + rax]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
test esi, esi
je 0x140169e87
movss xmm1, dword [rbx + 0x3d80]
minss xmm1, xmm0
divss xmm1, xmm0
movaps xmm0, xmm10
subss xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_acosf
movaps xmm1, xmm6
divss xmm1, xmm0
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, 4
jge 0x140169e80
mov eax, 4
jmp 0x140169e8c
cmp eax, ebp
cmovg eax, ebp
jmp 0x140169e8c
mov eax, Ordinal_50
mov byte [r14], al
inc esi
inc r14
cmp esi, 0x40
jl 0x140169e30
movss xmm0, dword [0x1403bf2c0]
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movss xmm1, dword [rbx + 0x3d80]
movaps xmm2, xmm10
subss xmm2, xmm0
divss xmm1, xmm2
movss dword [rbx + 0x3f28], xmm1
mov r8d, edi
movaps xmm6, xmmword [rsp + 0x80]
mov dword [rbx + 0x3d94], edi
cmp byte [rbx + 0x39c8], dil
je 0x140169eec
mov dword [rbx + 0x3d94], 1
mov r8d, 1
mov edx, r8d
cmp byte [rbx + 0x39c9], dil
je 0x140169f11
mov rax, qword [rbx + 0x3d58]
mov rcx, qword [rax + 0x40]
test byte [rcx], 4
jne 0x140169f11
or edx, 2
mov dword [rbx + 0x3d94], edx
cmp byte [rbx + 0x39ca], dil
je 0x140169f23
or edx, 4
mov dword [rbx + 0x3d94], edx
test byte [rbx + 0xc], 8
je 0x140169f32
or edx, 8
mov dword [rbx + 0x3d94], edx
mov rcx, qword [rbx + 0x4b00]
movsxd rax, dword [rbx + 0x4af8]
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x140169f60
nop dword [rax]
mov rax, qword [rcx]
add rcx, 8
mov byte [rax + 0x48], dil
cmp rcx, rdx
jne 0x140169f50
mov rcx, qword [0x140466678]
cmp byte [rbx + 0x4d20], dil
je 0x140169f9b
mov eax, dword [rbx + 0x4d3c]
cmp eax, dword [rbx + 0x409c]
jne 0x140169f9b
cmp dword [rcx + 0x409c], eax
jne 0x140169f8c
mov dword [rcx + 0x40a0], eax
cmp dword [rcx + 0x40c8], eax
jne 0x140169f9b
mov byte [rcx + 0x40cc], 1
cmp dword [rbx + 0x408c], edi
jne 0x140169fab
mov dword [rbx + 0x4094], edi
jmp 0x140169fbd
mov eax, dword [rbx + 0x4088]
test eax, eax
je 0x140169fc3
cmp dword [rbx + 0x409c], eax
jne 0x140169fc3
mov dword [rbx + 0x4098], edi
mov eax, dword [rbx + 0x4088]
test eax, eax
je 0x140169ffd
movss xmm1, dword [rbx + 0x18]
movaps xmm0, xmm1
addss xmm0, dword [rbx + 0x4094]
movss dword [rbx + 0x4094], xmm0
cmp dword [rbx + 0x409c], eax
je 0x140169ffd
addss xmm1, dword [rbx + 0x4098]
movss dword [rbx + 0x4098], xmm1
mov dword [rbx + 0x408c], eax
mov eax, dword [rbx + 0x409c]
mov dword [rbx + 0x4088], edi
mov word [rbx + 0x4090], di
test eax, eax
je 0x14016a04f
cmp dword [rbx + 0x40a0], eax
je 0x14016a04f
cmp dword [rbx + 0x40c8], eax
jne 0x14016a04f
test byte [rbx + 0x5ffc], 1
je 0x14016a03f
lea rcx, str.NewFrame__:_ClearActiveID___because_it_isnt_marked_alive_anymore__n
call fcn.14017d500
xor edx, edx
xor ecx, ecx
call fcn.140168820
mov rcx, qword [0x140466678]
mov edx, dword [rbx + 0x409c]
test edx, edx
je 0x14016a06e
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x40a4]
movss dword [rbx + 0x40a4], xmm0
mov rax, qword [rbx + 0x40b8]
movss xmm0, dword [rbx + 0x18]
addss xmm0, dword [rbx + 0x40dc]
mov qword [rbx + 0x40d0], rax
movzx eax, byte [rbx + 0x40ac]
mov byte [rbx + 0x40cd], al
mov eax, dword [rbx + 0x5dd8]
movss dword [rbx + 0x40dc], xmm0
mov dword [rbx + 0x40c8], edx
mov dword [rbx + 0x40a0], edi
mov byte [rbx + 0x40ad], dil
mov byte [rbx + 0x40cc], dil
mov byte [rbx + 0x40a8], dil
test eax, eax
je 0x14016a0d3
cmp edx, eax
je 0x14016a0d3
mov dword [rbx + 0x5dd8], edi
test edx, edx
jne 0x14016a0ec
mov dword [rbx + 0x4970], edi
mov byte [rbx + 0x4974], dil
mov dword [rbx + 0x4978], edi
jmp 0x14016a113
mov eax, dword [rbx + 0x4978]
test eax, eax
je 0x14016a113
test al, 2
je 0x14016a113
mov eax, dword [rbx + 0x409c]
mov dword [rcx + 0x418c], eax
mov dword [rcx + 0x4188], eax
mov word [rcx + 0x4190], di
mov ecx, dword [rbx + 0x4e90]
test ecx, ecx
je 0x14016a136
movss xmm0, dword [rbx + 0x4eac]
comiss xmm0, dword [rbx + 0x3d40]
jb 0x14016a13c
mov dword [rbx + 0x4ea0], ecx
jmp 0x14016a13c
mov dword [rbx + 0x4ea0], edi
mov rax, qword [rbx + 0x4040]
test rax, rax
je 0x14016a164
movss xmm0, dword [rbx + 0x4eac]
comiss xmm0, dword [rbx + 0x3d40]
jb 0x14016a16a
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x4ea4], eax
jmp 0x14016a16a
mov dword [rbx + 0x4ea4], edi
movss xmm0, dword [rbx + 0x4e98]
mov dword [rbx + 0x4e94], ecx
test ecx, ecx
je 0x14016a197
addss xmm0, dword [rbx + 0x18]
mov dword [rbx + 0x4e9c], edi
mov dword [rbx + 0x4e90], edi
movss dword [rbx + 0x4e98], xmm0
jmp 0x14016a1d1
comiss xmm0, xmm9
jbe 0x14016a1d1
movss xmm2, dword [rbx + 0x18]
movss xmm0, dword [0x1403bf2e0]
movaps xmm1, xmm2
addss xmm1, dword [rbx + 0x4e9c]
addss xmm2, xmm2
movss dword [rbx + 0x4e9c], xmm1
maxss xmm0, xmm2
comiss xmm1, xmm0
jb 0x14016a1d1
mov qword [rbx + 0x4e98], rdi
mov eax, dword [rbx + 0x4d8c]
mov dword [rbx + 0x4d90], eax
mov qword [rbx + 0x4d88], 0x7f7fffff
mov word [rbx + 0x4d21], di
mov dword [rbx + 0x4d98], edi
call fcn.140173440
call fcn.140178e50
call fcn.140173c70
call fcn.1401694a0
mov rsi, qword [0x140466678]
mov rcx, qword [rsi + 0x4050]
test rcx, rcx
je 0x14016a2da
mov eax, dword [rsi + 0x409c]
mov dword [rsi + 0x40a0], eax
cmp dword [rsi + 0x40c8], eax
jne 0x14016a23b
mov byte [rsi + 0x40cc], 1
mov r9, qword [rcx + 0x388]
cmp byte [rsi + 0xe50], dil
je 0x14016a2d1
lea rax, [rsi + 0xe48]
mov rcx, rax
test rax, rax
jne 0x14016a265
lea rcx, [rsi + 0xe48]
movss xmm0, dword [rcx]
movss xmm1, dword [0x1403bf5ac]
comiss xmm0, xmm1
movss xmm2, dword [rcx + 4]
jb 0x14016a2d1
comiss xmm2, xmm1
jb 0x14016a2d1
movss xmm0, dword [rax]
lea rdx, [rsp + 0xc0]
movss xmm1, dword [rax + 4]
mov r8d, 1
subss xmm0, dword [rsi + 0x40b0]
subss xmm1, dword [rsi + 0x40b4]
mov rcx, r9
movss dword [rsp + 0xc0], xmm0
movss dword [rsp + 0xc4], xmm1
call fcn.1401721f0
mov rcx, qword [rsi + 0x4050]
xor edx, edx
call fcn.140171940
jmp 0x14016a31b
mov qword [rsi + 0x4050], rdi
jmp 0x14016a312
mov rcx, qword [rsi + 0x40b8]
test rcx, rcx
je 0x14016a31b
mov eax, dword [rsi + 0x409c]
cmp dword [rcx + 0x84], eax
jne 0x14016a31b
mov dword [rsi + 0x40a0], eax
cmp dword [rsi + 0x40c8], eax
jne 0x14016a309
mov byte [rsi + 0x40cc], 1
cmp byte [rsi + 0xe50], dil
jne 0x14016a31b
xor edx, edx
xor ecx, ecx
call fcn.140168820
mov r8, qword [0x140466678]
mov eax, dword [r8 + 0x4ac0]
sub eax, 1
js 0x14016a35e
mov r8, qword [r8 + 0x4ac8]
movsxd rdx, eax
add r8, 8
imul rcx, rdx, 0x38
add r8, rcx
mov rax, qword [r8]
test rax, rax
je 0x14016a354
test dword [rax + 0x14], 0x8000000
jne 0x14016a375
sub r8, 0x38
sub rdx, 1
jns 0x14016a343
cmp qword [rbx + 0x4ce8], rdi
je 0x14016a391
movss xmm0, dword [rbx + 0x4d04]
comiss xmm0, xmm9
jbe 0x14016a391
movss xmm1, dword [rbx + 0x18]
mulss xmm1, dword [0x1403bf45c]
addss xmm1, dword [rbx + 0x4d1c]
minss xmm1, xmm10
jmp 0x14016a3af
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x1403bf474]
movss xmm1, dword [rbx + 0x4d1c]
subss xmm1, xmm0
maxss xmm1, xmm9
movss dword [rbx + 0x4d1c], xmm1
mov r12d, 0xffffffff
movups xmm0, xmmword [rbx + 0x5ef8]
mov dword [rbx + 0x4ea8], edi
mov qword [rbx + 0x61ac], 0xffffffffffffffff
movups xmmword [rbx + 0x5f08], xmm0
mov dword [rbx + 0x61a8], r12d
mov byte [rbx + 0x5ef8], dil
call fcn.1401741b0
movaps xmm10, xmmword [rsp + 0x40]
cmp byte [rbx + 0x3f9f], dil
jne 0x14016a41c
movss xmm0, dword [rbx + 0x60]
comiss xmm9, xmm0
ja 0x14016a41c
movsd xmm8, qword [rbx + 0x3f88]
cvtpd2ps xmm8, xmm8
subss xmm8, xmm0
mov r14, qword [rbx + 0x3fe0]
movsxd rax, dword [rbx + 0x3fd8]
lea rbp, [r14 + rax*8]
cmp r14, rbp
je 0x14016a54b
nop word [rax + rax]
mov rsi, qword [r14]
movzx ecx, byte [rsi + 0xbe]
movzx eax, word [rsi + 0xcc]
mov byte [rsi + 0xbf], cl
mov byte [rsi + 0xbe], dil
mov byte [rsi + 0xc0], dil
mov word [rsi + 0xce], ax
mov word [rsi + 0xcc], di
test cl, cl
jne 0x14016a53e
cmp byte [rsi + 0x3f4], dil
jne 0x14016a53e
comiss xmm8, dword [rsi + 0x274]
jbe 0x14016a53e
mov rcx, qword [rsi + 0x2a8]
mov byte [rsi + 0x3f4], 1
mov eax, dword [rcx + 0x14]
mov dword [rsi + 0x3ec], eax
mov eax, dword [rcx + 0x24]
mov dword [rsi + 0x3f0], eax
mov rcx, qword [rsi + 0x108]
test rcx, rcx
je 0x14016a4d5
mov qword [rsi + 0x100], rdi
call fcn.140168ee0
mov qword [rsi + 0x108], rdi
mov rcx, qword [rsi + 0x2a8]
call fcn.14017fcd0
mov rcx, qword [rsi + 0x1a8]
test rcx, rcx
je 0x14016a500
mov qword [rsi + 0x1a0], rdi
call fcn.140168ee0
mov qword [rsi + 0x1a8], rdi
mov rcx, qword [rsi + 0x1e0]
test rcx, rcx
je 0x14016a51f
mov qword [rsi + 0x1d8], rdi
call fcn.140168ee0
mov qword [rsi + 0x1e0], rdi
mov rcx, qword [rsi + 0x1f0]
test rcx, rcx
je 0x14016a53e
mov qword [rsi + 0x1e8], rdi
call fcn.140168ee0
mov qword [rsi + 0x1f0], rdi
add r14, 8
cmp r14, rbp
jne 0x14016a440
mov ebp, edi
cmp dword [rbx + 0x4e20], edi
jle 0x14016a671
mov qword [rsp + 0x90], r15
mov r14, rdi
mov r15, rdi
mov qword [rsp + 0xd8], r13
nop
mov rax, qword [rbx + 0x4e28]
movss xmm0, dword [r14 + rax]
comiss xmm0, xmm9
jb 0x14016a648
comiss xmm8, xmm0
jbe 0x14016a648
mov rsi, qword [rbx + 0x4e00]
mov r13, qword [0x140466678]
add rsi, r15
mov qword [rsi + 0x1f0], rdi
mov rcx, qword [rsi + 0x1e8]
test rcx, rcx
je 0x14016a5c8
mov qword [rsi + 0x1e0], rdi
call fcn.140168ee0
mov qword [rsi + 0x1e8], rdi
mov byte [rsi + 0x239], 1
mov rcx, qword [rsi + 0x198]
test rcx, rcx
je 0x14016a5ee
mov qword [rsi + 0x190], rdi
call fcn.140168ee0
mov qword [rsi + 0x198], rdi
mov edx, edi
mov byte [rsi + 0x248], 1
cmp dword [rsi + 0x6c], edi
jle 0x14016a615
mov rcx, rdi
nop
mov rax, qword [rsi + 0x18]
lea rcx, [rcx + 0x70]
inc edx
mov word [rcx + rax - 0x20], r12w
cmp edx, dword [rsi + 0x6c]
jl 0x14016a600
sub rsi, qword [r13 + 0x4e00]
movabs rax, 0x3759f22983759f23
imul rsi
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r13 + 0x4e28]
movsxd rcx, edx
mov dword [rax + rcx*4], 0xbf800000
inc ebp
add r14, 4
add r15, 0x250
cmp ebp, dword [rbx + 0x4e20]
jl 0x14016a570
mov r15, qword [rsp + 0x90]
mov r13, qword [rsp + 0xd8]
mov rsi, qword [rbx + 0x4df0]
movsxd rax, dword [rbx + 0x4de8]
imul rbp, rax, 0x78
add rbp, rsi
cmp rsi, rbp
je 0x14016a6ba
nop dword [rax + rax]
movss xmm0, dword [rsi + 4]
comiss xmm0, xmm9
jb 0x14016a6b1
comiss xmm8, xmm0
jbe 0x14016a6b1
lea rcx, [rsi + 0x18]
call fcn.1401847e0
mov dword [rsi + 4], 0xbf800000
add rsi, 0x78
cmp rsi, rbp
jne 0x14016a690
movaps xmm9, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x60]
cmp byte [rbx + 0x3f9f], dil
je 0x14016a719
mov rsi, qword [0x140466678]
mov rcx, qword [rsi + 0x4aa8]
test rcx, rcx
je 0x14016a6f5
mov qword [rsi + 0x4aa0], rdi
call fcn.140168ee0
mov qword [rsi + 0x4aa8], rdi
mov rcx, qword [rsi + 0x4ab8]
test rcx, rcx
je 0x14016a714
mov qword [rsi + 0x4ab0], rdi
call fcn.140168ee0
mov qword [rsi + 0x4ab8], rdi
call fcn.14018a540
mov rax, qword [rbx + 0x4b08]
mov byte [rbx + 0x3f9f], dil
test rax, rax
je 0x14016a78b
cmp byte [rax + 0xbf], dil
jne 0x14016a78b
mov rcx, qword [0x140466678]
mov eax, dword [rcx + 0x3fe8]
sub eax, 1
js 0x14016a77f
movsxd rdx, eax
mov rax, qword [rcx + 0x3ff0]
lea r8, [rax + rdx*8]
mov rcx, qword [r8]
test rcx, rcx
je 0x14016a775
cmp byte [rcx + 0xbf], dil
je 0x14016a775
mov eax, dword [rcx + 0x14]
and eax, 0x10200
cmp eax, 0x10200
jne 0x14016a781
sub r8, 8
sub rdx, 1
jns 0x14016a755
xor ecx, ecx
mov edx, 1
call fcn.140171940
mov ecx, dword [rbx + 0x400c]
test ecx, ecx
jns 0x14016a7b1
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x4008]
test eax, eax
cmovg edx, eax
call fcn.14017e800
mov dword [rbx + 0x4008], edi
mov ecx, dword [rbx + 0x4ad4]
test ecx, ecx
jns 0x14016a7dd
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x4ad0]
test eax, eax
cmovg edx, eax
call fcn.14017e760
lea rsi, [rbx + 0x4aa0]
mov dword [rbx + 0x4ad0], edi
mov ecx, dword [rsi + 4]
test ecx, ecx
jns 0x14016a809
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
mov rcx, rsi
test eax, eax
cmovg edx, eax
call fcn.14017ea90
mov dword [rsi], edi
cmp dword [rsi + 4], edi
jne 0x14016a81d
mov edx, 8
mov rcx, rsi
call fcn.14017ea90
movsxd rcx, dword [rsi]
xor edx, edx
mov rax, qword [rsi + 8]
mov dword [rax + rcx*4], edi
lea rcx, [rbx + 0x4ab0]
inc dword [rsi]
call fcn.14017df90
mov rsi, qword [0x140466678]
mov dword [rsi + 0x6030], edi
cmp byte [rsi + 0x602b], dil
je 0x14016a9ac
mov ebp, dword [rsi + 0x408c]
xor edx, edx
mov ecx, 0x20e
mov dword [rsi + 0x4ea8], 7
mov r8d, 1
call fcn.140172f80
test al, al
je 0x14016a87e
mov byte [rsi + 0x602b], dil
mov r14d, dword [rsi + 0xe68]
xor r8d, r8d
xor edx, edx
cmp r14d, 0x3000
je 0x14016a8b6
movzx ecx, byte [rsi + 0x602c]
call fcn.140173130
test al, al
je 0x14016a8fc
test ebp, ebp
je 0x14016a8fc
mov dword [rsi + 0x6030], ebp
mov byte [rsi + 0x602b], dil
jmp 0x14016a8fc
xor ecx, ecx
call fcn.140173130
test al, al
je 0x14016a8c8
mov byte [rsi + 0x602c], dil
xor r8d, r8d
xor edx, edx
mov ecx, 1
call fcn.140173130
test al, al
je 0x14016a8e2
mov byte [rsi + 0x602c], 1
xor r8d, r8d
xor edx, edx
mov ecx, 2
call fcn.140173130
test al, al
je 0x14016a8fc
mov byte [rsi + 0x602c], 2
mov rax, qword [0x140466678]
xor ecx, ecx
or dword [rax + 0x49e8], 0x40
mov dword [rax + 0x4a48], 0x3f333333
call fcn.140176930
test al, al
je 0x14016a9ac
mov edx, ebp
lea rcx, str.HoveredId:_0x_08X
call fcn.14018b6c0
lea rcx, str.Press_ESC_to_abort_picking.
call fcn.14018b6c0
lea rax, str.Left
mov qword [rsp + 0x20], rax
lea rax, str.Right
mov qword [rsp + 0x28], rax
lea rax, str.Middle
mov qword [rsp + 0x30], rax
cmp r14d, 0x3000
jne 0x14016a978
lea rcx, str.Remap_w__CtrlShift:_click_anywhere_to_select_new_mouse_button.
call fcn.14018b6c0
jmp 0x14016a9a7
movzx r8d, byte [rsi + 0x602c]
lea rdx, str.Click__s_Button_to_break_in_debugger___remap_w__CtrlShift_
test ebp, ebp
mov eax, 0x39f0
mov ecx, 0x39e0
cmove ecx, eax
add rcx, qword [0x140466678]
mov r8, qword [rsp + r8*8 + 0x20]
call fcn.14018b810
call fcn.140171710
mov rsi, qword [0x140466678]
mov dword [rsi + 0x4084], edi
mov eax, dword [rsi + 0x6048]
inc eax
cmp dword [rsi + 0x3f90], eax
jne 0x14016aa95
mov ebp, dword [rsi + 0x408c]
test ebp, ebp
jne 0x14016a9dd
mov ebp, dword [rsi + 0x409c]
cmp dword [rsi + 0x6050], ebp
je 0x14016aa1e
mov dword [rsi + 0x6050], ebp
mov dword [rsi + 0x604c], r12d
mov ecx, dword [rsi + 0x605c]
test ecx, ecx
jns 0x14016aa18
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
lea rcx, [rsi + 0x6058]
test eax, eax
cmovg edx, eax
call fcn.14017e940
mov dword [rsi + 0x6058], edi
test ebp, ebp
je 0x14016aa95
movsxd rcx, dword [rsi + 0x604c]
test ecx, ecx
js 0x14016aa59
mov eax, ecx
cmp ecx, dword [rsi + 0x6058]
jge 0x14016aa6c
mov r8, qword [rsi + 0x6060]
lea rdx, [rcx + rcx*8]
cmp byte [r8 + rdx*8 + 5], dil
jne 0x14016aa51
cmp byte [r8 + rdx*8 + 4], 2
jle 0x14016aa6c
inc ecx
mov dword [rsi + 0x604c], ecx
mov eax, ecx
cmp ecx, r12d
jne 0x14016aa68
mov dword [rsi + 0x4084], ebp
jmp 0x14016aa95
test ecx, ecx
js 0x14016aa95
cmp eax, dword [rsi + 0x6058]
jge 0x14016aa95
cdqe
lea rdx, [rax + rax*8]
mov rax, qword [rsi + 0x6060]
mov ecx, dword [rax + rdx*8]
mov dword [rsi + 0x4084], ecx
mov rax, qword [rsi + 0x6060]
inc byte [rax + rdx*8 + 4]
movzx eax, byte [rbx + 0x6029]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xd0]
mov rbp, qword [rsp + 0xc8]
test al, al
je 0x14016aac8
sub al, 1
mov byte [rbx + 0x6029], al
jne 0x14016aac8
mov dword [rbx + 0x4984], edi
movzx eax, byte [rbx + 0x6028]
test al, al
je 0x14016aaf0
sub al, 1
mov byte [rbx + 0x6028], al
jne 0x14016aaf0
lea rcx, str._Auto_disabled_ImGuiDebugLogFlags_EventClipper_to_avoid_spamming__n
call fcn.14017d500
and dword [rbx + 0x5ffc], 0xffffffef
mov rax, qword [0x140466678]
lea rcx, str.DebugDefault
mov byte [rbx + 0x3f9d], 1
xor r8d, r8d
xor edx, edx
or dword [rax + 0x49e8], 2
mov dword [rax + 0x4a08], 0x43c80000
mov dword [rax + 0x4a0c], 0x43c80000
mov dword [rax + 0x49f0], 4
call fcn.14016f600
cmp byte [rbx + 0x79], dil
je 0x14016ab7c
movsx edx, byte [rbx + 0x602a]
cmp dl, 0xff
je 0x14016ab7f
mov eax, dword [rbx + 0x3f90]
and eax, 0x80000003
jge 0x14016ab5a
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
mov eax, 0x66666667
sete dil
add edi, edx
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub edi, eax
jmp 0x14016ab7f
mov dil, 0xff
mov byte [rbx + 0x602a], dil
mov rdi, qword [rbx + 0x5f68]
movsxd rsi, dword [rbx + 0x5f60]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x14016abb8
cmp dword [rdi + 4], 1
jne 0x14016abaf
mov rdx, rdi
mov rcx, rbx
call qword [rdi + reloc.WS2_32.dll_recv]
add rdi, 0x20
cmp rdi, rsi
jne 0x14016aba0
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret