Function at 0x140035bf0
Capabilities:
Hash data with crc32

Disassembly:
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140147140]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov eax, dword [rcx + 0xb0]
mov rdi, rcx
mov r14, qword [0x140147ef0]
inc eax
movzx ecx, byte [rcx + 0xc8]
mov r8, rdx
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x70], eax
mov edx, dword [r14 + 0x3f60]
mov dword [rsp + 0x6c], edx
test cl, 0x40
je 0x140035c53
mov byte [rbp - 0x67], 1
cmp eax, edx
je 0x140035c57
mov byte [rbp - 0x67], 0
xor r13d, r13d
lea r10d, [r13 + 1]
cmp dword [rdi + 0xc0], r13d
je 0x140035c70
mov dword [rsp + 0x58], r10d
cmp eax, edx
je 0x140035c75
mov dword [rsp + 0x58], r13d
and cl, 0xbf
mov dword [rdi + 0xc0], r13d
xor r15b, r15b
mov byte [rdi + 0xc8], cl
mov rax, qword [rdi + 0x18]
mov r9, rdi
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x60], rdi
test rax, rax
je 0x140035cb3
nop
mov qword [rsp + 0x60], rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140035ca0
mov r9, qword [rsp + 0x60]
mov rax, qword [r14 + 0x43d0]
test rax, rax
je 0x140035ccc
cmp qword [rax + 0x420], rdi
sete r15b
jmp 0x140035cf9
mov rdx, qword [r14 + 0x4268]
test rdx, rdx
je 0x140035cfe
mov rax, qword [r8 + 0x3b0]
cmp qword [rdx + 0x3b8], rax
jne 0x140035cfe
mov eax, dword [rdi]
cmp dword [r9 + 0xb8], eax
movzx r15d, r15b
cmove r15d, r10d
mov dword [rsp + 0x34], r15d
mov eax, dword [rdi + 0x10]
test eax, 0x3000
jne 0x140036a64
movzx ecx, byte [r8 + 0xd0]
mov qword [rsp + 0x1e0], rbx
mov qword [rsp + 0x198], rsi
shr eax, 0xa
mov qword [rsp + 0x190], r12
movaps xmmword [rsp + 0x140], xmm10
mov byte [rsp + 0x30], cl
test r10b, al
jne 0x140035d4f
mov byte [r8 + 0xd0], r13b
mov dword [r8 + 0x170], r10d
mov ecx, dword [rdi]
call fcn.140042780
mov rax, qword [rdi + 0x40]
mov qword [rbp - 0x70], rax
mov rsi, rax
test rax, rax
jne 0x140035d72
mov rcx, rdi
call fcn.140031820
mov rsi, qword [rdi + 0x40]
and byte [rdi + 0xc8], 0xfd
lea r12, [0x1400f4471]
movzx eax, r15b
mov dword [rsp + 0x38], r13d
add al, al
lea r11, [0x1400f3180]
or byte [rdi + 0xc8], al
test dword [rdi + 0x10], 0x4000
jne 0x140035e89
cmp dword [r14 + 0x3930], 0xffffffff
je 0x140035e89
mov r10, qword [0x140147ef0]
mov rdx, r12
mov byte [rbp - 0x68], 1
mov r8b, reloc.WLDAP32.dll_Ordinal_35
mov rax, qword [r10 + 0x3fe0]
movsxd rcx, dword [rax + 0x108]
mov rax, qword [rax + 0x110]
mov r9d, dword [rax + rcx*4 - 4]
not r9d
mov ebx, r9d
cmp r8b, 0x23
jne 0x140035df7
cmp byte [rdx], r8b
jne 0x140035df7
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r11 + rcx*4]
test r8b, r8b
jne 0x140035de4
not ebx
cmp dword [r10 + 0x401c], ebx
jne 0x140035e3b
xor r9d, r9d
lea r8, str.WindowMenu
mov ecx, ebx
lea edx, [r9 + 0xb]
call fcn.14002f3e0
mov r10, qword [0x140147ef0]
movsxd rax, dword [r10 + 0x41f0]
cmp dword [r10 + 0x41e0], eax
jle 0x140035e8d
lea rcx, [rax + rax*2]
mov rax, qword [r10 + 0x41e8]
add rcx, rcx
cmp dword [rax + rcx*8], ebx
jne 0x140035e8d
mov rdx, rsi
mov rcx, rdi
call fcn.140036ae0
test eax, eax
je 0x140035e74
mov dword [rsi + 0x1c], eax
mov dword [rsp + 0x38], eax
movzx eax, byte [rdi + 0xc8]
shr al, 1
and al, 1
or r15b, al
mov dword [rsp + 0x34], r15d
jmp 0x140035e8d
mov byte [rbp - 0x68], r13b
xorps xmm0, xmm0
mov qword [rbp - 0x60], r13
xorps xmm1, xmm1
mov qword [rbp - 0x58], r13
lea rax, [rbp - 0x58]
mov rcx, rdi
lea r9, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x40]
xorps xmm10, xmm10
lea rdx, [rbp - 0x50]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm1
call fcn.140031e70
mov r15d, r13d
mov eax, dword [rsi]
mov dword [rsp + 0x68], eax
cmp dword [rdi + 0x30], r13d
jle 0x140035f1c
mov rbx, r13
nop word [rax + rax]
mov rax, qword [rdi + 0x38]
mov rcx, rsi
mov r13, qword [rbx + rax]
mov edx, dword [r13 + 0x90]
call fcn.14006bb20
test rax, rax
jne 0x140035f0c
mov r8, r13
mov edx, 0x400000
mov rcx, rsi
call fcn.14006b9d0
inc r15d
add rbx, 8
cmp r15d, dword [rdi + 0x30]
jl 0x140035ee0
xor r13d, r13d
mov r15d, dword [rsp + 0x34]
test r15b, r15b
je 0x140035f33
mov eax, dword [r14 + 0x3f60]
mov dword [rdi + 0xb4], eax
mov rdx, qword [rsp + 0x40]
cmp byte [rdx + 0xce], 0
je 0x140035f48
mov ecx, ntohl
jmp 0x140035f55
test r15b, r15b
mov rcx, r13
setne cl
add rcx, 0xa
movss xmm1, dword [rdx + 0x4c]
add rcx, rcx
mov rax, qword [0x140147ef0]
movss xmm2, dword [0x1400f483c]
movss dword [rsp + 0x4c], xmm1
addss xmm1, dword [rdx + 0x54]
movups xmm0, xmmword [rax + rcx*8 + 0x39d0]
lea rcx, [rbp - 0x50]
movups xmmword [rsp + 0x78], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x3908]
movss dword [rsp + 0x54], xmm1
movss dword [rbp - 0x7c], xmm0
movss xmm0, dword [rdx + 0x48]
movss dword [rsp + 0x48], xmm0
addss xmm0, dword [rdx + 0x50]
lea rdx, [rsp + 0x48]
movss dword [rsp + 0x50], xmm0
call fcn.140051780
lea rcx, [rsp + 0x78]
mov ebx, eax
call fcn.14002eda0
mov dword [rsp + 0x28], ebx
lea r8, [rbp - 0x48]
mov rbx, qword [rsp + 0x40]
lea rdx, [rbp - 0x50]
mov r9d, eax
movss xmm0, dword [rbx + 0x80]
mov rcx, qword [rbx + 0x2c0]
movss dword [rsp + 0x20], xmm0
call fcn.140050ee0
cmp byte [rbp - 0x68], 0
je 0x140036149
movsxd rcx, dword [rbx + 0x108]
lea rdx, [0x1400f3bc9]
mov rax, qword [rbx + 0x110]
lea r10, [0x1400f3180]
mov r8b, reloc.WLDAP32.dll_Ordinal_35
mov r9d, dword [rax + rcx*4 - 4]
not r9d
mov ebx, r9d
nop dword [rax]
cmp r8b, 0x23
jne 0x140036043
cmp byte [rdx], r8b
jne 0x140036043
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x140036030
mov rax, qword [0x140147ef0]
not ebx
cmp dword [rax + 0x401c], ebx
jne 0x140036086
xor r9d, r9d
lea r8, str.COLLAPSE
mov ecx, ebx
lea edx, [r9 + 0xb]
call fcn.14002f3e0
mov r8, rdi
lea rdx, [rbp - 0x60]
mov ecx, ebx
call fcn.1400668e0
test al, al
je 0x140036124
mov r10, qword [0x140147ef0]
mov dl, reloc.WLDAP32.dll_Ordinal_35
mov rax, qword [r10 + 0x3fe0]
movsxd rcx, dword [rax + 0x108]
mov rax, qword [rax + 0x110]
mov r9d, dword [rax + rcx*4 - 4]
not r9d
mov ebx, r9d
cmp dl, 0x23
jne 0x1400360d9
cmp byte [r12], dl
jne 0x1400360d9
cmp byte [r12 + 1], dl
cmove ebx, r9d
movzx ecx, bl
movzx eax, dl
movzx edx, byte [r12]
xor rcx, rax
shr ebx, 8
lea rax, [0x1400f3180]
inc r12
xor ebx, dword [rax + rcx*4]
test dl, dl
jne 0x1400360c5
not ebx
cmp dword [r10 + 0x401c], ebx
jne 0x14003611b
xor r9d, r9d
lea r8, str.WindowMenu
mov ecx, ebx
lea edx, [r9 + 0xb]
call fcn.14002f3e0
xor edx, edx
mov ecx, ebx
call fcn.140041db0
mov rax, qword [0x140147ef0]
mov rbx, qword [rsp + 0x40]
mov ecx, dword [rax + 0x4034]
test ecx, ecx
je 0x140036149
cmp ecx, dword [rax + 0x40b0]
jne 0x140036149
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x38], eax
mov r9d, dword [rsi]
lea edx, [r9 - 1]
test edx, edx
js 0x140036184
movsxd rax, edx
lea rcx, [rax + rax*2]
shl rcx, 4
nop
mov r8, qword [rsi + 8]
mov eax, dword [rcx + r8 + 4]
bt eax, 0x16
jae 0x140036184
btr eax, 0x16
mov r9d, edx
mov dword [rcx + r8 + 4], eax
sub rcx, 0x30
sub edx, 1
jns 0x140036160
mov ecx, dword [rsi]
cmp ecx, r9d
jle 0x1400361c1
lea eax, [r9 + 1]
cmp ecx, eax
jle 0x1400361c1
sub ecx, r9d
movsxd rdx, ecx
cmp rdx, 1
jbe 0x1400361c1
movsxd rax, r9d
mov r8d, Ordinal_50
lea r9, [0x140048790]
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 + 0x4268]
test rax, rax
je 0x1400361e3
mov rax, qword [rax + 0x3a0]
cmp qword [rax + 0x420], rdi
jne 0x1400361e3
mov eax, dword [rax + 8]
mov dword [rsi + 0x18], eax
cmp qword [rbp - 0x70], 0
jne 0x140036205
mov edx, dword [rdi + 0xbc]
mov rcx, rsi
call fcn.14006bb20
test rax, rax
je 0x140036205
mov eax, dword [rdi + 0xbc]
jmp 0x140036224
movsxd rax, dword [rsi]
cmp eax, dword [rsp + 0x68]
jle 0x14003622a
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
add rcx, rcx
mov rcx, qword [rax + rcx*8 - 0x28]
mov eax, dword [rcx + 0x90]
mov dword [rsi + 0x18], eax
mov dword [rsi + 0x1c], eax
cmp byte [rbx + 0xce], 0
mov r8d, 0x500003
jne 0x140036245
test r15b, r15b
mov eax, 0x700003
cmovne r8d, eax
mov r9, rdi
movaps xmmword [rsp + 0x180], xmm6
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.140065610
cmp dword [rdi + 0x30], 0
mov r12d, r13d
movups xmm0, xmmword [r14 + 0x3be0]
movups xmm1, xmmword [r14 + 0x3bf0]
movups xmm2, xmmword [r14 + 0x39d0]
movaps xmmword [rbp - 0x20], xmm0
movups xmm0, xmmword [r14 + 0x3c00]
movaps xmmword [rbp - 0x10], xmm1
movups xmm1, xmmword [r14 + 0x3c10]
movaps xmmword [rbp], xmm0
movups xmm0, xmmword [r14 + 0x3c20]
mov qword [rdi + 0x90], r13
movaps xmmword [rbp - 0x30], xmm2
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm1
jle 0x1400364b0
movss xmm6, dword [0x1400f47c4]
lea r11, [0x1400f3780]
mov r15, r13
lea r10, [0x1400f3798]
cmp byte [rbp - 0x67], 0
mov rax, qword [rdi + 0x38]
mov rbx, qword [r15 + rax]
jne 0x1400362eb
mov eax, dword [rsp + 0x58]
cmp eax, dword [rbx + 0x90]
jne 0x140036301
cmp byte [rbx + 0xd5], 0
je 0x140036301
test dword [rbx + 0xc], 0x100000
je 0x14003648a
mov eax, dword [rbx + 0x280]
inc eax
cmp eax, dword [r14 + 0x3f60]
jge 0x140036320
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x70], eax
je 0x14003648a
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 dword [rax]
mov ecx, dword [r8 + rdx + 0x404]
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, 0x39d
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], xmm3
cmp rdx, r10
jl 0x140036350
cmp byte [rbx + 0xd5], 0
lea r8, [rbp - 0x68]
mov rdx, qword [rbx]
mov rcx, rsi
cmove r8, r13
mov byte [rbp - 0x68], 1
mov qword [rsp + 0x20], rbx
call fcn.14006d370
cmp byte [rbp - 0x68], 0
jne 0x14003640f
mov eax, dword [rbx + 0x90]
mov dword [rdi + 0xc0], eax
mov eax, dword [rbx + 0x90]
cmp dword [rsi + 0x20], eax
jne 0x140036421
mov qword [rdi + 0x90], rbx
mov eax, dword [r14 + 0x40b8]
mov dword [rbx + 0x434], eax
movups xmm0, xmmword [r14 + 0x40bc]
movups xmmword [rbx + 0x438], xmm0
mov rax, qword [r14 + 0x4268]
test rax, rax
je 0x14003647c
cmp qword [rax + 0x3a0], rbx
jne 0x14003647c
test byte [rbx + 0x174], 2
lea r10, [0x1400f3798]
lea r11, [0x1400f3780]
jne 0x14003648a
mov rcx, qword [rsp + 0x40]
mov eax, dword [rbx + 0x90]
mov dword [rcx + 0x3d4], eax
jmp 0x14003648a
lea r11, [0x1400f3780]
lea r10, [0x1400f3798]
inc r12d
add r15, 8
cmp r12d, dword [rdi + 0x30]
jl 0x1400362d1
movaps xmm2, xmmword [rbp - 0x30]
mov r15d, dword [rsp + 0x34]
nop dword [rax]
nop dword [rax + rax]
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [r14 + 0x39d0], xmm2
movups xmmword [r14 + 0x3be0], xmm0
movaps xmm0, xmmword [rbp]
movups xmmword [r14 + 0x3bf0], xmm1
movaps xmm1, xmmword [rbp + 0x10]
movups xmmword [r14 + 0x3c00], xmm0
movaps xmm0, xmmword [rbp + 0x20]
movups xmmword [r14 + 0x3c10], xmm1
movups xmmword [r14 + 0x3c20], xmm0
mov rax, qword [rdi + 0x90]
test rax, rax
je 0x14003651b
mov rcx, qword [rsp + 0x60]
test r15b, r15b
jne 0x140036514
cmp qword [rcx + 0x90], 0
jne 0x14003651b
mov qword [rcx + 0x90], rax
movzx eax, byte [rdi + 0xc8]
and al, 8
je 0x140036543
mov rcx, qword [rdi + 0x90]
test rcx, rcx
je 0x140036543
cmp byte [rcx + 0xd5], 0
je 0x140036543
mov r15b, 1
jmp 0x140036664
test al, al
je 0x140036794
mov rax, qword [0x140147ef0]
movaps xmmword [rsp + 0x170], xmm7
movaps xmmword [rsp + 0x160], xmm8
movaps xmmword [rsp + 0x150], xmm9
mov r15d, dword [rax + 0x4098]
lea rbx, [rax + 0x41c0]
or r15d, 4
mov dword [rax + 0x4098], r15d
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r8d, ecx
jne 0x1400365b9
inc r8d
test ecx, ecx
je 0x1400365a2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1400365a7
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.14004dbe0
movsxd rcx, dword [rbx]
lea rdx, [rsp + 0x78]
mov rax, qword [rbx + 8]
mov dword [rsp + 0x78], r13d
mov dword [rax + rcx*4], r15d
inc dword [rbx]
mov rbx, qword [0x140147ef0]
movss xmm8, dword [r14 + 0x39dc]
movss xmm9, dword [r14 + 0x39d0]
movss xmm6, dword [r14 + 0x39d4]
movups xmm0, xmmword [rbx + 0x39d0]
lea rcx, [rbx + 0x4180]
movss xmm7, dword [r14 + 0x39d8]
mulss xmm8, dword [0x1400f47e8]
movups xmmword [rsp + 0x7c], xmm0
call fcn.14004d700
shufps xmm9, xmm9, 0xe1
xor r15b, r15b
movss xmm9, xmm6
shufps xmm9, xmm9, 0xc6
movss xmm9, xmm7
movaps xmm7, xmmword [rsp + 0x170]
shufps xmm9, xmm9, 0x27
movss xmm9, xmm8
movaps xmm8, xmmword [rsp + 0x160]
shufps xmm9, xmm9, 0x39
movups xmmword [rbx + 0x39d0], xmm9
movaps xmm9, xmmword [rsp + 0x150]
mov r12, qword [rsp + 0x40]
lea rdx, [0x1400f3d11]
mov r8b, reloc.WLDAP32.dll_Ordinal_35
movsxd rcx, dword [r12 + 0x108]
mov rax, qword [r12 + 0x110]
mov r9d, dword [rax + rcx*4 - 4]
not r9d
mov ebx, r9d
nop
cmp r8b, 0x23
jne 0x1400366a3
cmp byte [rdx], r8b
jne 0x1400366a3
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
lea rax, [0x1400f3180]
inc rdx
xor ebx, dword [rax + rcx*4]
test r8b, r8b
jne 0x140036690
mov rax, qword [0x140147ef0]
not ebx
cmp dword [rax + 0x401c], ebx
jne 0x1400366ec
xor r9d, r9d
lea r8, str.CLOSE
mov ecx, ebx
lea edx, [r9 + 0xb]
call fcn.14002f3e0
lea rdx, [rbp - 0x58]
mov ecx, ebx
call fcn.140066590
test al, al
je 0x14003672d
or byte [rdi + 0xc8], 0x40
mov ebx, r13d
cmp dword [rsi], 0
jle 0x14003672d
nop word [rax + rax]
movsxd rax, ebx
mov rcx, rsi
lea rdx, [rax + rax*2]
shl rdx, 4
add rdx, qword [rsi + 8]
call fcn.14006bab0
inc ebx
cmp ebx, dword [rsi]
jl 0x140036710
test r15b, r15b
jne 0x140036799
mov r8, qword [0x140147ef0]
mov rcx, qword [r8 + 0x4188]
movsxd rax, dword [r8 + 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 [r8 + rax*8], xmm0
dec dword [r8 + 0x4180]
mov rdx, qword [0x140147ef0]
movsxd rcx, dword [rdx + 0x41c0]
lea eax, [rcx - 1]
mov dword [rdx + 0x41c0], eax
mov rax, qword [rdx + 0x41c8]
mov ecx, dword [rax + rcx*4 - 8]
mov dword [rdx + 0x4098], ecx
jmp 0x140036799
mov r12, qword [rsp + 0x40]
movsxd rcx, dword [r12 + 0x108]
lea r8, [0x1400f4499]
mov rax, qword [r12 + 0x110]
mov dl, reloc.WLDAP32.dll_Ordinal_35
movaps xmm6, xmmword [rsp + 0x180]
mov r9d, dword [rax + rcx*4 - 4]
not r9d
mov ebx, r9d
cmp dl, 0x23
jne 0x1400367d7
cmp byte [r8], dl
jne 0x1400367d7
cmp byte [r8 + 1], dl
cmove ebx, r9d
movzx ecx, bl
movzx eax, dl
movzx edx, byte [r8]
xor rcx, rax
shr ebx, 8
lea rax, [0x1400f3180]
inc r8
xor ebx, dword [rax + rcx*4]
test dl, dl
jne 0x1400367c5
mov rax, qword [0x140147ef0]
not ebx
cmp dword [rax + 0x401c], ebx
jne 0x14003681e
xor r9d, r9d
lea r8, str.TITLEBAR
mov ecx, ebx
lea edx, [r9 + 0xb]
call fcn.14002f3e0
mov eax, dword [r14 + 0x4020]
test eax, eax
je 0x14003683a
cmp eax, ebx
je 0x14003683a
cmp dword [r14 + 0x4034], ebx
jne 0x1400368de
lea r9, [rbp - 0x67]
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
lea rcx, [rbp - 0x50]
mov edx, ebx
call fcn.1400659d0
cmp dword [r14 + 0x4020], ebx
jne 0x14003688f
mov dword [r14 + 0x40b0], ebx
mov rax, qword [0x140147ef0]
mov ecx, dword [rax + 0x40b0]
cmp dword [rax + 0x4020], ecx
jne 0x140036880
mov byte [rax + 0x4028], 1
cmp dword [rax + 0x4034], ecx
jne 0x14003688f
mov byte [rax + 0x4041], 1
cmp byte [rbp - 0x67], 0
je 0x1400368de
mov rax, qword [0x140147ef0]
movss xmm0, dword [rax + 0x36f0]
ucomiss xmm0, xmm10
jp 0x1400368b3
jne 0x1400368b3
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x38], eax
mov edx, dword [rsi + 0x18]
mov rcx, rsi
call fcn.14006bb20
test rax, rax
je 0x1400368de
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x1400368d3
mov rcx, qword [rdi + 0x88]
xor r8d, r8d
mov rdx, rdi
call fcn.1400485f0
mov edx, dword [rsi + 0x1c]
test edx, edx
movaps xmm10, xmmword [rsp + 0x140]
cmove edx, dword [rsp + 0x38]
test edx, edx
je 0x1400369f8
mov rcx, rsi
call fcn.14006bb20
mov rbx, rax
test rax, rax
je 0x1400369f8
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400369f8
call fcn.140039b50
mov rax, qword [rbx + 8]
mov rdx, qword [0x140147ef0]
mov ecx, dword [rax + 0xc]
bt ecx, 0x12
jae 0x140036943
mov qword [rdx + 0x4270], 0
jmp 0x1400369f8
cmp rax, qword [rax + 0x3a0]
je 0x14003696e
bt ecx, 0x1a
jb 0x14003696e
mov ecx, dword [rax + 0x3d0]
test ecx, ecx
je 0x14003696e
mov dword [rdx + 0x4270], ecx
mov dword [rdx + 0x4274], r13d
jmp 0x1400369f8
movsxd rax, dword [rdx + 0x42a4]
xorps xmm0, xmm0
mov dword [rdx + 0x42a4], eax
mov rcx, rax
mov rax, qword [rdx + 0x4268]
mov qword [rdx + 0x4270], 0
mov dword [rax + rcx*4 + 0x3d0], r13d
add rcx, rcx
mov rax, qword [rdx + 0x4268]
movups xmmword [rax + rcx*8 + 0x3d8], xmm0
mov word [rdx + 0x42ad], 1
mov qword [rdx + 0x42b0], 0
mov qword [rdx + 0x42b8], 0
mov dword [rdx + 0x42c0], r13d
mov rax, qword [0x140147ef0]
cmp byte [rax + 0x42c5], 0
jne 0x1400369f0
cmp byte [rax + 0x42ad], 0
jne 0x1400369f0
xor cl, cl
jmp 0x1400369f2
mov cl, 1
mov byte [rax + 0x42ac], cl
call fcn.140066d10
mov rax, qword [0x140147ef0]
mov rsi, qword [rsp + 0x198]
mov rbx, qword [rsp + 0x1e0]
mov rcx, qword [rax + 0x3fe0]
dec dword [rcx + 0x108]
mov eax, dword [rdi + 0x10]
shr eax, 0xa
test al, 1
jne 0x140036a40
movzx eax, byte [rsp + 0x30]
mov byte [r12 + 0xd0], al
mov dword [r12 + 0x170], r13d
mov r12, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400edb20
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
cmp dword [rdi + 0x30], r13d
jle 0x140036a71
mov rax, qword [rdi + 0x38]
mov r13, qword [rax]
and cl, 0xfd
mov qword [rdi + 0x90], r13
movzx eax, r15b
add al, al
or cl, al
mov byte [rdi + 0xc8], cl
test r15b, r15b
je 0x140036a9b
mov eax, dword [r14 + 0x3f60]
mov dword [rdi + 0xb4], eax
test r13, r13
je 0x140036a48
test r15b, r15b
jne 0x140036aaf
cmp qword [r9 + 0x90], 0
jne 0x140036ab6
mov qword [r9 + 0x90], r13
mov rdx, qword [rdi + 0x40]
test rdx, rdx
je 0x140036a48
mov rax, qword [rdi + 0x90]
mov ecx, dword [rax + 0x90]
mov dword [rdx + 0x20], ecx
jmp 0x140036a48