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

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x18005b040]
xor rax, rsp
mov qword [rbp - 0x40], rax
mov eax, dword [rcx + 0xb0]
mov rdi, rcx
mov r15, qword [0x18005b778]
inc eax
movzx ecx, byte [rcx + 0xc8]
mov r13, rdx
mov dword [rsp + 0x40], eax
mov edx, dword [r15 + 0x3f60]
mov dword [rsp + 0x78], edx
test cl, 0x40
je 0x18002051d
mov byte [rsp + 0x30], 1
cmp eax, edx
je 0x180020522
mov byte [rsp + 0x30], 0
xor r14d, r14d
lea r9d, [r14 + 1]
cmp dword [rdi + 0xc0], r14d
je 0x18002053b
mov dword [rsp + 0x58], r9d
cmp eax, edx
je 0x180020540
mov dword [rsp + 0x58], r14d
and cl, 0xbf
mov dword [rdi + 0xc0], r14d
xor sil, sil
mov byte [rdi + 0xc8], cl
mov rax, qword [rdi + 0x18]
mov rdx, rdi
mov dword [rsp + 0x34], esi
mov qword [rsp + 0x60], rdx
test rax, rax
je 0x180020587
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x180020570
mov esi, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x60]
mov rax, qword [r15 + 0x43d0]
test rax, rax
je 0x1800205a0
cmp qword [rax + 0x420], rdi
sete sil
jmp 0x1800205cc
mov r8, qword [r15 + 0x4268]
test r8, r8
je 0x1800205d0
mov rax, qword [r13 + 0x3b0]
cmp qword [r8 + 0x3b8], rax
jne 0x1800205d0
mov eax, dword [rdi]
cmp dword [rdx + 0xb8], eax
movzx esi, sil
cmove esi, r9d
mov dword [rsp + 0x34], esi
mov eax, dword [rdi + 0x10]
test eax, 0x3000
jne 0x180021512
movzx ecx, byte [r13 + 0xd0]
mov qword [rsp + 0x1a0], rbx
mov qword [rsp + 0x150], r12
movaps xmmword [rsp + 0x140], xmm6
movaps xmmword [rsp + 0x130], xmm7
movaps xmmword [rsp + 0x120], xmm8
movaps xmmword [rsp + 0x110], xmm9
movaps xmmword [rsp + 0x100], xmm10
movaps xmmword [rsp + 0xf0], xmm11
shr eax, 0xa
movaps xmmword [rsp + 0xe0], xmm12
movaps xmmword [rsp + 0xd0], xmm13
mov byte [rsp + 0x31], cl
test r9b, al
jne 0x180020656
mov byte [r13 + 0xd0], r14b
mov dword [r13 + 0x170], r9d
mov ecx, dword [rdi]
call fcn.180012ce0
mov rax, qword [rdi + 0x40]
mov qword [rbp - 0x80], rax
mov rbx, rax
test rax, rax
jne 0x180020679
mov rcx, rdi
call fcn.1800215a0
mov rbx, qword [rdi + 0x40]
and byte [rdi + 0xc8], 0xfd
movzx eax, sil
add al, al
mov dword [rsp + 0x38], r14d
or byte [rdi + 0xc8], al
test dword [rdi + 0x10], 0x4000
jne 0x1800206db
cmp dword [r15 + 0x3930], 0xffffffff
je 0x1800206db
mov byte [rbp - 0x48], 1
call fcn.180014b30
test al, al
je 0x1800206df
mov rdx, rbx
mov rcx, rdi
call fcn.1800202f0
test eax, eax
je 0x1800206c7
mov dword [rbx + 0x1c], eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rdi + 0xc8]
shr al, 1
and al, 1
or sil, al
mov dword [rsp + 0x34], esi
jmp 0x1800206df
mov byte [rbp - 0x48], r14b
mov rcx, qword [0x18005b778]
xorps xmm13, xmm13
movss xmm7, dword [rdi + 0x4c]
movss xmm10, dword [rdi + 0x48]
movaps xmm8, xmm7
movzx eax, byte [rdi + 0xc8]
movaps xmm9, xmm10
movss xmm4, dword [rcx + 0x3944]
movss xmm2, dword [rcx + 0x3d50]
movss xmm6, dword [rcx + 0x3948]
movaps xmm0, xmm2
movss dword [rsp + 0x4c], xmm7
addss xmm0, xmm7
movss dword [rbp - 0x70], xmm10
addss xmm6, xmm6
movss dword [rbp - 0x6c], xmm7
mov qword [rsp + 0x68], r14
addss xmm9, dword [rdi + 0x50]
addss xmm6, xmm0
movss xmm0, dword [rcx + 0x391c]
movaps xmm3, xmm0
addss xmm3, xmm10
movss dword [rbp - 0x68], xmm9
movaps xmm1, xmm9
subss xmm1, xmm0
movss dword [rsp + 0x54], xmm6
movss dword [rbp - 0x64], xmm6
movaps xmm5, xmm3
addss xmm5, xmm4
subss xmm1, xmm4
movss dword [rsp + 0x48], xmm5
movss dword [rsp + 0x50], xmm1
test al, 8
je 0x1800207a8
subss xmm1, xmm2
movss dword [rsp + 0x6c], xmm7
movaps xmm0, xmm1
movss dword [rsp + 0x50], xmm1
subss xmm0, xmm4
movss dword [rsp + 0x68], xmm0
test al, 0x10
je 0x1800207fd
cmp dword [rcx + 0x3930], r14d
jne 0x1800207c9
addss xmm2, dword [rcx + 0x395c]
addss xmm2, xmm5
movss dword [rsp + 0x48], xmm2
jmp 0x1800207fd
cmp dword [rcx + 0x3930], 1
jne 0x1800207fd
addss xmm2, xmm4
subss xmm1, xmm2
movaps xmm0, xmm1
movss dword [rsp + 0x50], xmm1
unpcklps xmm0, xmm7
movaps xmm1, xmm0
movsd qword [rsp + 0x70], xmm0
movss xmm3, dword [rsp + 0x70]
shufps xmm1, xmm1, 0x55
movaps xmm8, xmm1
mov r12d, r14d
mov eax, dword [rbx]
movups xmm0, xmmword [rsp + 0x48]
mov dword [rsp + 0x3c], eax
movss dword [rsp + 0x70], xmm3
movups xmmword [rbp - 0x60], xmm0
movss dword [rsp + 0x74], xmm8
cmp dword [rdi + 0x30], r14d
jle 0x18002089a
mov rsi, r14
nop word [rax + rax]
mov rax, qword [rdi + 0x38]
mov r9, qword [rsi + rax]
mov r8d, dword [r9 + 0x90]
test r8d, r8d
je 0x180020872
mov edx, dword [rbx]
mov eax, r14d
test edx, edx
jle 0x180020872
mov rcx, qword [rbx + 8]
cmp dword [rcx], r8d
je 0x180020862
inc eax
add rcx, 0x30
cmp eax, edx
jl 0x180020851
jmp 0x180020872
cdqe
lea rcx, [rax + rax*2]
shl rcx, 4
add rcx, qword [rbx + 8]
jne 0x180020882
mov r8, r9
mov edx, 0x400000
mov rcx, rbx
call fcn.180049200
inc r12d
add rsi, 8
cmp r12d, dword [rdi + 0x30]
jl 0x180020830
mov rcx, qword [0x18005b778]
mov esi, dword [rsp + 0x34]
test sil, sil
je 0x1800208ac
mov eax, dword [r15 + 0x3f60]
mov dword [rdi + 0xb4], eax
cmp byte [r13 + 0xce], r14b
je 0x1800208bc
mov eax, 0xc
jmp 0x1800208c9
test sil, sil
mov rax, r14
setne al
add rax, 0xa
add rax, rax
movups xmm0, xmmword [rcx + rax*8 + 0x39d0]
movups xmmword [rsp + 0x48], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rcx + 0x3908]
lea rcx, [rsp + 0x48]
movss dword [rsp + 0x54], xmm0
call fcn.1800039b0
movss xmm2, dword [0x180053b70]
mov r11d, eax
movss xmm1, dword [r13 + 0x48]
movss xmm3, dword [r13 + 0x4c]
movaps xmm0, xmm1
addss xmm1, dword [r13 + 0x50]
addss xmm0, xmm2
subss xmm1, xmm2
comiss xmm0, xmm10
movaps xmm0, xmm3
addss xmm3, dword [r13 + 0x54]
setae dl
addss xmm0, xmm2
comiss xmm9, xmm1
subss xmm3, xmm2
setae r10b
comiss xmm0, xmm7
setae al
comiss xmm6, xmm3
setae r9b
test al, al
je 0x180020959
test dl, dl
je 0x180020959
mov ecx, 0x110
jmp 0x180020962
mov ecx, pe_nt_image_headers64
test al, al
je 0x18002096c
mov eax, 0x20
test r10b, r10b
jne 0x18002096f
mov eax, r14d
test r9b, r9b
je 0x180020980
test dl, dl
je 0x180020980
mov r8d, 0x40
jmp 0x180020988
mov r8d, r14d
test r9b, r9b
je 0x180020992
mov edx, 0x80
test r10b, r10b
jne 0x180020995
mov edx, r14d
movss xmm0, dword [r13 + 0x80]
or eax, r8d
or eax, edx
lea r8, [rbp - 0x68]
or eax, ecx
lea rdx, [rbp - 0x70]
mov rcx, qword [r13 + 0x2c0]
mov r9d, r11d
mov dword [rsp + 0x28], eax
movss dword [rsp + 0x20], xmm0
call fcn.180032550
cmp byte [rbp - 0x48], r14b
je 0x180020a4b
movsxd rax, dword [r13 + 0x108]
lea rcx, str.COLLAPSE
mov r8, qword [r13 + 0x110]
xor edx, edx
mov r8d, dword [r8 + rax*4 - 4]
call fcn.180003420
mov rcx, qword [0x18005b778]
mov r12d, eax
cmp dword [rcx + 0x401c], eax
jne 0x180020a12
lea r8, str.COLLAPSE
mov edx, 0xb
mov ecx, eax
call fcn.180025ef0
mov r8, rdi
lea rdx, [rsp + 0x70]
mov ecx, r12d
call fcn.18003f010
test al, al
je 0x180020a2b
call fcn.180014ba0
mov rax, qword [0x18005b778]
mov ecx, dword [rax + 0x4034]
test ecx, ecx
je 0x180020a4b
cmp ecx, dword [rax + 0x40b0]
jne 0x180020a4b
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x38], eax
mov r9d, dword [rbx]
lea ecx, [r9 - 1]
test ecx, ecx
js 0x180020a85
movsxd rax, ecx
lea rdx, [rax + rax*2]
shl rdx, 4
mov r8, qword [rbx + 8]
mov eax, dword [rdx + r8 + 4]
bt eax, 0x16
jae 0x180020a85
btr eax, 0x16
mov r9d, ecx
mov dword [rdx + r8 + 4], eax
sub rdx, 0x30
sub ecx, 1
jns 0x180020a61
mov ecx, dword [rbx]
cmp ecx, r9d
jle 0x180020ac2
lea eax, [r9 + 1]
cmp ecx, eax
jle 0x180020ac2
sub ecx, r9d
movsxd rdx, ecx
cmp rdx, 1
jbe 0x180020ac2
movsxd rax, r9d
mov r8d, 0x30
lea r9, [0x1800202a0]
lea rcx, [rax + rax*2]
shl rcx, 4
add rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov rax, qword [r15 + 0x4268]
test rax, rax
je 0x180020ae4
mov rax, qword [rax + 0x3a0]
cmp qword [rax + 0x420], rdi
jne 0x180020ae4
mov eax, dword [rax + 8]
mov dword [rbx + 0x18], eax
cmp qword [rbp - 0x80], r14
jne 0x180020b16
mov edx, dword [rdi + 0xbc]
test edx, edx
je 0x180020b16
mov r8d, dword [rbx]
mov eax, r14d
test r8d, r8d
jle 0x180020b16
mov rcx, qword [rbx + 8]
cmp dword [rcx], edx
je 0x180021029
inc eax
add rcx, 0x30
cmp eax, r8d
jl 0x180020b03
movsxd rax, dword [rbx]
cmp eax, dword [rsp + 0x3c]
jle 0x180020b3b
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
add rcx, rcx
mov rcx, qword [rax + rcx*8 - 0x28]
mov eax, dword [rcx + 0x90]
mov dword [rbx + 0x1c], eax
mov dword [rbx + 0x18], eax
mov r8d, 0x500003
cmp byte [r13 + 0xce], r14b
jne 0x180020b56
test sil, sil
mov eax, 0x700003
cmovne r8d, eax
mov r9, rdi
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.180047e60
movups xmm7, xmmword [r15 + 0x39d0]
mov dword [rsp + 0x3c], r14d
movups xmm8, xmmword [r15 + 0x3be0]
movups xmm9, xmmword [r15 + 0x3bf0]
movups xmm10, xmmword [r15 + 0x3c00]
movups xmm11, xmmword [r15 + 0x3c10]
movups xmm12, xmmword [r15 + 0x3c20]
mov qword [rdi + 0x90], r14
cmp dword [rdi + 0x30], r14d
jle 0x180020f90
movss xmm6, dword [0x180053ac8]
mov r12, r14
nop word [rax + rax]
mov rax, qword [rdi + 0x38]
mov rsi, qword [r12 + rax]
cmp byte [rsp + 0x30], r14b
jne 0x180020bdb
mov eax, dword [rsp + 0x58]
cmp eax, dword [rsi + 0x90]
jne 0x180020bf1
cmp byte [rsi + 0xd5], r14b
je 0x180020bf1
test dword [rsi + 0xc], 0x100000
je 0x180020f6f
mov eax, dword [rsi + 0x280]
inc eax
cmp eax, dword [r15 + 0x3f60]
jge 0x180020c10
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x40], eax
je 0x180020f6f
mov ecx, dword [rsi + 0x404]
xorps xmm0, xmm0
mov r8d, dword [rsi + 0x24]
mov edx, dword [rbx + 0x10]
or r8d, 1
test dword [rsi + 0xc], 0x100000
movzx eax, cl
cmove r8d, dword [rsi + 0x24]
cvtsi2ss xmm0, rax
mov eax, ecx
shr eax, 8
movzx eax, al
mulss xmm0, xmm6
movss dword [r15 + 0x39d0], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
mulss xmm0, xmm6
movss dword [r15 + 0x39d4], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
mulss xmm0, xmm6
movss dword [r15 + 0x39d8], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm6
movss dword [r15 + 0x39dc], xmm0
xorps xmm0, xmm0
mov ecx, dword [rsi + 0x408]
movzx eax, cl
cvtsi2ss xmm0, rax
mov eax, ecx
shr eax, 8
movzx eax, al
mulss xmm0, xmm6
movss dword [r15 + 0x3be0], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
mulss xmm0, xmm6
movss dword [r15 + 0x3be4], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
mulss xmm0, xmm6
movss dword [r15 + 0x3be8], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm6
movss dword [r15 + 0x3bec], xmm0
xorps xmm0, xmm0
mov ecx, dword [rsi + 0x40c]
movzx eax, cl
cvtsi2ss xmm0, rax
mov eax, ecx
shr eax, 8
movzx eax, al
mulss xmm0, xmm6
movss dword [r15 + 0x3bf0], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mulss xmm0, xmm6
movss dword [r15 + 0x3bf4], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
mulss xmm0, xmm6
movss dword [r15 + 0x3bf8], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm6
movss dword [r15 + 0x3bfc], xmm0
xorps xmm0, xmm0
mov ecx, dword [rsi + 0x410]
movzx eax, cl
cvtsi2ss xmm0, rax
mov eax, ecx
shr eax, 8
movzx eax, al
mulss xmm0, xmm6
movss dword [r15 + 0x3c00], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
mulss xmm0, xmm6
movss dword [r15 + 0x3c04], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
mulss xmm0, xmm6
movss dword [r15 + 0x3c08], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm6
movss dword [r15 + 0x3c0c], xmm0
xorps xmm0, xmm0
mov ecx, dword [rsi + 0x414]
movzx eax, cl
cvtsi2ss xmm0, rax
mov eax, ecx
shr eax, 8
movzx eax, al
mulss xmm0, xmm6
movss dword [r15 + 0x3c10], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
movzx eax, al
mulss xmm0, xmm6
movss dword [r15 + 0x3c14], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
mulss xmm0, xmm6
movss dword [r15 + 0x3c18], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm6
movss dword [r15 + 0x3c1c], xmm0
xorps xmm0, xmm0
mov ecx, dword [rsi + 0x418]
movzx eax, cl
cvtsi2ss xmm0, rax
mov eax, ecx
shr eax, 8
movzx eax, al
mulss xmm0, xmm6
movss dword [r15 + 0x3c20], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mulss xmm0, xmm6
movss dword [r15 + 0x3c24], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov eax, ecx
mulss xmm0, xmm6
movss dword [r15 + 0x3c28], xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mulss xmm0, xmm6
movss dword [r15 + 0x3c2c], xmm0
mov byte [rbp - 0x48], 1
mov r9d, r8d
mov qword [rsp + 0x20], rsi
or r9d, 4
mov rcx, rbx
test dl, 8
mov rdx, qword [rsi]
cmove r9d, r8d
cmp byte [rsi + 0xd5], r14b
lea r8, [rbp - 0x48]
cmove r8, r14
call fcn.180049b10
cmp byte [rbp - 0x48], r14b
jne 0x180020f16
mov eax, dword [rsi + 0x90]
mov dword [rdi + 0xc0], eax
mov eax, dword [rsi + 0x90]
cmp dword [rbx + 0x20], eax
jne 0x180020f28
mov qword [rdi + 0x90], rsi
mov eax, dword [r15 + 0x40b8]
mov dword [rsi + 0x434], eax
movups xmm0, xmmword [r15 + 0x40bc]
movups xmmword [rsi + 0x438], xmm0
mov rax, qword [r15 + 0x4268]
test rax, rax
je 0x180020f6f
cmp qword [rax + 0x3a0], rsi
jne 0x180020f6f
test byte [rsi + 0x174], 2
jne 0x180020f6f
mov eax, dword [rsi + 0x90]
mov dword [r13 + 0x3d4], eax
mov eax, dword [rsp + 0x3c]
add r12, 8
inc eax
mov dword [rsp + 0x3c], eax
cmp eax, dword [rdi + 0x30]
jl 0x180020bc0
mov esi, dword [rsp + 0x34]
nop word [rax + rax]
movups xmmword [r15 + 0x39d0], xmm7
movups xmmword [r15 + 0x3be0], xmm8
movups xmmword [r15 + 0x3bf0], xmm9
movups xmmword [r15 + 0x3c00], xmm10
movaps xmm10, xmmword [rsp + 0x100]
movups xmmword [r15 + 0x3c10], xmm11
movaps xmm11, xmmword [rsp + 0xf0]
movups xmmword [r15 + 0x3c20], xmm12
mov rcx, qword [rdi + 0x90]
movaps xmm12, xmmword [rsp + 0xe0]
test rcx, rcx
je 0x180021001
mov rax, qword [rsp + 0x60]
test sil, sil
jne 0x180020ffa
cmp qword [rax + 0x90], r14
jne 0x180021001
mov qword [rax + 0x90], rcx
movzx eax, byte [rdi + 0xc8]
and al, 8
je 0x180021048
mov rcx, qword [rdi + 0x90]
test rcx, rcx
je 0x180021048
cmp byte [rcx + 0xd5], r14b
je 0x180021048
mov r12b, 1
jmp 0x18002113d
cdqe
lea rcx, [rax + rax*2]
shl rcx, 4
add rcx, qword [rbx + 8]
je 0x180020b16
mov dword [rbx + 0x1c], edx
mov dword [rbx + 0x18], edx
jmp 0x180020b3b
test al, al
je 0x180021248
mov rsi, qword [0x18005b778]
mov eax, dword [rsi + 0x4098]
lea r12, [rsi + 0x41c0]
or eax, 4
mov dword [rsi + 0x4098], eax
mov ecx, dword [r12 + 4]
mov r8d, dword [r12]
mov dword [rsp + 0x40], eax
cmp r8d, ecx
jne 0x1800210af
inc r8d
test ecx, ecx
je 0x180021091
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x180021096
mov eax, 8
cmp eax, r8d
mov rcx, r12
cmovg r8d, eax
mov edx, r8d
call fcn.1800270e0
mov rsi, qword [0x18005b778]
movsxd rcx, dword [r12]
mov rax, qword [r12 + 8]
mov edx, dword [rsp + 0x40]
mov dword [rbp - 0x60], r14d
mov dword [rax + rcx*4], edx
lea rcx, [rsi + 0x4180]
inc dword [r12]
lea rdx, [rbp - 0x60]
movups xmm0, xmmword [rsi + 0x39d0]
movss xmm8, dword [r15 + 0x39dc]
movss xmm9, dword [r15 + 0x39d0]
movss xmm6, dword [r15 + 0x39d4]
movss xmm7, dword [r15 + 0x39d8]
mulss xmm8, dword [0x180053afc]
movups xmmword [rbp - 0x5c], xmm0
call fcn.1800269a0
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 [rsi + 0x39d0], xmm9
movsxd rax, dword [r13 + 0x108]
lea rcx, str.CLOSE
mov r8, qword [r13 + 0x110]
xor edx, edx
mov r8d, dword [r8 + rax*4 - 4]
call fcn.180003420
mov rcx, qword [0x18005b778]
mov esi, eax
cmp dword [rcx + 0x401c], eax
jne 0x180021182
lea r8, str.CLOSE
mov edx, 0xb
mov ecx, eax
call fcn.180025ef0
lea rdx, [rsp + 0x68]
mov ecx, esi
call fcn.18003ec40
test al, al
je 0x1800211ea
or byte [rdi + 0xc8], 0x40
mov r8d, r14d
cmp dword [rbx], r14d
jle 0x1800211ea
mov rcx, r14
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rbx + 8]
test byte [rcx + rdx + 4], 1
mov eax, dword [rcx + rdx]
jne 0x1800211d6
mov byte [rcx + rdx + 0x2c], 1
cmp dword [rbx + 0x20], eax
jne 0x1800211de
mov dword [rcx + rdx + 0x10], 0xffffffff
mov qword [rbx + 0x18], r14
jmp 0x1800211de
cmp dword [rbx + 0x20], eax
je 0x1800211de
mov dword [rbx + 0x1c], eax
inc r8d
add rcx, 0x30
cmp r8d, dword [rbx]
jl 0x1800211b0
test r12b, r12b
jne 0x180021248
mov rsi, qword [0x18005b778]
mov rcx, qword [rsi + 0x4188]
movsxd rax, dword [rsi + 0x4180]
lea rdx, [rax + rax*4]
movsxd rax, dword [rcx + rdx*4 - 0x14]
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
add rax, 0x39d
add rax, rax
movups xmmword [rsi + rax*8], xmm0
dec dword [rsi + 0x4180]
movsxd rcx, dword [rsi + 0x41c0]
lea eax, [rcx - 1]
mov dword [rsi + 0x41c0], eax
mov rax, qword [rsi + 0x41c8]
mov ecx, dword [rax + rcx*4 - 8]
mov dword [rsi + 0x4098], ecx
jmp 0x18002124f
mov rsi, qword [0x18005b778]
movsxd rax, dword [r13 + 0x108]
lea rcx, str.TITLEBAR
mov r8, qword [r13 + 0x110]
xor edx, edx
mov r8d, dword [r8 + rax*4 - 4]
call fcn.180003420
mov r12d, eax
movaps xmm9, xmmword [rsp + 0x110]
movaps xmm8, xmmword [rsp + 0x120]
movaps xmm7, xmmword [rsp + 0x130]
movaps xmm6, xmmword [rsp + 0x140]
cmp dword [rsi + 0x401c], eax
jne 0x1800212b0
lea r8, str.TITLEBAR
mov edx, 0xb
mov ecx, eax
call fcn.180025ef0
mov eax, dword [r15 + 0x4020]
test eax, eax
je 0x1800212cd
cmp eax, r12d
je 0x1800212cd
cmp dword [r15 + 0x4034], r12d
jne 0x180021394
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
lea rcx, [rbp - 0x70]
mov edx, r12d
call fcn.18003e2c0
mov rax, qword [0x18005b778]
cmp dword [r15 + 0x4020], r12d
jne 0x180021324
mov dword [r15 + 0x40b0], r12d
mov ecx, dword [rax + 0x40b0]
cmp dword [rax + 0x4020], ecx
jne 0x180021315
mov byte [rax + 0x4028], 1
cmp dword [rax + 0x4034], ecx
jne 0x180021324
mov byte [rax + 0x4041], 1
cmp byte [rsp + 0x30], r14b
je 0x180021394
movss xmm0, dword [rax + 0x36f0]
ucomiss xmm0, xmm13
jp 0x180021342
jne 0x180021342
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x38], eax
mov edx, dword [rbx + 0x18]
test edx, edx
je 0x180021394
mov r8d, dword [rbx]
mov eax, r14d
test r8d, r8d
jle 0x180021394
mov rcx, qword [rbx + 8]
cmp dword [rcx], edx
je 0x180021369
inc eax
add rcx, 0x30
cmp eax, r8d
jl 0x180021358
jmp 0x180021394
cdqe
lea rcx, [rax + rax*2]
shl rcx, 4
add rcx, qword [rbx + 8]
je 0x180021394
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x180021389
mov rcx, qword [rdi + 0x88]
xor r8d, r8d
mov rdx, rdi
call fcn.180006d10
mov edx, dword [rbx + 0x1c]
test edx, edx
movaps xmm13, xmmword [rsp + 0xd0]
cmove edx, dword [rsp + 0x38]
mov r12, qword [rsp + 0x150]
test edx, edx
je 0x1800214ce
mov r8d, dword [rbx]
mov eax, r14d
test r8d, r8d
jle 0x1800214ce
mov rcx, qword [rbx + 8]
nop word [rax + rax]
cmp dword [rcx], edx
je 0x1800213e4
inc eax
add rcx, 0x30
cmp eax, r8d
jl 0x1800213d0
jmp 0x1800214ce
cdqe
lea rsi, [rax + rax*2]
shl rsi, 4
add rsi, qword [rbx + 8]
je 0x1800214ce
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1800214ce
call fcn.1800124e0
mov rax, qword [rsi + 8]
mov rdx, qword [0x18005b778]
mov ecx, dword [rax + 0xc]
bt ecx, 0x12
jae 0x18002142a
mov qword [rdx + 0x4270], r14
jmp 0x1800214ce
cmp rax, qword [rax + 0x3a0]
je 0x180021452
bt ecx, 0x1a
jb 0x180021452
mov ecx, dword [rax + 0x3d0]
test ecx, ecx
je 0x180021452
mov dword [rdx + 0x4270], ecx
mov dword [rdx + 0x4274], r14d
jmp 0x1800214ce
movsxd rax, dword [rdx + 0x42a4]
mov dword [rdx + 0x42a4], eax
mov rcx, rax
mov rax, qword [rdx + 0x4268]
mov qword [rdx + 0x4270], r14
mov dword [rax + rcx*4 + 0x3d0], r14d
add rcx, rcx
mov rax, qword [rdx + 0x4268]
mov qword [rax + rcx*8 + 0x3d8], r14
mov qword [rax + rcx*8 + 0x3e0], r14
mov word [rdx + 0x42ad], 1
mov qword [rdx + 0x42b0], r14
mov qword [rdx + 0x42b8], r14
mov dword [rdx + 0x42c0], r14d
cmp byte [rdx + 0x42c5], r14b
jne 0x1800214c6
cmp byte [rdx + 0x42ad], r14b
jne 0x1800214c6
xor al, al
jmp 0x1800214c8
mov al, 1
mov byte [rdx + 0x42ac], al
call fcn.180048240
mov rax, qword [0x18005b778]
mov rbx, qword [rsp + 0x1a0]
mov rcx, qword [rax + 0x3fe0]
dec dword [rcx + 0x108]
mov eax, dword [rdi + 0x10]
shr eax, 0xa
test al, 1
jne 0x18002157d
movzx eax, byte [rsp + 0x31]
mov byte [r13 + 0xd0], al
mov dword [r13 + 0x170], r14d
jmp 0x18002157d
cmp dword [rdi + 0x30], r14d
jle 0x18002151f
mov rax, qword [rdi + 0x38]
mov r14, qword [rax]
and cl, 0xfd
mov qword [rdi + 0x90], r14
movzx eax, sil
add al, al
or al, cl
mov byte [rdi + 0xc8], al
test sil, sil
je 0x180021549
mov eax, dword [r15 + 0x3f60]
mov dword [rdi + 0xb4], eax
test r14, r14
je 0x18002157d
test sil, sil
jne 0x18002155d
cmp qword [rdx + 0x90], 0
jne 0x180021564
mov qword [rdx + 0x90], r14
mov rdx, qword [rdi + 0x40]
test rdx, rdx
je 0x18002157d
mov rax, qword [rdi + 0x90]
mov ecx, dword [rax + 0x90]
mov dword [rdx + 0x20], ecx
mov rcx, qword [rbp - 0x40]
xor rcx, rsp
call fcn.18004c980
add rsp, 0x158
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret