Function at 0x140066814
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
mov rbx, rcx
mov r15, rdx
lea rcx, [rbp - 0x18]
call fcn.1400aba80
mov rax, qword [r15]
mov rcx, r15
mov rbx, qword [rbx + 0x20]
mov rax, qword [rax + 0x38]
call qword [case.0x1400cd70e.0]
and dword [rsp + 0x20], 0
lea r9, [0x14012cf68]
mov rcx, rax
lea r8, [0x14012d4f8]
xor edx, edx
mov rdi, rax
call fcn.1400cbdc8
test rax, rax
je 0x14006687e
mov rsi, qword [rdi + 0x40]
mov qword [rbp + 0x58], rsi
jmp 0x140066889
lea rax, [0x1400f48cb]
mov qword [rbp + 0x58], rax
mov rcx, qword [r15 + 8]
call fcn.140066514
mov rdi, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x40]
mov rcx, rdi
call qword [case.0x1400cd70e.0]
test eax, eax
je 0x1400668b3
movzx r12d, word [rdi + 0xc8]
jmp 0x1400668be
mov rcx, rdi
call fcn.140093658
mov r12d, eax
mov rcx, rbx
mov dword [rbp + 0x48], r12d
call fcn.1400ca48c
xor esi, esi
xor r14d, r14d
test r12d, r12d
jle 0x140066a56
mov r13, qword [rbp - 0x10]
mov r15, qword [rbp + 0x58]
and dword [rbp - 0x18], 0
lea rdx, str._maxcount_
lea rcx, [rbp - 0x18]
mov byte [r13], 0
call fcn.1400abaf0
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.1400abaf0
lea rdx, [0x1400fb468]
lea rcx, [rbp - 0x18]
call fcn.1400abaf0
mov edx, r14d
lea rcx, [rbp - 0x18]
call fcn.1400abbe8
lea rdx, [0x140103f54]
lea rcx, [rbp - 0x18]
call fcn.1400abaf0
mov r13, qword [rbp - 0x10]
mov rcx, rbx
mov rdx, r13
call fcn.1400c9f64
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x28]
call qword [case.0x1400cd70e.0]
cmp eax, 0x16
je 0x14006697e
cmp eax, 0x17
je 0x140066975
cmp eax, 0x19
je 0x140066975
cmp eax, 0x27
je 0x14006696c
add eax, 0xffffffd7
cmp eax, 2
ja 0x140066985
mov rsi, qword [rdi + 0xa8]
jmp 0x140066985
mov rsi, qword [rdi + 0xf8]
jmp 0x140066985
mov rsi, qword [rdi + 0x108]
test rsi, rsi
je 0x1400669a2
mov rax, qword [rsi]
mov rdx, rbx
mov rcx, rsi
mov rax, qword [rax + 0xc0]
call qword [case.0x1400cd70e.0]
jmp 0x1400669f0
cmp byte [rbx], 2
je 0x140066a3a
cmp byte [rbx + 3], 0
jne 0x1400669f0
cmp byte [rbx + 4], 0
jne 0x1400669f0
cmp byte [rbx], 1
jne 0x1400669d3
mov rdx, qword [rbx + 0x10]
mov ecx, 0x30
call qword [sym.imp.msvcrt.dll_putc]
nop dword [rax + rax]
jmp 0x1400669f0
mov rax, qword [rbx + 0x18]
cmp rax, qword [rbx + 0x28]
jb 0x1400669e9
mov rcx, rbx
call fcn.1400ca274
mov rax, qword [rbx + 0x18]
mov byte [rax], 0x30
inc qword [rbx + 0x18]
cmp byte [rbx], 2
je 0x140066a3a
cmp byte [rbx + 3], 0
jne 0x140066a3a
cmp byte [rbx + 4], 0
jne 0x140066a3a
cmp byte [rbx], 1
jne 0x140066a1d
mov rdx, qword [rbx + 0x10]
mov ecx, 0x3b
call qword [sym.imp.msvcrt.dll_putc]
nop dword [rax + rax]
jmp 0x140066a3a
mov rax, qword [rbx + 0x18]
cmp rax, qword [rbx + 0x28]
jb 0x140066a33
mov rcx, rbx
call fcn.1400ca274
mov rax, qword [rbx + 0x18]
mov byte [rax], 0x3b
inc qword [rbx + 0x18]
mov rcx, rbx
call fcn.1400ca48c
mov rdi, qword [rdi + 8]
inc r14d
cmp r14d, r12d
jl 0x1400668e0
mov r15, qword [rbp + 0x50]
mov rcx, qword [r15 + 8]
call fcn.140066514
xor r13d, r13d
xor edi, edi
xor r14d, r14d
mov qword [rbp + 0x60], r13
mov rsi, rax
test r12d, r12d
jle 0x140066bed
mov r13, qword [rbp - 0x10]
mov r15, qword [rbp + 0x58]
and dword [rbp - 0x18], 0
lea rdx, str._offset_
lea rcx, [rbp - 0x18]
mov byte [r13], 0
call fcn.1400abaf0
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.1400abaf0
lea rdx, [0x1400fb468]
lea rcx, [rbp - 0x18]
call fcn.1400abaf0
mov edx, r14d
lea rcx, [rbp - 0x18]
call fcn.1400abbe8
lea rdx, [0x140103f54]
lea rcx, [rbp - 0x18]
call fcn.1400abaf0
mov r13, qword [rbp - 0x10]
mov rcx, rbx
mov rdx, r13
call fcn.1400c9f64
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [case.0x1400cd70e.0]
cmp eax, 0x19
je 0x140066b42
cmp eax, 0x28
je 0x140066b39
cmp eax, 0x29
je 0x140066b39
add eax, 0xffffffd6
cmp eax, 1
ja 0x140066b49
xor edi, edi
cmp byte [rbx], 2
je 0x140066bcd
cmp byte [rbx + 3], 0
jne 0x140066b83
cmp byte [rbx + 4], 0
jne 0x140066b83
cmp byte [rbx], 1
jne 0x140066b66
mov rdx, qword [rbx + 0x10]
mov ecx, 0x30
call qword [sym.imp.msvcrt.dll_putc]
nop dword [rax + rax]
jmp 0x140066b83
mov rdi, qword [rsi + 0x130]
jmp 0x140066b49
mov rdi, qword [rsi + 0x118]
test rdi, rdi
je 0x140066b08
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
mov rax, qword [rax + 0xc0]
call qword [case.0x1400cd70e.0]
jmp 0x140066b83
mov rax, qword [rbx + 0x18]
cmp rax, qword [rbx + 0x28]
jb 0x140066b7c
mov rcx, rbx
call fcn.1400ca274
mov rax, qword [rbx + 0x18]
mov byte [rax], 0x30
inc qword [rbx + 0x18]
cmp byte [rbx], 2
je 0x140066bcd
cmp byte [rbx + 3], 0
jne 0x140066bcd
cmp byte [rbx + 4], 0
jne 0x140066bcd
cmp byte [rbx], 1
jne 0x140066bb0
mov rdx, qword [rbx + 0x10]
mov ecx, 0x3b
call qword [sym.imp.msvcrt.dll_putc]
nop dword [rax + rax]
jmp 0x140066bcd
mov rax, qword [rbx + 0x18]
cmp rax, qword [rbx + 0x28]
jb 0x140066bc6
mov rcx, rbx
call fcn.1400ca274
mov rax, qword [rbx + 0x18]
mov byte [rax], 0x3b
inc qword [rbx + 0x18]
mov rcx, rbx
call fcn.1400ca48c
mov rsi, qword [rsi + 8]
inc r14d
cmp r14d, r12d
jl 0x140066a7f
mov r13, qword [rbp + 0x60]
mov r15, qword [rbp + 0x50]
mov rcx, qword [r15 + 8]
call fcn.140066514
xor r15d, r15d
mov rdi, rax
mov dword [rbp + 0x50], r15d
mov esi, r15d
test r12d, r12d
jle 0x140066e94
mov rax, qword [rbp - 0x10]
lea rdx, str._length_
lea rcx, [rbp - 0x18]
mov dword [rbp - 0x18], r15d
mov byte [rax], r15b
call fcn.1400abaf0
mov rdx, qword [rbp + 0x58]
lea rcx, [rbp - 0x18]
call fcn.1400abaf0
lea rdx, [0x1400fb468]
lea rcx, [rbp - 0x18]
call fcn.1400abaf0
mov edx, esi
lea rcx, [rbp - 0x18]
call fcn.1400abbe8
lea rdx, [0x140103f54]
lea rcx, [rbp - 0x18]
call fcn.1400abaf0
mov rdx, qword [rbp - 0x10]
mov rcx, rbx
call fcn.1400c9f64
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x28]
call qword [case.0x1400cd70e.0]
cmp eax, 0x19
je 0x140066cda
cmp eax, 0x28
je 0x140066cd1
cmp eax, 0x29
je 0x140066cd1
add eax, 0xffffffd6
cmp eax, 1
ja 0x140066ce1
mov r13, r15
cmp byte [rbx], 2
je 0x140066e7a
cmp byte [rbx + 3], r15b
jne 0x140066da4
cmp byte [rbx + 4], r15b
jne 0x140066da4
cmp byte [rbx], 1
jne 0x140066d02
mov rdx, qword [rbx + 0x10]
mov ecx, 0x30
call qword [sym.imp.msvcrt.dll_putc]
nop dword [rax + rax]
jmp 0x140066da4
mov r13, qword [rdi + 0x138]
jmp 0x140066ce1
mov r13, qword [rdi + 0x120]
test r13, r13
je 0x140066c95
mov rax, qword [r13]
mov rdx, rbx
mov rcx, r13
mov rax, qword [rax + 0xc0]
call qword [case.0x1400cd70e.0]
jmp 0x140066da4
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x18], rax
jb 0x140066d99
cmp byte [rbx], r15b
jne 0x140066d99
movsxd r15, dword [rbx + 0x10]
mov r14d, dword [rbx + 0x14]
mov rsi, qword [rbx + 0x20]
add r14d, r15d
movsxd r12, r14d
mov rcx, r12
mov dword [rbx + 0x10], r14d
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
je 0x140066ebe
add dword [0x140134854], r14d
lea rcx, [r12 + rax]
mov qword [rbx + 0x28], rcx
mov r8, r15
mov rcx, rax
mov qword [rbx + 0x20], rax
mov rdx, rsi
mov r14, r15
call sub.msvcrt.dll_memcpy
xor r15d, r15d
cmp byte [rbx], r15b
jne 0x140066d7e
mov rdx, qword [rbx + 0x20]
add rdx, r14
mov qword [rbx + 0x18], rdx
test rsi, rsi
je 0x140066d92
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov r12d, dword [rbp + 0x48]
mov esi, dword [rbp + 0x50]
mov rax, qword [rbx + 0x18]
mov byte [rax], 0x30
inc qword [rbx + 0x18]
cmp byte [rbx], 2
je 0x140066e7a
cmp byte [rbx + 3], r15b
jne 0x140066e7a
cmp byte [rbx + 4], r15b
jne 0x140066e7a
cmp byte [rbx], 1
jne 0x140066de0
mov rdx, qword [rbx + 0x10]
mov ecx, 0x3b
call qword [sym.imp.msvcrt.dll_putc]
nop dword [rax + rax]
jmp 0x140066e7a
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x18], rax
jb 0x140066e68
cmp byte [rbx], r15b
jne 0x140066e68
movsxd r15, dword [rbx + 0x10]
mov r14d, dword [rbx + 0x14]
mov rsi, qword [rbx + 0x20]
add r14d, r15d
movsxd r12, r14d
mov rcx, r12
mov dword [rbx + 0x10], r14d
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
je 0x140066ebe
add dword [0x140134854], r14d
lea rcx, [r12 + rax]
mov qword [rbx + 0x28], rcx
mov r8, r15
mov rcx, rax
mov qword [rbx + 0x20], rax
mov rdx, rsi
mov r14, r15
call sub.msvcrt.dll_memcpy
xor r15d, r15d
cmp byte [rbx], r15b
jne 0x140066e54
mov rdx, qword [rbx + 0x20]
add rdx, r14
mov qword [rbx + 0x18], rdx
test rsi, rsi
je 0x140066e68
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rax, qword [rbx + 0x18]
mov esi, dword [rbp + 0x50]
mov r12d, dword [rbp + 0x48]
mov byte [rax], 0x3b
inc qword [rbx + 0x18]
mov rcx, rbx
call fcn.1400ca48c
mov rdi, qword [rdi + 8]
inc esi
mov dword [rbp + 0x50], esi
cmp esi, r12d
jl 0x140066c0c
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x140066eac
mov rcx, rax
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ebx, 0x7d5
xor edx, edx
mov r8d, ebx
xor r9d, r9d
xor ecx, ecx
call fcn.1400c9744
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
nop dword [rax + rax]
int3