Function at 0x1800587a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
lea r12d, [r8 + 0x297]
mov rdi, rdx
mov r15, rcx
cmp r8d, r12d
jae case.0x180058807.10
mov rsi, qword [rbp - 8]
lea r14d, [r8 - 0x1d]
mov r13, qword [rbp - 8]
xor ebx, ebx
lea rdx, [0x180000000]
cmp r14d, 0xcb
ja case.0x180058807.12
movzx eax, byte [rdx + r14 + 0x58b24]
mov ecx, dword [rdx + rax*4 + 0x58af0]
add rcx, rdx
jmp rcx
mov r9, qword [rbp - 0x30]
lea rax, [rbp - 0x28]
mov edx, 0x23
mov qword [rbp - 0x10], 1
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea ecx, [rdx - 0x22]
call fcn.180062560
mov r9, qword [rbp - 0x30]
lea rax, [rbp - 0x28]
mov edx, 0x23
mov qword [rbp - 0x10], 3
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea ecx, [rdx - 0x20]
call fcn.180062560
jmp case.0x180058807.12
mov rax, qword [r9]
cmp qword [rdi + 0x78], rax
jbe case.0x180058807.10
lea rcx, [rax + rax*8]
mov rax, qword [rdi + 0x70]
lea rsi, [rax + rcx*8]
mov rax, qword [rax + rcx*8]
cmp qword [rax + 0x20], rbx
je 0x180058890
nop dword [rax]
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
mov qword [rsi], rax
cmp qword [rax + 0x20], rbx
jne 0x180058880
mov qword [rax + 8], rbx
jmp case.0x180058807.12
test r15, r15
je 0x180058aac
mov rax, qword [rbp + 0x68]
mov r13, qword [r15 - 8]
mov rdx, qword [rax]
cmp r13, rdx
jae 0x180058908
mov rax, qword [r9]
lea rcx, [rax + rax*8]
mov rax, qword [rdi + 0x70]
mov r10, qword [rax + rcx*8]
lea r11, [rax + rcx*8]
mov qword [rbp - 8], r11
mov rcx, qword [r10 + 8]
cmp rcx, r13
jb case.0x180058807.12
mov r9, qword [r10]
mov r8, rcx
sub r8, r13
lea rax, [r9 + r8]
cmp rax, r15
jne case.0x180058807.12
add r8, rdx
cmp r8, qword [r10 + 0x10]
ja case.0x180058807.12
sub rcx, r13
mov qword [rcx + r9 - 8], rdx
mov rax, qword [r11]
mov qword [rax + 8], r8
mov rax, r15
jmp 0x180058ad7
mov rax, qword [rbp + 0x68]
lea rdx, [rbp - 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], StrCmpNCW
lea rcx, [rbp - 0x18]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
mov rax, qword [r9]
mov r9, rdi
mov qword [rbp - 0x18], rax
call fcn.18006a7e0
mov qword [rbp - 0x18], rax
jmp case.0x180058807.12
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180058980
mov rax, qword [rbp + 0x60]
mov rdx, r15
mov r8, qword [rax]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp - 8]
lea r8, [rbp - 0x10]
add rcx, 8
mov qword [rbp - 0x10], r13
mov r9d, 0x9b
mov rdx, r15
call fcn.18005ba50
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x20], rcx
jmp case.0x180058807.12
lea rax, [rsi + 8]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0x10e
call fcn.180048d30
jmp case.0x180058807.12
mov r9d, 0xef
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180042520
mov qword [rbp - 0x30], rax
lea r8, [rbp - 0x10]
mov r9, qword [rbp - 0x30]
lea rax, [rbp - 0x28]
mov edx, 0x23
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x10], 2
mov qword [rsp + 0x20], rax
lea ecx, [rdx - 0x21]
call fcn.180062560
jmp case.0x180058807.12
mov rdx, qword [rbp - 0x30]
lea r8, [rbp + 0x50]
mov ecx, 0x91
mov byte [rbp + 0x50], 1
call fcn.18006b1e0
mov qword [rbp - 0x30], rax
jmp case.0x180058807.12
mov r8, qword [rbp - 0x28]
test r8, r8
je 0x180058a86
cmp qword [r8 + 8], 2
jne 0x180058a86
mov r9, qword [rbp - 0x30]
lea rcx, [rbp - 0x10]
mov edx, 0x7f
mov qword [rbp - 0x10], 1
call fcn.180062810
mov r8, rax
xor edx, edx
mov ecx, 0xa9
call fcn.18004c030
jmp case.0x180058807.12
test rdi, rdi
je 0x180058aac
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x180058a6c
nop word [rax + rax]
mov rdi, rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x180058a60
mov qword [rbp - 0x20], rdi
add r14d, 0x33
lea eax, [r14 + 0x1d]
cmp eax, r12d
jae case.0x180058807.10
mov r9, qword [rbp + 0x58]
jmp 0x1800587e0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._Z23convert_double4_sat_rteDv4_t
call fcn.18006e7b0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, rbx
jmp 0x180058ad7
mov eax, dword [rdi]
lea rcx, [rbp + 0x50]
mov r9d, 0x80
mov dword [rbp + 0x50], eax
xor r8d, r8d
xor edx, edx
call fcn.180064210
shr eax, 0x10
mov dword [rdi], eax
mov word [rbp - 0x20], ax
mov rax, qword [rbp - 0x20]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret