Function at 0x1400050f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [0x14001cd18]
mov rdi, rcx
test rax, rax
je 0x140005117
mov edx, dword [0x14001cb0c]
mov dword [rcx], edx
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x58], rbx
mov edx, 0x10
mov qword [rsp + 0x60], rbp
mov ecx, edx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov dword [0x14001cb08], 0x10
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [0x14001cd18], rax
test rax, rax
je 0x1400053a9
call fcn.1400071f0
mov rbp, qword [0x14001e6d8]
mov rbx, rax
test rbp, rbp
jne 0x14000518a
mov rcx, qword [rax + 0x30]
lea edx, [rbp + 1]
call fcn.140004000
mov rbp, rax
mov qword [0x14001e6d8], rax
cmp qword [0x14001e6c8], 0
jne 0x1400051c3
mov rcx, qword [rbx + 0x50]
call fcn.140002740
test rax, rax
je 0x1400053d4
xor edx, edx
mov rcx, rax
call fcn.140004000
mov rdx, qword [rbp + 0x10]
mov rcx, rax
mov qword [0x14001e6c8], rax
call fcn.140003de0
mov r12, qword [0x14001cd18]
xor esi, esi
mov r15d, esi
mov r14d, dword [0x14001cb0c]
lea r8, [rsi - 1]
cmp dword [rbp + 0x50], esi
jbe 0x1400052e1
mov r13d, dword [0x14001cb08]
nop word [rax + rax]
mov rax, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x18]
mov ecx, r15d
mov r9d, dword [rax + rcx*4]
cmp dword [rbp], esi
je 0x14000520a
lea rdi, [rbx + r9]
jmp 0x14000524c
mov rax, qword [rbp + 0x20]
mov r8d, esi
mov r11, qword [rbp + 0x38]
movzx r10d, word [rax + 6]
test r10d, r10d
je 0x140005242
lea rax, [r11 + 8]
mov edx, dword [rax + 4]
cmp edx, r9d
ja 0x140005236
add edx, dword [rax]
cmp r9d, edx
jb 0x140005380
inc r8d
add rax, 0x28
cmp r8d, r10d
jb 0x140005223
mov rdi, rsi
mov r8, 0xffffffffffffffff
mov eax, 0x775a
cmp word [rdi], ax
jne 0x1400052c8
cmp r14d, r13d
jne 0x1400052a4
lea eax, [r13*2]
mov rcx, r12
mov dword [0x14001cb08], eax
mov edx, eax
mov eax, 0x10
mul rdx
cmovo rax, r8
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r12, rax
test rax, rax
je 0x1400053a9
mov r14d, dword [0x14001cb0c]
mov r13d, dword [0x14001cb08]
mov qword [0x14001cd18], rax
mov ebx, r14d
mov rdx, rdi
add rbx, rbx
mov rcx, rbp
mov qword [r12 + rbx*8], rdi
call fcn.140004140
inc r14d
mov dword [r12 + rbx*8 + 8], eax
mov dword [0x14001cb0c], r14d
inc r15d
mov r8, 0xffffffffffffffff
cmp r15d, dword [rbp + 0x50]
jb 0x1400051f0
mov rdi, qword [rsp + 0x50]
mov ecx, r14d
mov eax, 0x10
mul rcx
mov rcx, r12
cmovo rax, r8
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1400053a9
mov ecx, dword [0x14001cb0c]
test ecx, ecx
je 0x1400053a9
mov dword [0x14001cb08], ecx
lea r9, [0x1400050a0]
mov edx, ecx
mov qword [0x14001cd18], rax
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov edx, dword [0x14001cb0c]
mov rcx, qword [0x14001cd18]
test edx, edx
je 0x14000535c
lea rax, [rcx + 0xc]
nop dword [rax]
mov dword [rax], esi
lea rax, [rax + 0x10]
inc esi
cmp esi, edx
jb 0x140005350
lea r9, [0x1400050c0]
mov r8d, 0x10
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov eax, dword [0x14001cb0c]
mov dword [rdi], eax
mov rax, qword [0x14001cd18]
jmp 0x1400053ab
mov eax, r8d
lea rcx, [rax + rax*4]
lea rdx, [r11 + rcx*8]
test rdx, rdx
je 0x140005242
sub r9d, dword [rdx + 0xc]
mov edi, dword [rdx + 0x14]
mov eax, r9d
add rax, rbx
add rdi, rax
jmp 0x140005245
xor eax, eax
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3