Function at 0x180030014
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1350]
mov eax, 0x1450
call fcn.180037620
sub rsp, rax
mov r9d, r8d
mov r11, rcx
mov r14d, 1
test r8d, r8d
jle 0x180030073
lea rcx, [rbp + 0x334]
mov edi, r9d
sub rcx, rdx
mov eax, dword [rdx]
test eax, eax
cmove eax, r14d
shl eax, 8
mov dword [rdx + rcx], eax
add rdx, 4
sub rdi, r14
jne 0x18003005c
movsxd r13, r9d
xor r8d, r8d
xor r10d, r10d
mov r12d, r9d
and dword [rsp + 0x20], r8d
and dword [rbp + 0x330], r8d
mov dword [rbp + 0xb40], 0xfffffffe
mov edx, r14d
cmp r9d, r14d
jl 0x1800302f9
lea rdi, [rbp + 0xb44]
mov rcx, r9
or rax, 0xffffffffffffffff
rep stosd dword [rdi], eax
add r8d, r14d
add r10, r14
movsxd rsi, edx
movsxd r11, r8d
mov dword [rsp + r10*4 + 0x20], edx
mov edi, r8d
mov rax, r11
sar rax, 1
movsxd rbx, dword [rsp + rax*4 + 0x20]
mov ecx, dword [rbp + rbx*4 + 0x330]
cmp dword [rbp + rsi*4 + 0x330], ecx
jge 0x180030105
mov ecx, dword [rbp + rsi*4 + 0x330]
sar edi, 1
mov dword [rsp + r11*4 + 0x20], ebx
movsxd r11, edi
mov rax, r11
sar rax, 1
movsxd rbx, dword [rsp + rax*4 + 0x20]
cmp ecx, dword [rbp + rbx*4 + 0x330]
jl 0x1800300e7
movsxd rax, edi
mov dword [rsp + rax*4 + 0x20], edx
add edx, r14d
cmp edx, r9d
jle 0x1800300b1
cmp r8d, 0x104
jge 0x1800303a5
cmp r8d, r14d
jle 0x1800302f2
mov rsi, r13
lea r10, [rsp + r10*4 + 0x20]
shl rsi, 2
mov qword [rbp + 0x13a8], rsi
movsxd r11, dword [r10]
movsxd r15, dword [rsp + 0x24]
sub r8d, r14d
mov edi, 2
mov ebx, r14d
mov dword [rsp + 0x24], r11d
cmp edi, r8d
jg 0x1800301ac
mov esi, dword [rbp + r11*4 + 0x330]
jge 0x180030184
movsxd rax, edi
movsxd rdx, dword [rsp + rax*4 + 0x24]
movsxd rax, dword [rsp + rax*4 + 0x20]
mov ecx, dword [rbp + rax*4 + 0x330]
cmp dword [rbp + rdx*4 + 0x330], ecx
jge 0x180030184
add edi, r14d
movsxd rax, edi
movsxd rcx, dword [rsp + rax*4 + 0x20]
cmp esi, dword [rbp + rcx*4 + 0x330]
jl 0x1800301a5
movsxd rax, ebx
mov ebx, edi
add edi, edi
mov dword [rsp + rax*4 + 0x20], ecx
cmp edi, r8d
jle 0x180030162
mov rsi, qword [rbp + 0x13a8]
movsxd rax, ebx
mov edi, 2
dec r8d
mov dword [rsp + rax*4 + 0x20], r11d
movsxd rbx, dword [r10 - 4]
movsxd r14, dword [rsp + 0x24]
mov dword [rsp + 0x24], ebx
lea r11d, [rdi - 1]
cmp edi, r8d
jg 0x180030223
mov esi, dword [rbp + rbx*4 + 0x330]
jge 0x1800301fa
movsxd rax, edi
movsxd rdx, dword [rsp + rax*4 + 0x24]
movsxd rax, dword [rsp + rax*4 + 0x20]
mov ecx, dword [rbp + rax*4 + 0x330]
cmp dword [rbp + rdx*4 + 0x330], ecx
jge 0x1800301fa
inc edi
movsxd rax, edi
movsxd rcx, dword [rsp + rax*4 + 0x20]
cmp esi, dword [rbp + rcx*4 + 0x330]
jl 0x18003021c
movsxd rax, r11d
mov r11d, edi
add edi, edi
mov dword [rsp + rax*4 + 0x20], ecx
cmp edi, r8d
jle 0x1800301d9
mov rsi, qword [rbp + 0x13a8]
mov edi, dword [rbp + r15*4 + 0x330]
mov edx, dword [rbp + r14*4 + 0x330]
inc r12d
add rsi, 4
movsxd rax, r11d
movzx ecx, dl
mov dword [rsp + rax*4 + 0x20], ebx
movzx eax, dil
mov dword [rbp + r14*4 + 0xb40], r12d
cmp eax, ecx
mov dword [rbp + r15*4 + 0xb40], r12d
mov r15d, 0xffffff00
cmovg ecx, eax
or dword [rbp + rsi + 0xb40], 0xffffffff
and edi, r15d
and edx, r15d
lea eax, [rcx + 1]
add r10, 0xfffffffffffffffc
add edi, edx
mov r14d, 1
mov dword [r10], r12d
or edi, eax
add r8d, r14d
movsxd rbx, r12d
mov dword [rbp + rsi + 0x330], edi
movsxd rdi, r8d
mov qword [rbp + 0x13a8], rsi
mov rax, rdi
mov edx, r8d
sar rax, 1
movsxd r11, dword [rsp + rax*4 + 0x20]
mov ecx, dword [rbp + r11*4 + 0x330]
cmp dword [rbp + rbx*4 + 0x330], ecx
jge 0x1800302e1
mov ecx, dword [rbp + rbx*4 + 0x330]
sar edx, 1
mov dword [rsp + rdi*4 + 0x20], r11d
movsxd rdi, edx
mov rax, rdi
sar rax, 1
movsxd r11, dword [rsp + rax*4 + 0x20]
cmp ecx, dword [rbp + r11*4 + 0x330]
jl 0x1800302c2
movsxd rax, edx
mov dword [rsp + rax*4 + 0x20], r12d
cmp r8d, r14d
jg 0x18003013d
mov r11, qword [rbp + 0x1390]
cmp r12d, 0x204
jge 0x1800303b1
xor cl, cl
cmp r9d, r14d
jl 0x1800303bd
mov r10, r11
lea rdi, [rbp + 0xb44]
lea r8, [rbp + 0xb44]
mov r11, r9
xor edx, edx
cmp dword [rdi], edx
jl 0x180030341
mov rax, r8
movsxd rax, dword [rax]
add edx, r14d
lea rax, [rbp + rax*4 + 0xb40]
cmp dword [rax], 0
jge 0x18003032e
cmp edx, 0x14
movzx ecx, cl
mov byte [r10], dl
cmovg ecx, r14d
add r8, 4
add rdi, 4
add r10, r14
sub r11, r14
jne 0x180030325
test cl, cl
je 0x1800303bd
mov r11, qword [rbp + 0x1390]
mov rcx, r14
cmp r14, r13
jge 0x180030076
mov eax, dword [rbp + rcx*4 + 0x330]
sar eax, 8
cdq
sub eax, edx
sar eax, 1
add eax, r14d
shl eax, 8
mov dword [rbp + rcx*4 + 0x330], eax
add rcx, r14
cmp rcx, r13
jl 0x180030375
mov r11, qword [rbp + 0x1390]
jmp 0x180030076
mov ecx, 3
call qword [sym.imp.msvcrt.dll_exit]
int3
mov ecx, 3
call qword [sym.imp.msvcrt.dll_exit]
int3
mov rbx, qword [rsp + 0x1498]
add rsp, 0x1450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret