Function at 0x14000163c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r9, qword [0x140298668]
xor ebx, ebx
mov edi, edx
mov r10d, ecx
mov r13d, 0x7f76d
mov r15d, 0x9f49bac6
mov r14d, 0xfeedbef3
mov r12d, 1
test r9, r9
je 0x14000176c
movzx ecx, byte [rax + 0x13]
mov r8d, r15d
movzx eax, byte [rax + 0x12]
shl ecx, 8
add ecx, eax
movzx edx, dil
movzx eax, byte [rsp + 0x69]
add edx, 0x112410d
shl ecx, 8
add ecx, eax
shl ecx, 8
add edx, ecx
mov ecx, r14d
xor edx, r13d
sub r8d, edx
mov eax, edx
shl eax, 8
xor r8d, eax
sub ecx, r8d
mov eax, r8d
sub ecx, edx
shr eax, 0xd
xor ecx, eax
sub edx, r8d
sub edx, ecx
mov eax, ecx
shr eax, 0xc
xor edx, eax
sub r8d, edx
mov eax, edx
sub r8d, ecx
shl eax, 0x10
xor r8d, eax
sub ecx, r8d
mov eax, r8d
sub ecx, edx
shr eax, 5
xor ecx, eax
sub edx, r8d
sub edx, ecx
mov eax, ecx
shr eax, 3
xor edx, eax
sub r8d, edx
mov eax, edx
sub r8d, ecx
shl eax, 0xa
xor r8d, eax
sub ecx, r8d
shr r8d, 0xf
sub ecx, edx
xor ecx, r8d
mov r8, qword [r9 + 0x10]
mov r11d, ecx
mov ecx, dword [r8 + 8]
mov rax, qword [r8]
sub ecx, r12d
and rcx, r11
add rcx, rcx
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x14000176c
sub rdx, qword [r8 + 0x20]
je 0x14000176c
cmp dword [rdx + 0x44], r11d
jne 0x140001752
cmp dword [rdx + 0x40], 4
jne 0x140001752
mov rax, qword [rdx + 0x38]
cmp dword [rax], edi
je 0x140001761
mov rdx, qword [rdx + 0x30]
test rdx, rdx
je 0x14000176c
sub rdx, qword [r8 + 0x20]
jne 0x14000173e
test rdx, rdx
je 0x14000176c
mov rax, qword [rdx + 8]
jmp 0x1400017bc
mov ecx, r10d
call fcn.140001090
mov rdx, rax
movzx r8d, bx
cmp dword [rax + 0x18], ebx
jbe 0x1400017ba
mov r11, qword [rax + 0x20]
movzx r10d, r8w
mov eax, ebx
mov ecx, dword [r11 + r10*4]
add rcx, qword [rdx + 0x10]
jmp 0x1400017a0
imul eax, eax, 0x1003f
add rcx, r12
add eax, r9d
movzx r9d, byte [rcx]
test r9d, r9d
jne 0x140001794
cmp edi, eax
je 0x1400017d1
add r8w, r12w
movzx eax, r8w
cmp eax, dword [rdx + 0x18]
jb 0x140001784
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rdx + 0x30]
movzx ecx, word [rax + r10*2]
mov rax, qword [rdx + 0x28]
mov ebp, dword [rax + rcx*4]
mov ecx, 0x48
add rbp, qword [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140001b3b
mov qword [rax + 8], rbp
mov dword [rax], edi
lea rdi, [rsi + 0x10]
movzx edx, byte [rax + 3]
movzx ecx, byte [rax + 2]
movzx eax, byte [rax + 1]
shl edx, 8
add edx, ecx
movzx ecx, byte [rsi]
add ecx, 0x112410d
shl edx, 8
add edx, eax
shl edx, 8
add ecx, edx
mov rdx, qword [0x140298668]
xor ecx, r13d
or r13, 0xffffffffffffffff
sub r15d, ecx
mov eax, ecx
shl eax, 8
xor r15d, eax
sub r14d, r15d
mov eax, r15d
sub r14d, ecx
shr eax, 0xd
xor r14d, eax
sub ecx, r15d
sub ecx, r14d
mov eax, r14d
shr eax, 0xc
xor ecx, eax
sub r15d, ecx
mov eax, ecx
sub r15d, r14d
shl eax, 0x10
xor r15d, eax
sub r14d, r15d
mov eax, r15d
sub r14d, ecx
shr eax, 5
xor r14d, eax
sub ecx, r15d
sub ecx, r14d
mov eax, r14d
shr eax, 3
xor ecx, eax
sub r15d, ecx
mov eax, ecx
sub r15d, r14d
shl eax, 0xa
xor r15d, eax
sub r14d, r15d
shr r15d, 0xf
sub r14d, ecx
xor r14d, r15d
mov dword [rsi + 0x44], r14d
mov qword [rsi + 0x38], rsi
mov dword [rsi + 0x40], 4
test rdx, rdx
jne 0x140001956
mov qword [rsi + 0x20], rbx
lea r15d, [r13 + 0x41]
mov ecx, r15d
mov qword [rsi + 0x18], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi], rax
test rax, rax
je 0x140001a06
mov r8d, r15d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rdi]
mov r15d, 0x200
mov ecx, r15d
mov qword [rax + 0x18], rdi
mov rax, qword [rdi]
mov dword [rax + 8], 0x20
mov rax, qword [rdi]
mov dword [rax + 0xc], 5
mov rax, qword [rdi]
mov qword [rax + 0x20], 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rdi]
mov qword [rcx], rax
mov rax, qword [rdi]
mov dword [rax + 0x38], 0xa0111fe1
mov rax, qword [rdi]
cmp qword [rax], rbx
je 0x140001a06
mov rcx, qword [rax]
mov r8d, r15d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rdx, rsi
mov qword [0x140298668], rdx
jmp 0x140001985
mov rax, qword [rdx + 0x10]
mov qword [rdi], rax
mov qword [rsi + 0x20], rbx
mov rax, qword [rdx + 0x10]
mov rcx, qword [rax + 0x18]
sub rcx, qword [rax + 0x20]
mov qword [rsi + 0x18], rcx
mov rax, qword [rdx + 0x10]
mov rcx, qword [rax + 0x18]
mov qword [rcx + 0x10], rsi
mov rax, qword [rdx + 0x10]
mov qword [rax + 0x18], rdi
mov rax, qword [rdx + 0x10]
add dword [rax + 0x10], r12d
mov rcx, qword [rdx + 0x10]
mov eax, r14d
mov edx, dword [rcx + 8]
sub edx, r12d
and rdx, rax
shl rdx, 4
add rdx, qword [rcx]
mov rax, qword [rdx]
add dword [rdx + 8], r12d
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x28], rbx
mov rax, qword [rdx]
test rax, rax
je 0x1400019bf
mov qword [rax + 0x18], rdi
mov eax, dword [rdx + 0xc]
add eax, r12d
mov qword [rdx], rdi
lea eax, [rax + rax*4]
add eax, eax
cmp dword [rdx + 8], eax
jb 0x140001b3b
mov rax, qword [rdi]
cmp dword [rax + 0x34], ebx
jne 0x140001b3b
mov edx, dword [rax + 8]
mov eax, 2
shl rdx, 4
mul rdx
cmovo rax, r13
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x140001a10
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [rdi]
xor edx, edx
mov rcx, rsi
mov r8d, dword [rax + 8]
shl r8, 5
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rdi]
mov eax, dword [r9 + 8]
mov ecx, dword [r9 + 0xc]
mov r8d, dword [r9 + 0x10]
add ecx, r12d
shr r8d, cl
lea eax, [rax*2 - 1]
test dword [r9 + 0x10], eax
mov eax, ebx
setne al
add r8d, eax
mov dword [r9 + 0x28], r8d
mov r9d, ebx
mov rax, qword [rdi]
mov dword [rax + 0x2c], ebx
mov rax, qword [rdi]
cmp dword [rax + 8], ebx
jbe 0x140001af7
mov rax, qword [rax]
mov ecx, r9d
add rcx, rcx
mov r8, qword [rax + rcx*8]
test r8, r8
je 0x140001ae7
mov rax, qword [rdi]
mov r11, qword [r8 + 0x20]
mov ecx, dword [rax + 8]
mov eax, dword [r8 + 0x34]
lea edx, [rcx*2 - 1]
and rdx, rax
shl rdx, 4
add rdx, rsi
mov eax, dword [rdx + 8]
inc eax
mov dword [rdx + 8], eax
mov rcx, qword [rdi]
cmp eax, dword [rcx + 0x28]
jbe 0x140001ac5
add dword [rcx + 0x2c], r12d
mov rax, qword [rdi]
mov r10d, dword [rdx + 0xc]
mov ecx, r10d
imul ecx, dword [rax + 0x28]
cmp dword [rdx + 8], ecx
jbe 0x140001ac5
lea eax, [r10 + 1]
mov dword [rdx + 0xc], eax
mov qword [r8 + 0x18], rbx
mov rax, qword [rdx]
mov qword [r8 + 0x20], rax
mov rax, qword [rdx]
test rax, rax
je 0x140001adc
mov qword [rax + 0x18], r8
mov qword [rdx], r8
mov r8, r11
test r11, r11
jne 0x140001a78
mov rax, qword [rdi]
add r9d, r12d
cmp r9d, dword [rax + 8]
jb 0x140001a66
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi]
mov eax, dword [rcx + 8]
add eax, eax
mov dword [rcx + 8], eax
mov rax, qword [rdi]
add dword [rax + 0xc], r12d
mov rax, qword [rdi]
mov qword [rax], rsi
mov rcx, qword [rdi]
mov eax, dword [rcx + 0x10]
shr eax, 1
cmp dword [rcx + 0x2c], eax
jbe 0x140001b2b
mov ebx, dword [rcx + 0x30]
add ebx, r12d
mov dword [rcx + 0x30], ebx
mov rcx, qword [rdi]
cmp dword [rcx + 0x30], r12d
jbe 0x140001b3b
mov dword [rcx + 0x34], r12d
mov rax, rbp
jmp 0x1400017bc