Function at 0x1800216c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1800ce080]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov eax, dword [rcx + 0xb0]
mov rsi, rcx
mov r15, qword [0x180158f50]
inc eax
mov r9, rdx
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x78], eax
movzx edx, byte [rsi + 0xc8]
mov ecx, dword [r15 + 0x3f78]
mov dword [rsp + 0x74], ecx
test dl, 0x40
je 0x180021724
mov byte [rsp + 0x31], 1
cmp eax, ecx
je 0x180021729
mov byte [rsp + 0x31], 0
xor r14d, r14d
lea r13d, [r14 + 1]
cmp dword [rsi + 0xc0], r14d
je 0x180021742
mov dword [rsp + 0x48], r13d
cmp eax, ecx
je 0x180021747
mov dword [rsp + 0x48], r14d
and dl, 0xbf
mov dword [rsi + 0xc0], r14d
mov byte [rsi + 0xc8], dl
mov r8, rsi
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x60], rsi
test rax, rax
je 0x180021783
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x180021770
mov r8, qword [rsp + 0x60]
mov rax, qword [r15 + 0x4bc0]
mov qword [rsp + 0x188], rdi
test rax, rax
je 0x1800217a7
cmp qword [rax + 0x460], rsi
sete dil
jmp 0x180021857
mov rcx, qword [r15 + 0x4a50]
test rcx, rcx
je 0x180021854
mov eax, dword [rsi]
cmp dword [r8 + 0xb8], eax
jne 0x180021854
mov rcx, qword [rcx + 0x3e0]
test dword [rcx + 0x14], 0x10000000
je 0x1800217f7
nop word [rax + rax]
mov rax, qword [rcx + 0x3d0]
mov rcx, qword [rax + 0x3e0]
test dword [rcx + 0x14], 0x10000000
jne 0x1800217e0
mov rax, qword [rcx + 0x468]
test rax, rax
jne 0x180021810
mov rax, qword [rcx + 0x460]
test rax, rax
je 0x180021854
nop
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18002182c
nop dword [rax]
mov rax, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x180021820
cmp rax, r8
je 0x180021975
mov rax, qword [rax + 0x88]
test rax, rax
je 0x180021854
mov rax, qword [rax + 0x3e0]
mov rax, qword [rax + 0x460]
test rax, rax
jne 0x180021810
xor dil, dil
mov eax, dword [rsi + 0x10]
mov byte [rsp + 0x30], dil
test eax, 0x3000
jne 0x1800226bf
movzx ecx, byte [r9 + 0xf0]
mov qword [rsp + 0x1d0], rbx
mov qword [rsp + 0x180], r12
movaps xmmword [rsp + 0x170], xmm6
movaps xmmword [rsp + 0x160], xmm7
movaps xmmword [rsp + 0x150], xmm8
shr eax, 0xa
movaps xmmword [rsp + 0x140], xmm9
movaps xmmword [rsp + 0x130], xmm10
mov byte [rsp + 0x32], cl
test r13b, al
jne 0x1800218c8
mov byte [r9 + 0xf0], 0
mov dword [r9 + 0x1b8], r13d
mov ecx, dword [rsi]
call fcn.180012430
mov rax, qword [rsi + 0x40]
mov r12d, 0xffffffff
mov qword [rsp + 0x50], rax
mov rbx, rax
test rax, rax
jne 0x180021985
mov rax, qword [0x180158f50]
test rax, rax
je 0x1800218fc
inc dword [rax + 0xfc]
mov ecx, 0x98
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x18002197e
mov qword [rax + 0x30], 0
xorps xmm0, xmm0
mov dword [rax + 0x38], r14d
mov dword [rax + 0x7c], r14d
mov dword [rax + 0x84], r14d
mov dword [rax + 0x8c], r14d
mov qword [rax + 0x90], r14
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
movups xmmword [rbx + 0x70], xmm0
movups xmmword [rbx + 0x80], xmm0
mov qword [rbx + 0x90], rax
mov qword [rbx + 0x24], 0xffffffffffffffff
mov word [rbx + 0x70], r12w
jmp 0x180021981
movzx edi, r13b
jmp 0x180021857
mov rbx, r14
mov qword [rsi + 0x40], rbx
and byte [rsi + 0xc8], 0xfd
movzx eax, dil
add al, al
mov dword [rsp + 0x34], r14d
or byte [rsi + 0xc8], al
xorps xmm6, xmm6
test dword [rsi + 0x10], 0x4000
jne 0x180021ad1
cmp dword [r15 + 0x3920], r12d
je 0x180021ad1
call fcn.180015b50
test al, al
je 0x180021ad9
mov rdi, qword [0x180158f50]
mov r12d, dword [rbx + 0x1c]
movss xmm1, dword [rsi + 0x48]
cmp dword [rdi + 0x3920], 0
movss xmm0, dword [rdi + 0x3938]
addss xmm0, xmm0
addss xmm0, dword [rdi + 0x3d58]
addss xmm0, dword [rsi + 0x4c]
jne 0x1800219fe
xorps xmm2, xmm2
jmp 0x180021a0b
addss xmm1, dword [rsi + 0x50]
movss xmm2, dword [0x1800c04c0]
or dword [rdi + 0x48d8], r13d
movss dword [rdi + 0x48ec], xmm1
movss dword [rdi + 0x48f0], xmm0
movss dword [rdi + 0x48f4], xmm2
movss dword [rdi + 0x48f8], xmm6
mov dword [rdi + 0x48dc], r13d
mov byte [rdi + 0x4914], r13b
call fcn.180016350
test al, al
je 0x180021aab
or byte [rsi + 0xc8], 2
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call qword [rdi + 0x5db8]
mov rdi, qword [0x180158f50]
mov rax, qword [rdi + 0x3ff8]
cmp qword [rdi + 0x4a50], rax
jne 0x180021a8f
cmp byte [rdi + 0x4ab1], 0
je 0x180021a8f
cmp dword [rdi + 0x4a90], 0
jne 0x180021a8f
or dword [rdi + 0x4ab4], 2
test dword [rax + 0x14], 0x1000000
je 0x180021a9f
mov byte [rdi + 0x3f8a], r13b
call fcn.1800118b0
mov byte [rdi + 0x3f8a], 0
mov eax, dword [rbx + 0x1c]
test eax, eax
je 0x180021abf
cmp eax, r12d
mov edx, r14d
cmovne edx, eax
mov dword [rsp + 0x34], edx
movzx eax, byte [rsi + 0xc8]
shr al, 1
and al, r13b
or byte [rsp + 0x30], al
jmp 0x180021ad9
xor r13b, r13b
mov byte [rsp + 0x30], dil
mov rcx, qword [0x180158f50]
movss xmm7, dword [rsi + 0x4c]
movss xmm10, dword [rsi + 0x48]
movaps xmm6, xmm7
movzx eax, byte [rsi + 0xc8]
movaps xmm9, xmm10
movss xmm4, dword [rcx + 0x3934]
movaps xmm3, xmm10
movss xmm2, dword [rcx + 0x3d58]
movss xmm8, dword [rcx + 0x3938]
movaps xmm0, xmm2
movss dword [rbp - 0x7c], xmm7
addss xmm0, xmm7
movss dword [rbp - 0x68], xmm10
addss xmm8, xmm8
movss dword [rbp - 0x64], xmm7
mov qword [rsp + 0x68], 0
addss xmm9, dword [rsi + 0x50]
addss xmm8, xmm0
movss xmm0, dword [rcx + 0x390c]
addss xmm3, xmm0
movss dword [rbp - 0x60], xmm9
movaps xmm1, xmm9
subss xmm1, xmm0
movss dword [rbp - 0x74], xmm8
movss dword [rbp - 0x5c], xmm8
movaps xmm5, xmm3
addss xmm5, xmm4
subss xmm1, xmm4
movss dword [rbp - 0x80], xmm5
movss dword [rbp - 0x78], xmm1
test al, 8
je 0x180021ba1
subss xmm1, xmm2
movss dword [rsp + 0x6c], xmm7
movaps xmm0, xmm1
movss dword [rbp - 0x78], xmm1
subss xmm0, xmm4
movss dword [rsp + 0x68], xmm0
test al, 0x10
je 0x180021bf3
cmp dword [rcx + 0x3920], 0
jne 0x180021bc1
addss xmm2, dword [rcx + 0x394c]
addss xmm2, xmm5
movss dword [rbp - 0x80], xmm2
jmp 0x180021bf3
cmp dword [rcx + 0x3920], 1
jne 0x180021bf3
addss xmm2, xmm4
subss xmm1, xmm2
movaps xmm0, xmm1
movss dword [rbp - 0x78], xmm1
unpcklps xmm0, xmm7
movaps xmm1, xmm0
movsd qword [rsp + 0x38], xmm0
movss xmm3, dword [rsp + 0x38]
shufps xmm1, xmm1, 0x55
movaps xmm6, xmm1
cmp dword [rsi + 0x30], 0
mov r12d, r14d
movups xmm0, xmmword [rbp - 0x80]
mov eax, dword [rbx]
movss dword [rsp + 0x38], xmm3
movups xmmword [rbp - 0x58], xmm0
mov dword [rsp + 0x70], eax
movss dword [rsp + 0x3c], xmm6
jle 0x180021c82
mov rdi, r14
nop dword [rax]
mov rax, qword [rsi + 0x38]
mov r9, qword [rdi + rax]
mov r8d, dword [r9 + 0xb0]
test r8d, r8d
je 0x180021c5e
mov edx, dword [rbx]
mov eax, r14d
test edx, edx
jle 0x180021c5e
mov rcx, qword [rbx + 8]
cmp dword [rcx], r8d
je 0x180021c52
inc eax
add rcx, 0x38
cmp eax, edx
jl 0x180021c41
jmp 0x180021c5e
cdqe
imul rcx, rax, 0x38
add rcx, qword [rbx + 8]
jne 0x180021c6e
mov r8, r9
mov edx, 0x400000
mov rcx, rbx
call fcn.1800449b0
inc r12d
add rdi, 8
cmp r12d, dword [rsi + 0x30]
jl 0x180021c20
mov rcx, qword [0x180158f50]
movzx r12d, byte [rsp + 0x30]
test r12b, r12b
je 0x180021c9a
mov eax, dword [r15 + 0x3f78]
mov dword [rsi + 0xb4], eax
mov rdi, qword [rsp + 0x40]
cmp byte [rdi + 0xee], 0
je 0x180021caf
mov eax, ntohs
jmp 0x180021cbc
test r12b, r12b
mov rax, r14
setne al
add rax, 0xa
add rax, rax
movups xmm0, xmmword [rcx + rax*8 + 0x39d4]
movups xmmword [rbp - 0x80], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rcx + 0x38f8]
lea rcx, [rbp - 0x80]
movss dword [rbp - 0x74], xmm0
call fcn.1800035b0
movss xmm2, dword [0x1800c04dc]
mov r10d, eax
movss xmm1, dword [rdi + 0x50]
movss xmm3, dword [rdi + 0x54]
movaps xmm0, xmm1
addss xmm1, dword [rdi + 0x58]
addss xmm0, xmm2
subss xmm1, xmm2
comiss xmm0, xmm10
movaps xmm10, xmmword [rsp + 0x130]
movaps xmm0, xmm3
addss xmm3, dword [rdi + 0x5c]
setae cl
addss xmm0, xmm2
comiss xmm9, xmm1
subss xmm3, xmm2
setae r9b
comiss xmm0, xmm7
setae al
comiss xmm8, xmm3
setae dl
test al, al
je 0x180021d4f
test cl, cl
je 0x180021d4f
mov r8d, reloc.WS2_32.dll_recv
jmp 0x180021d56
mov r8d, r14d
test al, al
je 0x180021d60
mov eax, reloc.WLDAP32.dll_Ordinal_32
test r9b, r9b
jne 0x180021d63
mov eax, r14d
test dl, dl
je 0x180021d72
test cl, cl
je 0x180021d72
mov ecx, 0x140
jmp 0x180021d7b
mov ecx, 0x100
test dl, dl
je 0x180021d85
mov edx, 0x80
test r9b, r9b
jne 0x180021d88
mov edx, r14d
movss xmm0, dword [rdi + 0x88]
or eax, r8d
or eax, edx
lea r8, [rbp - 0x60]
or eax, ecx
lea rdx, [rbp - 0x68]
mov rcx, qword [rdi + 0x300]
mov r9d, r10d
mov dword [rsp + 0x28], eax
movss dword [rsp + 0x20], xmm0
call fcn.180033900
test r13b, r13b
je 0x180021e3b
movsxd rax, dword [rdi + 0x128]
lea rcx, str.COLLAPSE
mov r8, qword [rdi + 0x130]
xor edx, edx
mov r8d, dword [r8 + rax*4 - 4]
call fcn.1800030e0
mov edi, eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
cmp dword [rcx + 0x4040], edi
jne 0x180021e03
lea r8, str.COLLAPSE
mov edx, ntohs
mov ecx, edi
call fcn.1800275f0
mov r8, rsi
lea rdx, [rsp + 0x38]
mov ecx, edi
call fcn.1800407d0
test al, al
je 0x180021e1b
call fcn.180015bc0
mov rax, qword [0x180158f50]
mov ecx, dword [rax + 0x4058]
test ecx, ecx
je 0x180021e3b
cmp ecx, dword [rax + 0x489c]
jne 0x180021e3b
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x34], eax
mov edi, dword [rbx]
lea ecx, [rdi - 1]
test ecx, ecx
js 0x180021e73
movsxd rax, ecx
imul rdx, rax, 0x38
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov eax, dword [r8 + rdx + 4]
bt eax, 0x16
jae 0x180021e73
btr eax, 0x16
mov edi, ecx
mov dword [r8 + rdx + 4], eax
sub rdx, 0x38
sub ecx, 1
jns 0x180021e50
mov r8d, dword [rbx]
cmp r8d, edi
jle 0x180021f31
test byte [r15 + 0x5ea4], 0x40
je 0x180021eb2
mov edx, dword [rsi]
lea eax, [rdi + 1]
cmp r8d, eax
lea rcx, str.__will_sort_
lea r9, [0x1800b6ade]
cmovg r9, rcx
sub r8d, edi
lea rcx, str._docking__In_node_0x_08X:__d_new_appearing_tabs:_s_n
call fcn.180027220
mov ecx, dword [rbx]
mov r12d, edi
cmp edi, ecx
jge 0x180021efb
movsxd rax, edi
imul r13, rax, 0x38
test byte [r15 + 0x5ea4], 0x40
je 0x180021eed
mov rax, qword [rbx + 8]
lea rcx, str._docking____Tab__s_Order__d_n
mov rdx, qword [rax + r13 + 8]
movsx r8d, word [rdx + 0x446]
mov rdx, qword [rdx + 8]
call fcn.180027220
mov ecx, dword [rbx]
inc r12d
add r13, 0x38
cmp r12d, ecx
jl 0x180021ec2
lea eax, [rdi + 1]
cmp ecx, eax
jle 0x180021f2b
sub ecx, edi
movsxd rdx, ecx
cmp rdx, 1
jbe 0x180021f2b
movsxd rax, edi
lea r9, [0x180021540]
imul rcx, rax, 0x38
mov r8d, Ordinal_60
add rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
movzx r12d, byte [rsp + 0x30]
mov rax, qword [r15 + 0x4a50]
test rax, rax
je 0x180021f56
mov rax, qword [rax + 0x3e0]
cmp qword [rax + 0x460], rsi
jne 0x180021f56
mov eax, dword [rax + 0xb0]
mov dword [rbx + 0x18], eax
cmp qword [rsp + 0x50], 0
jne 0x180021f8a
mov edx, dword [rsi + 0xbc]
test edx, edx
je 0x180021f8a
mov r8d, dword [rbx]
mov eax, r14d
test r8d, r8d
jle 0x180021f8a
mov rcx, qword [rbx + 8]
cmp dword [rcx], edx
je 0x1800221fb
inc eax
add rcx, 0x38
cmp eax, r8d
jl 0x180021f77
movsxd rax, dword [rbx]
cmp eax, dword [rsp + 0x70]
jle 0x180021fac
imul rcx, rax, 0x38
mov rax, qword [rbx + 8]
mov rcx, qword [rcx + rax - 0x30]
mov eax, dword [rcx + 0xb0]
mov dword [rbx + 0x1c], eax
mov dword [rbx + 0x18], eax
mov rax, qword [rsp + 0x40]
mov r8d, 0x500003
cmp byte [rax + 0xee], 0
jne 0x180021fcc
test r12b, r12b
mov eax, 0x700003
cmovne r8d, eax
mov r9, rsi
lea rdx, [rbp - 0x58]
mov rcx, rbx
call fcn.1800435b0
cmp dword [rsi + 0x30], 0
mov r13d, r14d
movups xmm0, xmmword [r15 + 0x3be4]
movups xmm1, xmmword [r15 + 0x3bf4]
movups xmm2, xmmword [r15 + 0x39d4]
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [r15 + 0x3c04]
movaps xmmword [rbp - 0x20], xmm1
movups xmm1, xmmword [r15 + 0x3c14]
movaps xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [r15 + 0x3c24]
mov qword [rsi + 0x90], r14
movaps xmmword [rbp - 0x40], xmm2
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm1
jle 0x180022240
movss xmm6, dword [0x1800c0444]
lea r11, [0x1800b88d0]
mov r12, r14
lea r10, reloc.WS2_32.dll_ioctlsocket
cmp byte [rsp + 0x31], 0
mov rax, qword [rsi + 0x38]
mov rdi, qword [r12 + rax]
jne 0x18002206b
mov eax, dword [rsp + 0x48]
cmp eax, dword [rdi + 0xb0]
jne 0x180022081
cmp byte [rdi + 0xf5], 0
je 0x180022081
test dword [rdi + 0x14], 0x100000
je 0x180022224
mov eax, dword [rdi + 0x2c0]
inc eax
cmp eax, dword [r15 + 0x3f78]
jge 0x1800220a0
mov eax, dword [rsp + 0x74]
cmp dword [rsp + 0x78], eax
je 0x180022224
mov edx, dword [rdi + 0x2c]
mov r8, rdi
or edx, 1
test dword [rdi + 0x14], 0x100000
cmove edx, dword [rdi + 0x2c]
mov r9d, edx
or r9d, 4
test byte [rbx + 0x10], 8
cmove r9d, edx
mov rdx, r11
sub r8, r11
nop dword [rax]
mov ecx, dword [rdx + r8 + 0x448]
xorps xmm3, xmm3
movzx eax, cl
xorps xmm2, xmm2
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2ss xmm3, rax
mov eax, ecx
shr eax, 8
movzx eax, al
cvtsi2ss xmm2, rax
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
mulss xmm3, xmm6
cvtsi2ss xmm1, rax
mov eax, ecx
shufps xmm3, xmm3, 0xe1
cvtsi2ss xmm0, rax
movsxd rax, dword [rdx]
add rdx, 4
add rax, rax
mulss xmm2, xmm6
mulss xmm1, xmm6
mulss xmm0, xmm6
movss xmm3, xmm2
shufps xmm3, xmm3, 0xc6
movss xmm3, xmm1
shufps xmm3, xmm3, 0x27
movss xmm3, xmm0
shufps xmm3, xmm3, 0x39
movups xmmword [r15 + rax*8 + 0x39d4], xmm3
cmp rdx, r10
jl 0x1800220d0
cmp byte [rdi + 0xf5], 0
lea r8, [rbp - 0x70]
mov rdx, qword [rdi + 8]
mov rcx, rbx
cmove r8, r14
mov byte [rbp - 0x70], 1
mov qword [rsp + 0x20], rdi
call fcn.180045290
cmp byte [rbp - 0x70], 0
jne 0x18002218e
mov eax, dword [rdi + 0xb0]
mov dword [rsi + 0xc0], eax
mov eax, dword [rdi + 0xb0]
cmp dword [rbx + 0x20], eax
jne 0x1800221a0
mov qword [rsi + 0x90], rdi
mov eax, dword [r15 + 0x48a4]
mov dword [rdi + 0x474], eax
movups xmm0, xmmword [r15 + 0x48a8]
movups xmmword [rdi + 0x478], xmm0
mov rax, qword [r15 + 0x4a50]
test rax, rax
je 0x180022216
cmp qword [rax + 0x3e0], rdi
jne 0x180022216
test byte [rdi + 0x1bc], 2
lea r10, reloc.WS2_32.dll_ioctlsocket
lea r11, [0x1800b88d0]
jne 0x180022224
mov rcx, qword [rsp + 0x40]
mov eax, dword [rdi + 0xb0]
mov dword [rcx + 0x414], eax
jmp 0x180022224
cdqe
imul rcx, rax, 0x38
add rcx, qword [rbx + 8]
je 0x180021f8a
mov dword [rbx + 0x1c], edx
mov dword [rbx + 0x18], edx
jmp 0x180021fac
lea r11, [0x1800b88d0]
lea r10, reloc.WS2_32.dll_ioctlsocket
inc r13d
add r12, 8
cmp r13d, dword [rsi + 0x30]
jl 0x180022050
movaps xmm2, xmmword [rbp - 0x40]
nop dword [rax]
movaps xmm0, xmmword [rbp - 0x30]
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [r15 + 0x39d4], xmm2
movups xmmword [r15 + 0x3be4], xmm0
movaps xmm0, xmmword [rbp - 0x10]
movups xmmword [r15 + 0x3bf4], xmm1
movaps xmm1, xmmword [rbp]
movups xmmword [r15 + 0x3c04], xmm0
movaps xmm0, xmmword [rbp + 0x10]
movups xmmword [r15 + 0x3c14], xmm1
movups xmmword [r15 + 0x3c24], xmm0
mov rax, qword [rsi + 0x90]
test rax, rax
je 0x1800222ad
cmp byte [rsp + 0x30], 0
mov rcx, qword [rsp + 0x60]
jne 0x1800222a6
cmp qword [rcx + 0x90], 0
jne 0x1800222ad
mov qword [rcx + 0x90], rax
movzx eax, byte [rsi + 0xc8]
and al, 8
je 0x1800222d5
mov rcx, qword [rsi + 0x90]
test rcx, rcx
je 0x1800222d5
cmp byte [rcx + 0xf5], 0
je 0x1800222d5
mov r12b, 1
jmp 0x1800223c6
test al, al
je 0x1800224da
mov rdi, qword [0x180158f50]
mov r13d, dword [rdi + 0x4880]
lea r12, [rdi + 0x49a8]
or r13d, 4
mov dword [rdi + 0x4880], r13d
mov ecx, dword [r12 + 4]
mov r8d, dword [r12]
cmp r8d, ecx
jne 0x18002233b
inc r8d
test ecx, ecx
je 0x18002231d
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x180022322
mov eax, 8
cmp eax, r8d
mov rcx, r12
cmovg r8d, eax
mov edx, r8d
call fcn.180028c10
mov rdi, qword [0x180158f50]
movsxd rcx, dword [r12]
lea rdx, [rbp - 0x58]
mov rax, qword [r12 + 8]
mov dword [rbp - 0x58], r14d
mov dword [rax + rcx*4], r13d
lea rcx, [rdi + 0x4968]
inc dword [r12]
movups xmm0, xmmword [rdi + 0x39d4]
movss xmm8, dword [r15 + 0x39e0]
movss xmm9, dword [r15 + 0x39d4]
movss xmm6, dword [r15 + 0x39d8]
movss xmm7, dword [r15 + 0x39dc]
mulss xmm8, dword [0x1800c0474]
movups xmmword [rbp - 0x54], xmm0
call fcn.180028200
shufps xmm9, xmm9, 0xe1
xor r12b, r12b
movss xmm9, xmm6
shufps xmm9, xmm9, 0xc6
movss xmm9, xmm7
shufps xmm9, xmm9, 0x27
movss xmm9, xmm8
shufps xmm9, xmm9, 0x39
movups xmmword [rdi + 0x39d4], xmm9
mov r13, qword [rsp + 0x40]
lea rcx, str.CLOSE
xor edx, edx
movsxd rax, dword [r13 + 0x128]
mov r8, qword [r13 + 0x130]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.1800030e0
mov rcx, qword [r13]
mov edi, eax
cmp dword [rcx + 0x4040], eax
jne 0x18002240d
lea r8, str.CLOSE
mov edx, ntohs
mov ecx, eax
call fcn.1800275f0
lea rdx, [rsp + 0x68]
mov ecx, edi
call fcn.180040400
test al, al
je 0x180022475
or byte [rsi + 0xc8], 0x40
mov r8d, r14d
cmp dword [rbx], 0
jle 0x180022475
mov rcx, r14
nop
mov rdx, qword [rbx + 8]
mov eax, dword [rcx + rdx + 4]
bt eax, 0x15
jb 0x180022469
test al, 1
mov eax, dword [rcx + rdx]
jne 0x180022461
mov byte [rcx + rdx + 0x30], 1
cmp dword [rbx + 0x20], eax
jne 0x180022469
mov dword [rcx + rdx + 0x10], 0xffffffff
mov qword [rbx + 0x18], 0
jmp 0x180022469
cmp dword [rbx + 0x20], eax
je 0x180022469
mov dword [rbx + 0x1c], eax
inc r8d
add rcx, 0x38
cmp r8d, dword [rbx]
jl 0x180022430
test r12b, r12b
jne 0x1800224df
mov r8, qword [0x180158f50]
movsxd rax, dword [r8 + 0x4968]
cmp eax, 1
jl 0x1800224b5
mov rcx, qword [r8 + 0x4970]
lea rdx, [rax + rax*4]
movsxd rax, dword [rcx + rdx*4 - 0x14]
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
add rax, rax
movups xmmword [r8 + rax*8 + 0x39d4], xmm0
dec dword [r8 + 0x4968]
movsxd rcx, dword [r8 + 0x49a8]
lea eax, [rcx - 1]
mov dword [r8 + 0x49a8], eax
mov rax, qword [r8 + 0x49b0]
mov ecx, dword [rax + rcx*4 - 8]
mov dword [r8 + 0x4880], ecx
jmp 0x1800224df
mov r13, qword [rsp + 0x40]
movsxd rax, dword [r13 + 0x128]
lea rcx, str.TITLEBAR
mov r8, qword [r13 + 0x130]
xor edx, edx
mov r8d, dword [r8 + rax*4 - 4]
call fcn.1800030e0
mov rcx, qword [r13]
mov edi, eax
movaps xmm9, xmmword [rsp + 0x140]
movaps xmm8, xmmword [rsp + 0x150]
movaps xmm7, xmmword [rsp + 0x160]
movaps xmm6, xmmword [rsp + 0x170]
mov r12, qword [rsp + 0x180]
cmp dword [rcx + 0x4040], eax
jne 0x18002254b
lea r8, str.TITLEBAR
mov edx, ntohs
mov ecx, eax
call fcn.1800275f0
mov eax, dword [r15 + 0x4044]
test eax, eax
je 0x180022567
cmp eax, edi
je 0x180022567
cmp dword [r15 + 0x4058], edi
jne 0x180022628
lea r9, [rbp - 0x70]
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
lea rcx, [rbp - 0x68]
mov edx, edi
call fcn.18003f460
cmp dword [r15 + 0x4044], edi
jne 0x1800225bc
mov rax, qword [0x180158f50]
mov dword [r15 + 0x489c], edi
mov ecx, dword [rax + 0x489c]
cmp dword [rax + 0x4044], ecx
jne 0x1800225ad
mov byte [rax + 0x404c], 1
cmp dword [rax + 0x4058], ecx
jne 0x1800225bc
mov byte [rax + 0x4065], 1
cmp byte [rbp - 0x70], 0
je 0x180022628
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180012d50
test al, al
je 0x1800225d9
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x34], eax
mov edx, dword [rbx + 0x18]
test edx, edx
je 0x180022628
mov r8d, dword [rbx]
mov eax, r14d
test r8d, r8d
jle 0x180022628
mov rcx, qword [rbx + 8]
nop
cmp dword [rcx], edx
je 0x180022601
inc eax
add rcx, 0x38
cmp eax, r8d
jl 0x1800225f0
jmp 0x180022628
cdqe
imul rcx, rax, 0x38
add rcx, qword [rbx + 8]
je 0x180022628
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x18002261d
mov rcx, qword [rsi + 0x88]
xor r8d, r8d
mov rdx, rsi
call fcn.180007b20
mov edx, dword [rbx + 0x1c]
test edx, edx
cmove edx, dword [rsp + 0x34]
test edx, edx
je 0x18002267b
mov r8d, dword [rbx]
mov eax, r14d
test r8d, r8d
jle 0x18002267b
mov rcx, qword [rbx + 8]
cmp dword [rcx], edx
je 0x180022656
inc eax
add rcx, 0x38
cmp eax, r8d
jl 0x180022645
jmp 0x18002267b
cdqe
imul rdi, rax, 0x38
add rdi, qword [rbx + 8]
je 0x18002267b
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x18002267b
call fcn.180011c50
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.180017b80
call fcn.1800439b0
mov rax, qword [0x180158f50]
mov rbx, qword [rsp + 0x1d0]
mov rcx, qword [rax + 0x3ff8]
dec dword [rcx + 0x128]
mov eax, dword [rsi + 0x10]
shr eax, 0xa
test al, 1
jne 0x18002272a
movzx eax, byte [rsp + 0x32]
mov byte [r13 + 0xf0], al
mov dword [r13 + 0x1b8], r14d
jmp 0x18002272a
cmp dword [rsi + 0x30], 0
jle 0x1800226cc
mov rax, qword [rsi + 0x38]
mov r14, qword [rax]
and dl, 0xfd
mov qword [rsi + 0x90], r14
movzx eax, dil
add al, al
or dl, al
mov byte [rsi + 0xc8], dl
test dil, dil
je 0x1800226f6
mov eax, dword [r15 + 0x3f78]
mov dword [rsi + 0xb4], eax
test r14, r14
je 0x18002272a
test dil, dil
jne 0x18002270a
cmp qword [r8 + 0x90], 0
jne 0x180022711
mov qword [r8 + 0x90], r14
mov rdx, qword [rsi + 0x40]
test rdx, rdx
je 0x18002272a
mov rax, qword [rsi + 0x90]
mov ecx, dword [rax + 0xb0]
mov dword [rdx + 0x20], ecx
mov rdi, qword [rsp + 0x188]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1800a6750
add rsp, 0x190
pop r15
pop r14
pop r13
pop rsi
pop rbp
ret