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

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov rax, qword [0x140554040]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov eax, dword [rcx + 0xa4]
mov rdi, rcx
mov r14, qword [0x1407065c0]
inc eax
movzx ecx, byte [rcx + 0xbc]
mov r12, rdx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x64], eax
mov edx, dword [r14 + 0x1c90]
mov dword [rsp + 0x60], edx
test cl, 0x10
je 0x140049232
mov byte [rsp + 0x30], 1
cmp eax, edx
je 0x140049237
mov byte [rsp + 0x30], 0
xor r13d, r13d
lea r9d, [r13 + 1]
cmp dword [rdi + 0xb4], r13d
je 0x140049250
mov dword [rsp + 0x40], r9d
cmp eax, edx
je 0x140049255
mov dword [rsp + 0x40], r13d
and cl, 0xef
mov dword [rdi + 0xb4], r13d
xor bl, bl
mov byte [rdi + 0xbc], cl
mov rax, qword [rdi + 0x10]
mov r8, rdi
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x50], rdi
test rax, rax
je 0x140049293
nop dword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140049280
mov r8, qword [rsp + 0x50]
mov rax, qword [r14 + 0x2088]
test rax, rax
je 0x1400492ab
cmp qword [rax + 0x460], rdi
sete bl
jmp 0x1400492d8
mov rdx, qword [r14 + 0x1f58]
test rdx, rdx
je 0x1400492dc
mov rax, qword [r12 + 0x3f0]
cmp qword [rdx + 0x3f8], rax
jne 0x1400492dc
mov eax, dword [rdi]
cmp dword [r8 + 0xac], eax
movzx ebx, bl
cmove ebx, r9d
mov dword [rsp + 0x34], ebx
mov eax, dword [rdi + 8]
test eax, 0x3000
jne 0x140049ebc
movzx ecx, byte [r12 + 0xd4]
mov qword [rsp + 0x1c0], rsi
mov qword [rsp + 0x170], r15
movaps xmmword [rsp + 0x150], xmm7
shr eax, 0xa
movaps xmmword [rsp + 0x140], xmm8
movaps xmmword [rsp + 0x120], xmm10
mov byte [rsp + 0x31], cl
test r9b, al
jne 0x140049339
mov byte [r12 + 0xd4], r13b
mov dword [r12 + 0x190], r9d
mov ecx, dword [rdi]
call fcn.14003da00
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x68], rax
mov rsi, rax
test rax, rax
jne 0x14004935d
mov rcx, rdi
call fcn.140049f40
mov rsi, qword [rdi + 0x38]
and byte [rdi + 0xbc], 0xfd
movzx eax, bl
add al, al
mov dword [rsp + 0x38], r13d
or byte [rdi + 0xbc], al
mov eax, dword [rdi + 4]
or eax, dword [rdi + 8]
bt eax, 0xe
jb 0x1400493c0
cmp dword [r14 + 0x165c], 0xffffffff
je 0x1400493c0
mov byte [rbp - 0x80], 1
call fcn.14003ead0
test al, al
je 0x1400493c4
mov rdx, rsi
mov rcx, rdi
call fcn.140048fe0
test eax, eax
je 0x1400493ad
mov dword [rsi + 0x1c], eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rdi + 0xbc]
shr al, 1
and al, 1
or bl, al
mov dword [rsp + 0x34], ebx
jmp 0x1400493c4
mov byte [rbp - 0x80], r13b
movss xmm7, dword [rdi + 0x44]
mov rcx, qword [0x1407065c0]
movaps xmm5, xmm7
movss xmm3, dword [rdi + 0x40]
movzx eax, byte [rdi + 0xbc]
movaps xmm8, xmm3
movss dword [rsp + 0x74], xmm7
movss xmm1, dword [rcx + 0x1674]
movss xmm2, dword [rcx + 0x1a80]
addss xmm1, xmm1
movss dword [rbp - 0x78], xmm3
movaps xmm0, xmm2
movss dword [rbp - 0x74], xmm7
addss xmm0, xmm7
addss xmm8, dword [rdi + 0x48]
addss xmm1, xmm0
movss dword [rbp - 0x70], xmm8
movaps xmm0, xmm8
movss dword [rsp + 0x7c], xmm1
movss dword [rbp - 0x6c], xmm1
movss xmm1, dword [rcx + 0x1670]
subss xmm0, xmm1
movaps xmm4, xmm1
addss xmm4, xmm3
movss dword [rsp + 0x78], xmm0
movss dword [rsp + 0x70], xmm4
test al, 4
je 0x14004945a
subss xmm0, xmm2
movss dword [rsp + 0x78], xmm0
test al, 8
je 0x1400494a6
cmp dword [rcx + 0x165c], r13d
jne 0x140049473
addss xmm2, xmm4
movss dword [rsp + 0x70], xmm2
jmp 0x1400494a6
cmp dword [rcx + 0x165c], 1
jne 0x1400494a6
addss xmm1, xmm2
subss xmm0, xmm1
movaps xmm1, xmm0
movss dword [rsp + 0x78], xmm0
unpcklps xmm1, xmm7
movaps xmm0, xmm1
movsd qword [rsp + 0x58], xmm1
movss xmm3, dword [rsp + 0x58]
shufps xmm0, xmm0, 0x55
movaps xmm5, xmm0
mov r15d, r13d
mov eax, dword [rsi]
movups xmm0, xmmword [rsp + 0x70]
mov dword [rsp + 0x3c], eax
movss dword [rsp + 0x58], xmm3
movups xmmword [rbp - 0x68], xmm0
movss dword [rsp + 0x5c], xmm5
cmp dword [rdi + 0x28], r13d
jle 0x140049539
mov rbx, r13
nop dword [rax]
mov rax, qword [rdi + 0x30]
mov r9, qword [rbx + rax]
mov r8d, dword [r9 + 8]
test r8d, r8d
je 0x140049511
mov edx, dword [rsi]
mov eax, r13d
test edx, edx
jle 0x140049511
mov rcx, qword [rsi + 8]
nop
cmp dword [rcx], r8d
je 0x140049501
inc eax
add rcx, 0x30
cmp eax, edx
jl 0x1400494f0
jmp 0x140049511
cdqe
lea rcx, [rax + rax*2]
shl rcx, 4
add rcx, qword [rsi + 8]
jne 0x140049521
mov r8, r9
mov edx, 0x400000
mov rcx, rsi
call fcn.14006b180
inc r15d
add rbx, 8
cmp r15d, dword [rdi + 0x28]
jl 0x1400494d0
mov rcx, qword [0x1407065c0]
mov ebx, dword [rsp + 0x34]
test bl, bl
je 0x14004954a
mov eax, dword [r14 + 0x1c90]
mov dword [rdi + 0xa8], eax
cmp byte [r12 + 0xd2], r13b
je 0x14004955b
mov eax, recv
jmp 0x140049567
test bl, bl
mov rax, r13
setne al
add rax, 0xa
add rax, rax
movups xmm0, xmmword [rcx + rax*8 + 0x16fc]
movups xmmword [rsp + 0x70], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rcx + 0x1638]
lea rcx, [rsp + 0x70]
movss dword [rsp + 0x7c], xmm0
call fcn.14002e580
movss xmm0, dword [r12 + 0x88]
lea r8, [rbp - 0x70]
mov rcx, qword [r12 + 0x310]
lea rdx, [rbp - 0x78]
mov r9d, eax
mov dword [rsp + 0x28], 0x30
movss dword [rsp + 0x20], xmm0
call fcn.140053d50
cmp byte [rbp - 0x80], r13b
je 0x140049653
movsxd rax, dword [r12 + 0x108]
lea rcx, str.COLLAPSE
mov r8, qword [r12 + 0x110]
xor edx, edx
mov r8d, dword [r8 + rax*4 - 4]
call fcn.14002e0b0
mov rcx, qword [0x1407065c0]
cmp dword [rcx + 0x1d6c], eax
jne 0x140049605
mov dword [rcx + 0x1d70], eax
cmp dword [rcx + 0x1da8], eax
jne 0x140049614
mov byte [rcx + 0x1dac], 1
mov r8, rdi
lea rdx, [rsp + 0x58]
mov ecx, eax
call fcn.140061e10
test al, al
je 0x14004962c
call fcn.14003eb30
mov rax, qword [0x1407065c0]
mov ecx, dword [rax + 0x1d6c]
test ecx, ecx
je 0x140049653
mov rax, qword [rax + 0x1d18]
cmp ecx, dword [rax + 0x168]
jne 0x140049653
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x38], eax
mov r9d, dword [rsi]
lea ecx, [r9 - 1]
test ecx, ecx
js 0x140049694
movsxd rax, ecx
lea rdx, [rax + rax*2]
shl rdx, 4
nop dword [rax]
mov r8, qword [rsi + 8]
mov eax, dword [rdx + r8 + 4]
bt eax, 0x16
jae 0x140049694
btr eax, 0x16
mov r9d, ecx
mov dword [rdx + r8 + 4], eax
sub rdx, 0x30
sub ecx, 1
jns 0x140049670
mov ecx, dword [rsi]
cmp ecx, r9d
jle 0x1400496cb
lea eax, [r9 + 1]
cmp ecx, eax
jle 0x1400496cb
sub ecx, r9d
movsxd rax, r9d
movsxd rdx, ecx
lea r9, [0x140048f90]
mov r8d, 0x30
lea rcx, [rax + rax*2]
shl rcx, 4
add rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov rax, qword [r14 + 0x1f58]
test rax, rax
je 0x1400496ed
mov rax, qword [rax + 0x3e8]
cmp qword [rax + 0x460], rdi
jne 0x1400496ed
mov eax, dword [rax + 8]
mov dword [rsi + 0x18], eax
cmp qword [rsp + 0x68], r13
jne 0x140049723
mov edx, dword [rdi + 0xb0]
test edx, edx
je 0x140049723
mov r8d, dword [rsi]
mov eax, r13d
test r8d, r8d
jle 0x140049723
mov rcx, qword [rsi + 8]
nop dword [rax]
cmp dword [rcx], edx
je 0x140049990
inc eax
add rcx, 0x30
cmp eax, r8d
jl 0x140049710
movsxd rax, dword [rsi]
cmp eax, dword [rsp + 0x3c]
jle 0x140049745
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
add rcx, rcx
mov rcx, qword [rax + rcx*8 - 0x28]
mov eax, dword [rcx + 8]
mov dword [rsi + 0x1c], eax
mov dword [rsi + 0x18], eax
mov r8d, 0x500003
cmp byte [r12 + 0xd2], r13b
jne 0x140049760
test bl, bl
mov eax, 0x700003
cmovne r8d, eax
mov r9, rdi
movaps xmmword [rsp + 0x160], xmm6
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.140069eb0
movups xmm0, xmmword [r14 + 0x190c]
mov dword [rsp + 0x3c], r13d
movups xmm1, xmmword [r14 + 0x191c]
movups xmm2, xmmword [r14 + 0x16fc]
movaps xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [r14 + 0x192c]
movaps xmmword [rbp - 0x30], xmm1
movups xmm1, xmmword [r14 + 0x193c]
movaps xmmword [rbp - 0x20], xmm0
movups xmm0, xmmword [r14 + 0x194c]
mov qword [rdi + 0x88], r13
movaps xmmword [rbp - 0x50], xmm2
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm1
cmp dword [rdi + 0x28], r13d
jle 0x1400499e0
movss xmm6, dword [0x140533f1c]
lea r11, [0x140525100]
mov r15, r13
lea r10, [0x140525118]
nop
mov rax, qword [rdi + 0x30]
mov rbx, qword [r15 + rax]
cmp byte [rsp + 0x30], r13b
jne 0x140049808
mov eax, dword [rsp + 0x40]
cmp eax, dword [rbx + 8]
jne 0x14004981e
cmp byte [rbx + 0xd8], r13b
je 0x14004981e
test dword [rbx + 0xc], 0x100000
je 0x1400499bd
mov eax, dword [rbx + 0x2d0]
inc eax
cmp eax, dword [r14 + 0x1c90]
jge 0x14004983d
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x64], eax
je 0x1400499bd
mov edx, dword [rbx + 0x24]
mov r8, rbx
or edx, 1
test dword [rbx + 0xc], 0x100000
cmove edx, dword [rbx + 0x24]
mov r9d, edx
or r9d, 4
test byte [rsi + 0x10], 8
cmove r9d, edx
mov rdx, r11
sub r8, r11
nop word [rax + rax]
mov ecx, dword [r8 + rdx + 0x444]
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 [r14 + rax*8 + 0x16fc], xmm3
cmp rdx, r10
jl 0x140049870
cmp byte [rbx + 0xd8], r13b
lea r8, [rbp - 0x80]
mov rdx, qword [rbx]
mov rcx, rsi
cmove r8, r13
mov byte [rbp - 0x80], 1
mov qword [rsp + 0x20], rbx
call fcn.14006bad0
cmp byte [rbp - 0x80], r13b
jne 0x14004992a
mov eax, dword [rbx + 8]
mov dword [rdi + 0xb4], eax
mov eax, dword [rbx + 8]
cmp dword [rsi + 0x20], eax
jne 0x140049939
mov qword [rdi + 0x88], rbx
mov eax, dword [r12 + 0x16c]
mov dword [rbx + 0x474], eax
movups xmm0, xmmword [r12 + 0x170]
movups xmmword [rbx + 0x478], xmm0
mov rax, qword [r14 + 0x1f58]
test rax, rax
je 0x1400499af
cmp qword [rax + 0x3e8], rbx
jne 0x1400499af
test byte [rbx + 0x194], 2
lea r10, [0x140525118]
lea r11, [0x140525100]
jne 0x1400499bd
mov eax, dword [rbx + 8]
mov dword [r12 + 0x414], eax
jmp 0x1400499bd
cdqe
lea rcx, [rax + rax*2]
shl rcx, 4
add rcx, qword [rsi + 8]
je 0x140049723
mov dword [rsi + 0x1c], edx
mov dword [rsi + 0x18], edx
jmp 0x140049745
lea r11, [0x140525100]
lea r10, [0x140525118]
mov eax, dword [rsp + 0x3c]
add r15, 8
inc eax
mov dword [rsp + 0x3c], eax
cmp eax, dword [rdi + 0x28]
jl 0x1400497f0
movaps xmm2, xmmword [rbp - 0x50]
mov ebx, dword [rsp + 0x34]
nop dword [rax]
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movups xmmword [r14 + 0x16fc], xmm2
movups xmmword [r14 + 0x190c], xmm0
movaps xmm0, xmmword [rbp - 0x20]
movups xmmword [r14 + 0x191c], xmm1
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [r14 + 0x192c], xmm0
movaps xmm0, xmmword [rbp]
movups xmmword [r14 + 0x193c], xmm1
movups xmmword [r14 + 0x194c], xmm0
mov rax, qword [rdi + 0x88]
test rax, rax
je 0x140049a49
mov rcx, qword [rsp + 0x50]
test bl, bl
jne 0x140049a42
cmp qword [rcx + 0x88], r13
jne 0x140049a49
mov qword [rcx + 0x88], rax
movzx eax, byte [rdi + 0xbc]
xorps xmm10, xmm10
and al, 4
je 0x140049a74
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x140049a74
cmp byte [rcx + 0xd8], r13b
je 0x140049a74
mov bl, 1
jmp 0x140049b78
test al, al
je 0x140049cc2
mov rbx, qword [0x1407065c0]
movaps xmmword [rsp + 0x130], xmm9
mov r12d, dword [rbx + 0x1d54]
lea r15, [rbx + 0x1eb8]
or r12d, 4
mov dword [rbx + 0x1d54], r12d
mov ecx, dword [r15 + 4]
mov r8d, dword [r15]
cmp r8d, ecx
jne 0x140049ae1
inc r8d
test ecx, ecx
je 0x140049ac3
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140049ac8
mov eax, 8
cmp eax, r8d
mov rcx, r15
cmovg r8d, eax
mov edx, r8d
call fcn.14004f2b0
mov rbx, qword [0x1407065c0]
movsxd rcx, dword [r15]
lea rdx, [rbp - 0x68]
mov rax, qword [r15 + 8]
mov dword [rbp - 0x68], r13d
mov dword [rax + rcx*4], r12d
lea rcx, [rbx + 0x1e78]
inc dword [r15]
movups xmm0, xmmword [rbx + 0x16fc]
movss xmm6, dword [r14 + 0x16fc]
movss xmm7, dword [r14 + 0x1700]
movss xmm8, dword [r14 + 0x1704]
movss xmm9, dword [r14 + 0x1708]
movups xmmword [rbp - 0x64], xmm0
call fcn.14004ebe0
movss dword [rbx + 0x16fc], xmm6
movss dword [rbx + 0x1700], xmm7
movss dword [rbx + 0x1704], xmm8
mulss xmm9, dword [0x140533f4c]
movss dword [rbx + 0x1708], xmm9
xor bl, bl
movss xmm8, dword [rbp - 0x70]
movss xmm7, dword [rbp - 0x74]
mov r12, qword [rsp + 0x48]
movaps xmm9, xmmword [rsp + 0x130]
movsxd rax, dword [r12 + 0x108]
addss xmm7, xmm10
mov r8, qword [r12 + 0x110]
lea rcx, str.CLOSE
movss xmm0, dword [r14 + 0x1670]
xor edx, edx
xorps xmm0, xmmword [0x1405343d0]
addss xmm0, xmm0
mov r8d, dword [r8 + rax*4 - 4]
movss dword [rsp + 0x4c], xmm7
subss xmm0, dword [r14 + 0x1a80]
addss xmm0, xmm8
movss dword [rsp + 0x48], xmm0
call fcn.14002e0b0
mov rcx, qword [0x1407065c0]
cmp dword [rcx + 0x1d6c], eax
jne 0x140049be3
mov dword [rcx + 0x1d70], eax
cmp dword [rcx + 0x1da8], eax
jne 0x140049bf2
mov byte [rcx + 0x1dac], 1
lea rdx, [rsp + 0x48]
mov ecx, eax
call fcn.140061a40
test al, al
je 0x140049c67
mov edx, dword [rsi + 0x20]
test edx, edx
je 0x140049c67
mov r8d, dword [rsi]
mov eax, r13d
test r8d, r8d
jle 0x140049c67
mov rcx, qword [rsi + 8]
cmp dword [rcx], edx
je 0x140049c29
inc eax
add rcx, 0x30
cmp eax, r8d
jl 0x140049c18
jmp 0x140049c67
cdqe
lea rcx, [rax + rax*2]
shl rcx, 4
add rcx, qword [rsi + 8]
je 0x140049c67
mov eax, dword [rcx]
mov dword [rdi + 0xb4], eax
test byte [rcx + 4], 1
mov eax, dword [rcx]
jne 0x140049c5f
mov byte [rcx + 0x2a], 1
cmp dword [rsi + 0x20], eax
jne 0x140049c67
mov dword [rcx + 0x10], 0xffffffff
mov qword [rsi + 0x18], r13
jmp 0x140049c67
cmp dword [rsi + 0x20], eax
je 0x140049c67
mov dword [rsi + 0x1c], eax
test bl, bl
jne 0x140049cc2
mov rbx, qword [0x1407065c0]
mov rcx, qword [rbx + 0x1e80]
movsxd rax, dword [rbx + 0x1e78]
lea rdx, [rax + rax*4]
movsxd rax, dword [rcx + rdx*4 - 0x14]
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
add rax, rax
movups xmmword [rbx + rax*8 + 0x16fc], xmm0
dec dword [rbx + 0x1e78]
movsxd rcx, dword [rbx + 0x1eb8]
lea eax, [rcx - 1]
mov dword [rbx + 0x1eb8], eax
mov rax, qword [rbx + 0x1ec0]
mov ecx, dword [rax + rcx*4 - 8]
mov dword [rbx + 0x1d54], ecx
jmp 0x140049cc9
mov rbx, qword [0x1407065c0]
movsxd rax, dword [r12 + 0x108]
lea rcx, str.TITLEBAR
mov r8, qword [r12 + 0x110]
xor edx, edx
mov r8d, dword [r8 + rax*4 - 4]
call fcn.14002e0b0
mov r15d, eax
movaps xmm8, xmmword [rsp + 0x140]
movaps xmm7, xmmword [rsp + 0x150]
movaps xmm6, xmmword [rsp + 0x160]
cmp dword [rbx + 0x1d6c], eax
jne 0x140049d16
mov dword [rbx + 0x1d70], eax
cmp dword [rbx + 0x1da8], r15d
jne 0x140049d26
mov byte [rbx + 0x1dac], 1
mov eax, dword [r14 + 0x1d58]
test eax, eax
je 0x140049d43
cmp eax, r15d
je 0x140049d43
cmp dword [r14 + 0x1d6c], r15d
jne 0x140049e12
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
lea rcx, [rbp - 0x78]
mov edx, r15d
call fcn.140060820
mov rcx, qword [0x1407065c0]
cmp dword [r14 + 0x1d58], r15d
jne 0x140049da2
mov dword [r12 + 0x168], r15d
mov rax, qword [rcx + 0x1d18]
mov edx, dword [rax + 0x168]
cmp dword [rcx + 0x1d58], edx
jne 0x140049d93
mov byte [rcx + 0x1d60], 1
cmp dword [rcx + 0x1d6c], edx
jne 0x140049da2
mov byte [rcx + 0x1d79], 1
cmp byte [rsp + 0x30], r13b
je 0x140049e12
movss xmm0, dword [rcx + 0x434]
ucomiss xmm0, xmm10
jp 0x140049dc0
jne 0x140049dc0
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x38], eax
mov edx, dword [rsi + 0x18]
test edx, edx
je 0x140049e12
mov r8d, dword [rsi]
mov eax, r13d
test r8d, r8d
jle 0x140049e12
mov rcx, qword [rsi + 8]
cmp dword [rcx], edx
je 0x140049de7
inc eax
add rcx, 0x30
cmp eax, r8d
jl 0x140049dd6
jmp 0x140049e12
cdqe
lea rcx, [rax + rax*2]
shl rcx, 4
add rcx, qword [rsi + 8]
je 0x140049e12
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140049e07
mov rcx, qword [rdi + 0x80]
xor r8d, r8d
mov rdx, rdi
call fcn.140031260
mov edx, dword [rsi + 0x1c]
test edx, edx
movaps xmm10, xmmword [rsp + 0x120]
cmove edx, dword [rsp + 0x38]
mov r15, qword [rsp + 0x170]
test edx, edx
je 0x140049e7a
mov r8d, dword [rsi]
mov eax, r13d
test r8d, r8d
jle 0x140049e7a
mov rcx, qword [rsi + 8]
cmp dword [rcx], edx
je 0x140049e51
inc eax
add rcx, 0x30
cmp eax, r8d
jl 0x140049e40
jmp 0x140049e7a
cdqe
lea rbx, [rax + rax*2]
shl rbx, 4
add rbx, qword [rsi + 8]
je 0x140049e7a
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140049e7a
call fcn.14003d000
mov rcx, qword [rbx + 8]
xor edx, edx
call fcn.1400401f0
call fcn.14006a200
mov rax, qword [0x1407065c0]
mov rsi, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0x1d18]
dec dword [rcx + 0x108]
mov eax, dword [rdi + 8]
shr eax, 0xa
test al, 1
jne 0x140049f21
movzx eax, byte [rsp + 0x31]
mov byte [r12 + 0xd4], al
mov dword [r12 + 0x190], r13d
jmp 0x140049f21
cmp dword [rdi + 0x28], r13d
jle 0x140049ec9
mov rax, qword [rdi + 0x30]
mov r13, qword [rax]
and cl, 0xfd
mov qword [rdi + 0x88], r13
movzx eax, bl
add al, al
or cl, al
mov byte [rdi + 0xbc], cl
test bl, bl
je 0x140049ef1
mov eax, dword [r14 + 0x1c90]
mov dword [rdi + 0xa8], eax
test r13, r13
je 0x140049f21
test bl, bl
jne 0x140049f04
cmp qword [r8 + 0x88], 0
jne 0x140049f0b
mov qword [r8 + 0x88], r13
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x140049f21
mov rax, qword [rdi + 0x88]
mov ecx, dword [rax + 8]
mov dword [rdx + 0x20], ecx
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400e9c90
add rsp, 0x178
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret