Function at 0x18001fa40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rdx]
xor r15d, r15d
mov edi, 0xffffffff
mov qword [rcx], r15
mov rsi, r8
mov dword [rcx + 8], r8d
mov rbx, rdx
mov dword [rcx + 0xc], r9d
mov r13, rcx
mov qword [rsp + 0x88], rdi
mov r12d, r15d
mov dword [rsp + 0x80], 0xffffffff
mov qword [rsp + 0x20], rdi
cmp qword [rax + 0x10], r15
jbe 0x18001fceb
mov r15, qword [rsp + 0x98]
jmp 0x18001fab8
mov rsi, qword [rsp + 0x90]
mov rdx, r12
mov rcx, rax
call fcn.180020f30
mov rcx, qword [rbx + 8]
mov r14, r12
dec rcx
movsxd rdx, dword [rax]
add rdx, qword [rsp + 0x90]
cmp rdx, rcx
ja 0x18001fb9b
mov ebp, dword [rax + 4]
test esi, esi
jle 0x18001fb36
nop dword [rax + rax]
mov rcx, qword [rbx]
mov rdx, r14
mov edi, ebp
call fcn.180020f30
mov rcx, qword [rbx + 0x10]
mov ebp, dword [rax + 4]
cmp ebp, edi
cmovle ebp, edi
dec rcx
movsxd rdx, ebp
add rdx, qword [rsp + 0x98]
cmp rdx, rcx
ja 0x18001fb8b
sub esi, dword [rax + 8]
inc r14
test esi, esi
jg 0x18001faf0
mov rdi, qword [rsp + 0x88]
mov r15, qword [rsp + 0x98]
test ebp, ebp
js 0x18001fb9b
mov rcx, qword [rbx]
mov rdx, r12
call fcn.180020f30
movsxd rdx, ebp
add rdx, r15
cmp rdx, rdi
jb 0x18001fb61
jne 0x18001fb9b
movsxd rcx, dword [rax + 8]
test ecx, ecx
jle 0x18001fb9b
cmp rcx, qword [rsp + 0x20]
jae 0x18001fb9b
movsxd rcx, dword [rax + 8]
mov rdi, rdx
mov eax, dword [rax]
mov qword [rsp + 0x88], rdx
mov edx, r12d
mov dword [rsp + 0x80], edx
mov qword [rsp + 0x20], rcx
mov dword [r13], eax
mov dword [r13 + 4], ebp
jmp 0x18001fba2
mov rdi, qword [rsp + 0x88]
mov r15, qword [rsp + 0x98]
mov edx, dword [rsp + 0x80]
mov rax, qword [rbx]
inc r12
cmp r12, qword [rax + 0x10]
jb 0x18001fab0
mov r15d, 0
cmp edx, 0xffffffff
je 0x18001fceb
lea ecx, [r15 + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x18001fd0f
mov ecx, dword [r13 + 4]
mov r8, rsi
mov eax, dword [r13]
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
add ecx, ebp
mov dword [rsi], eax
movsxd rax, dword [rsp + 0x80]
mov dword [rsi + 4], ecx
mov rdx, rax
mov dword [rsi + 8], r14d
mov rdi, rax
mov rcx, qword [rbx]
call fcn.180020f40
mov rcx, rsi
call fcn.18001f9b6
mov rax, qword [rbx]
lea rsi, [rdi + 1]
cmp rsi, qword [rax + 0x10]
jae 0x18001fc88
nop word [rax + rax]
mov rdx, rsi
mov rcx, rax
call fcn.180020f30
mov rcx, qword [rbx]
lea rdx, [rsi - 1]
mov rdi, rax
call fcn.180020f30
mov r8d, dword [rax + 8]
mov edx, dword [rax]
mov eax, dword [rdi]
lea ecx, [rdx + r8]
cmp eax, ecx
jge 0x18001fc80
sub edx, eax
add edx, r8d
sub dword [rdi + 8], edx
add eax, edx
mov dword [rdi], eax
cmp dword [rdi + 8], r15d
jg 0x18001fc80
mov rcx, qword [rbx]
mov rdx, rsi
call fcn.180020ed0
mov rax, qword [rbx]
cmp rsi, qword [rax + 0x10]
jb 0x18001fc30
mov rbp, qword [rsp + 0x98]
mov rcx, qword [rbx]
cmp qword [rcx + 0x10], 1
je 0x18001fce1
mov edi, 1
mov rdx, r15
call fcn.180020f30
mov rcx, qword [rbx]
mov rdx, rdi
mov rsi, rax
call fcn.180020f30
mov ecx, dword [rax + 4]
cmp dword [rsi + 4], ecx
jne 0x18001fccc
mov ecx, dword [rax + 8]
mov rdx, rdi
add dword [rsi + 8], ecx
mov rcx, qword [rbx]
call fcn.180020ed0
dec r15
dec rdi
mov rcx, qword [rbx]
inc r15
inc rdi
mov rax, qword [rcx + 0x10]
dec rax
cmp r15, rax
jb 0x18001fc97
imul r14, rbp
add qword [rbx + 0x20], r14
jmp 0x18001fcfb
mov qword [r13], 0xffffffffffffffff
mov qword [r13 + 8], 0
mov rax, r13
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
lea rdx, str.line__d:_No_more_memory_for_allocating_data_n
mov r8d, 0xda
call fcn.18001f9f0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3