Function at 0x140001100
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x40
xor eax, eax
mov r9, rcx
movzx ecx, byte [rdx]
mov edx, 1
mov dword [0x140006044], eax
and ecx, 7
mov dword [0x140006048], eax
inc ecx
mov dword [0x140006064], eax
mov dword [0x140006068], eax
mov dword [0x140006060], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [0x140006094], eax
mov rax, qword [r9 + 0x328]
mov qword [0x14000f6c0], rax
movzx eax, byte [r9 + 8]
mov r10d, dword [r9]
and al, 0x40
mov r8d, dword [r9 + 4]
mov byte [0x14000f6d0], al
mov ecx, dword [r9 + 0x10]
shl edx, cl
inc ecx
mov dword [0x140006058], r10d
mov dword [0x140006050], ecx
mov dword [0x14000604c], ecx
lea eax, [rdx + 1]
mov dword [0x14000605c], r8d
mov dword [0x140006078], eax
lea eax, [rdx + 2]
mov dword [0x140006088], eax
mov dword [0x14000608c], eax
mov eax, 1
shl eax, cl
mov ecx, r8d
mov dword [0x140006070], eax
dec eax
imul rcx, r10
mov dword [0x140006074], edx
mov dword [0x140006098], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x14000f6c8], rax
mov rdi, rax
test rax, rax
jne 0x1400011ee
lea rcx, str.Out_of_memory
call fcn.140001580
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov eax, dword [0x140006058]
mov dword [0x140006054], eax
mov qword [rsp + 0x50], rbx
call fcn.140001500
cmp eax, dword [0x140006078]
mov ebx, eax
mov dword [0x14000606c], eax
je 0x1400014e3
mov r10d, dword [0x140006094]
lea r9, [0x140000000]
mov r11d, dword [0x14000604c]
mov edi, dword [0x140006068]
mov r8d, dword [0x140006080]
mov qword [rsp + 0x58], rbp
mov ebp, dword [0x140006090]
mov qword [rsp + 0x60], rsi
mov esi, dword [0x140006060]
mov qword [rsp + 0x38], r12
mov r12d, dword [0x140006070]
mov qword [rsp + 0x30], r13
mov r13d, dword [0x14000608c]
mov qword [rsp + 0x28], r14
mov r14d, dword [0x140006098]
mov qword [rsp + 0x20], r15
mov r15d, dword [0x140006050]
cmp ebx, dword [0x140006074]
jne 0x140001335
mov r13d, dword [0x140006088]
mov ecx, r11d
mov r12d, 1
mov dword [0x140006050], r11d
shl r12d, cl
mov edx, esi
and edx, 7
mov dword [0x140006070], r12d
mov dword [0x14000608c], r13d
mov r15d, r11d
mov eax, esi
lea r14d, [r12 - 1]
mov dword [0x140006098], r14d
test esi, esi
jns 0x1400012d4
lea eax, [rsi + 7]
sub edx, 8
sar eax, 3
movsxd r9, eax
add r9, qword [0x14000f6c0]
movzx r8d, byte [r9 + 1]
movzx eax, byte [r9]
shl r8d, 8
add r8d, eax
cmp r11d, 8
jb 0x140001302
movzx eax, byte [r9 + 2]
shl eax, 0x10
add r8d, eax
mov ecx, edx
add esi, r11d
sar r8d, cl
and r8d, r14d
mov ebp, r8d
mov dword [0x140006080], r8d
and ebp, r10d
mov dword [0x14000607c], r8d
movzx ecx, bpl
mov dword [0x140006090], ebp
call section..text
jmp 0x140001445
mov dword [0x140006084], ebx
mov ecx, ebx
mov dword [0x14000607c], ebx
cmp ebx, r13d
jl 0x14000135e
movsxd rax, edi
mov ecx, r8d
mov dword [0x14000607c], ecx
inc edi
mov dword [r9 + rax*4 + 0x66a0], ebp
cmp ecx, r10d
jle 0x1400013a3
nop dword [rax]
nop word [rax + rax]
movsxd rax, ecx
movsxd rcx, edi
inc edi
lea rdx, [rax*4]
mov eax, dword [rdx + r9 + 0x76c0]
mov dword [r9 + rcx*4 + 0x66a0], eax
mov ecx, dword [rdx + r9 + 0xb6c0]
cmp ecx, r10d
jg 0x140001370
mov dword [0x14000607c], ecx
mov ebp, ecx
movsxd rax, edi
and ebp, r10d
mov dword [0x140006090], ebp
mov dword [r9 + rax*4 + 0x66a0], ebp
test edi, edi
js 0x1400013e2
nop dword [rax]
movzx ecx, byte [r9 + rax*4 + 0x66a0]
call section..text
sub rax, 1
lea r9, [0x140000000]
jns 0x1400013c0
lea r9, [0x140000000]
movsxd rax, r13d
xor edi, edi
inc r13d
mov dword [0x140006068], edi
mov dword [0x140006080], ebx
mov dword [0x14000608c], r13d
mov dword [r9 + rax*4 + 0xb6c0], r8d
mov r8d, ebx
mov dword [r9 + rax*4 + 0x76c0], ebp
cmp r13d, r12d
jl 0x140001445
cmp r15d, 0xc
jae 0x140001445
inc r15d
add r12d, r12d
mov ecx, r15d
mov dword [0x140006050], r15d
mov r14d, 1
mov dword [0x140006070], r12d
shl r14d, cl
dec r14d
mov dword [0x140006098], r14d
mov r9d, esi
mov eax, esi
and r9d, 7
test esi, esi
jns 0x140001459
lea eax, [rsi + 7]
sub r9d, 8
sar eax, 3
movsxd r10, eax
add r10, qword [0x14000f6c0]
movzx edx, byte [r10 + 1]
movzx eax, byte [r10]
shl edx, 8
add edx, eax
cmp r15d, 8
jb 0x140001484
movzx eax, byte [r10 + 2]
shl eax, 0x10
add edx, eax
mov r10d, dword [0x140006094]
mov ecx, r9d
mov r11d, dword [0x14000604c]
lea r9, [0x140000000]
sar edx, cl
mov ebx, r14d
and ebx, edx
add esi, r15d
cmp ebx, dword [0x140006078]
jne 0x140001280
mov rdi, qword [0x14000f6c8]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x58]
mov dword [0x140006060], esi
mov rsi, qword [rsp + 0x60]
mov dword [0x14000606c], ebx
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x40
pop rdi
ret