Function at 0x140005250
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 0x140005277
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 0x140005509
call fcn.1400070e0
mov rbp, qword [0x14001e6d8]
mov rbx, rax
test rbp, rbp
jne 0x1400052ea
mov rcx, qword [rax + 0x30]
lea edx, [rbp + 1]
call fcn.140004100
mov rbp, rax
mov qword [0x14001e6d8], rax
cmp qword [0x14001e6c8], 0
jne 0x140005323
mov rcx, qword [rbx + 0x50]
call fcn.140002920
test rax, rax
je 0x140005534
xor edx, edx
mov rcx, rax
call fcn.140004100
mov rdx, qword [rbp + 0x10]
mov rcx, rax
mov qword [0x14001e6c8], rax
call fcn.140003ee0
mov r12, qword [0x14001cd18]
xor esi, esi
mov r15d, esi
mov r14d, dword [0x14001cb0c]
lea r8, [rsi - 1]
cmp dword [rbp + 0x50], esi
jbe 0x140005441
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 0x14000536a
lea rdi, [rbx + r9]
jmp 0x1400053ac
mov rax, qword [rbp + 0x20]
mov r8d, esi
mov r11, qword [rbp + 0x38]
movzx r10d, word [rax + 6]
test r10d, r10d
je 0x1400053a2
lea rax, [r11 + 8]
mov edx, dword [rax + 4]
cmp edx, r9d
ja 0x140005396
add edx, dword [rax]
cmp r9d, edx
jb 0x1400054e0
inc r8d
add rax, 0x28
cmp r8d, r10d
jb 0x140005383
mov rdi, rsi
mov r8, 0xffffffffffffffff
mov eax, 0x775a
cmp word [rdi], ax
jne 0x140005428
cmp r14d, r13d
jne 0x140005404
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 0x140005509
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.140004240
inc r14d
mov dword [r12 + rbx*8 + 8], eax
mov dword [0x14001cb0c], r14d
inc r15d
mov r8, 0xffffffffffffffff
cmp r15d, dword [rbp + 0x50]
jb 0x140005350
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 0x140005509
mov ecx, dword [0x14001cb0c]
test ecx, ecx
je 0x140005509
mov dword [0x14001cb08], ecx
lea r9, [0x140005200]
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 0x1400054bc
lea rax, [rcx + 0xc]
nop dword [rax]
mov dword [rax], esi
lea rax, [rax + 0x10]
inc esi
cmp esi, edx
jb 0x1400054b0
lea r9, [0x140005220]
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 0x14000550b
mov eax, r8d
lea rcx, [rax + rax*4]
lea rdx, [r11 + rcx*8]
test rdx, rdx
je 0x1400053a2
sub r9d, dword [rdx + 0xc]
mov edi, dword [rdx + 0x14]
mov eax, r9d
add rax, rbx
add rdi, rax
jmp 0x1400053a5
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