Function at 0x1400222b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rbp, qword [0x140157940]
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x98], rbp
cmp byte [rbp], 0
jne 0x1400222ff
mov r8d, 0x273f
lea rdx, str.E:ReposSimHapticlibsimguiimgui.cpp
lea rcx, str.g.Initialized
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rsi, rsi
jne 0x140022322
mov rsi, 0xffffffffffffffff
nop dword [rax + rax]
inc rsi
cmp byte [r14 + rsi], 0
jne 0x140022310
mov qword [rsp + 0x88], rsi
mov ecx, dword [rbp + 0x3024]
lea ebx, [rsi + 1]
cmp ebx, ecx
jle 0x140022356
test ecx, ecx
je 0x14002233e
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140022343
mov eax, 8
cmp eax, ebx
lea rcx, [rbp + 0x3020]
mov edx, ebx
cmovg edx, eax
call fcn.140023ad0
mov dword [rbp + 0x3020], ebx
mov r8, rsi
mov r15, qword [rbp + 0x3028]
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x28], r15
lea rax, [r15 + rsi]
mov qword [rsp + 0x90], rax
call sub.VCRUNTIME140.dll_memcpy
xor r12d, r12d
mov byte [r15 + rsi], 0
mov eax, dword [rbp + 0x3030]
mov ebx, r12d
test eax, eax
jle 0x140022453
mov edi, r12d
nop
test ebx, ebx
js 0x1400223a8
cmp ebx, eax
jl 0x1400223c2
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011c2a8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp + 0x3038]
cmp qword [rax + rdi + 0x18], r12
je 0x14002243f
test ebx, ebx
js 0x1400223dc
cmp ebx, dword [rbp + 0x3030]
jl 0x1400223f6
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011c2a8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, ebx
lea rcx, [rax + rax*8]
mov rax, qword [rbp + 0x3038]
lea rsi, [rax + rcx*8]
test ebx, ebx
js 0x140022414
cmp ebx, dword [rbp + 0x3030]
jl 0x14002242e
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011c2a8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp + 0x3038]
mov rdx, rsi
mov rcx, rbp
call qword [rax + rdi + 0x18]
mov eax, dword [rbp + 0x3030]
inc ebx
add rdi, 0x48
cmp ebx, eax
jl 0x1400223a0
mov rbx, qword [rsp + 0x90]
mov r13, r12
mov r14, r12
mov rcx, r15
cmp r15, rbx
jae 0x1400225fc
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0xa
je 0x140022785
cmp al, 0xd
je 0x140022785
mov rsi, rcx
cmp rcx, rbx
jae 0x1400224a3
nop dword [rax + rax]
movzx eax, byte [rsi]
cmp al, 0xa
je 0x1400224a3
cmp al, 0xd
je 0x1400224a3
inc rsi
cmp rsi, rbx
jb 0x140022490
mov byte [rsi], r12b
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x1400225ea
cmp al, 0x5b
jne 0x14002275e
cmp rsi, rcx
jbe 0x14002275e
cmp byte [rsi - 1], 0x5d
lea rbx, [rsi - 1]
jne 0x140022756
lea rdi, [rcx + 1]
mov byte [rbx], r12b
mov r8, rbx
mov rcx, rdi
sub r8, rdi
mov edx, 0x5d
call sub.VCRUNTIME140.dll_memchr
mov r15, rax
test rax, rax
je 0x1400225e2
lea rcx, [rax + 1]
mov edx, 0x5b
sub rbx, rcx
mov r8, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400225e2
mov r13, qword [0x140157940]
lea rdx, [rdi + 1]
inc rax
mov byte [r15], r12b
movzx r8d, byte [rdi]
mov ebx, 0xffffffff
mov qword [rsp + 0x20], rax
test r8b, r8b
je 0x14002257d
mov ebp, ebx
nop dword [rax]
cmp r8b, 0x23
jne 0x140022552
cmp byte [rdx], r8b
jne 0x140022552
cmp byte [rdx + 1], r8b
cmove ebx, ebp
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
lea rax, [0x14011c520]
inc rdx
xor ebx, dword [rax + rcx*4]
test r8b, r8b
jne 0x140022540
mov rbp, qword [rsp + 0x98]
mov eax, dword [r13 + 0x3030]
not ebx
mov edi, r12d
mov r15, r12
test eax, eax
jle 0x1400225dc
mov r14, r12
test r15, r15
js 0x14002259c
cmp edi, eax
jl 0x1400225b6
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011c2a8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r13 + 0x3038]
cmp dword [rax + r14 + 8], ebx
je 0x1400226fd
mov eax, dword [r13 + 0x3030]
inc edi
inc r15
add r14, 0x48
cmp edi, eax
jl 0x140022593
mov r14, r12
mov r13, r12
mov rbx, qword [rsp + 0x90]
lea rcx, [rsi + 1]
cmp rcx, rbx
jb 0x140022470
mov r15, qword [rsp + 0x28]
mov r8, qword [rsp + 0x88]
mov rcx, r15
mov rdx, qword [rsp + 0x80]
mov byte [rbp + 0x3019], 1
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbp + 0x3030]
test eax, eax
jle 0x1400226ec
mov rbx, r12
nop dword [rax]
test r12d, r12d
js 0x14002263a
cmp r12d, eax
jl 0x140022654
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011c2a8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp + 0x3038]
cmp qword [rax + rbx + 0x30], 0
je 0x1400226d6
test r12d, r12d
js 0x140022671
cmp r12d, dword [rbp + 0x3030]
jl 0x14002268b
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011c2a8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, r12d
lea rcx, [rax + rax*8]
mov rax, qword [rbp + 0x3038]
lea rdi, [rax + rcx*8]
test r12d, r12d
js 0x1400226ab
cmp r12d, dword [rbp + 0x3030]
jl 0x1400226c5
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011c2a8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp + 0x3038]
mov rdx, rdi
mov rcx, rbp
call qword [rax + rbx + 0x30]
mov eax, dword [rbp + 0x3030]
inc r12d
add rbx, 0x48
cmp r12d, eax
jl 0x140022630
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test edi, edi
js 0x14002270a
cmp edi, dword [r13 + 0x3030]
jl 0x140022724
mov r8d, 0x57e
lea rdx, str.E:ReposSimHapticlibsimguiimgui.h
lea rcx, [0x14011c2a8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, edi
lea rcx, [rax + rax*8]
mov rax, qword [r13 + 0x3038]
lea r14, [rax + rcx*8]
test r14, r14
je 0x1400225df
mov r8, qword [rsp + 0x20]
mov rdx, r14
mov rcx, rbp
call qword [r14 + 0x20]
mov r13, rax
jmp 0x1400225e2
mov rbx, qword [rsp + 0x90]
test r14, r14
je 0x1400225ea
test r13, r13
je 0x1400225ea
mov r9, rcx
mov r8, r13
mov rcx, rbp
mov rdx, r14
call qword [r14 + 0x28]
jmp 0x1400225ea
inc rcx
jmp 0x140022470