Function at 0x14015a8b0
Capabilities:
Load assembly via iassembly

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x5e8
mov r13, r8
mov r15, rdx
mov rbp, rcx
mov rcx, rdx
call fcn.14015d930
cmp rax, 1
jne 0x14015a8f8
mov rcx, rbp
mov r8, r13
add rsp, 0x5e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14015d950
mov rcx, qword [r15]
add rcx, 0xfffffffffffffffa
cmp rcx, 3
mov eax, 1
cmovb rax, rcx
test rax, rax
jne 0x14015abf9
mov rax, qword [r15 + 8]
mov qword [r15], 8
cmp rax, 1
ja 0x14015ac0e
lea rdx, [r15 + 0x10]
lea rcx, [rsp + 0x1a8]
mov qword [rcx - 8], rax
mov r8d, 0x1e8
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x380]
lea r8, [rsp + 0x2e8]
mov r9b, byte [rdx + 8]
lea rsi, [rsp + 0xc0]
mov rcx, rsi
call fcn.140161701
cmp byte [rsi], 3
jne 0x14015a996
lea rcx, [rsp + 0x1a0]
call fcn.14015ac8a
mov eax, 5
mov qword [rsp + 0x38], rax
mov bl, 2
xor eax, eax
mov qword [rsp + 0x30], rax
xor r14d, r14d
jmp 0x14015aae2
lea rax, [rsp + 0xc7]
mov rcx, qword [rax + 0x29]
mov qword [rsp + 0x40], r13
lea r13, [rsp + 0x390]
mov qword [r13 + 0x87], rcx
movups xmm0, xmmword [rax - 7]
movups xmm1, xmmword [rax + 9]
movups xmm2, xmmword [rax + 0x19]
movups xmmword [r13 + 0x77], xmm2
movups xmmword [r13 + 0x67], xmm1
movups xmmword [r13 + 0x57], xmm0
lea rdx, [rsp + 0x4b0]
lea rsi, [rsp + 0x1a0]
mov ecx, 0x10
mov rdi, rdx
rep movsq qword [rdi], qword [rsi]
mov r12, rbp
lea rbp, [rsp + 0x318]
lea rdi, [rsp + 0x530]
mov ecx, 0xb
mov rsi, rbp
rep movsq qword [rdi], qword [rsi]
mov r8d, 0xd8
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov al, byte [rbp + 0x71]
mov byte [rsp + 0x27], al
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp - 0xf8]
mov qword [rsp + 0x38], rax
mov r14, qword [rbp - 0xf0]
mov rax, qword [rbp - 0xe8]
mov qword [rsp + 0x48], rax
mov al, byte [rbp - 0xe0]
mov qword [rsp + 0x30], rax
lea rsi, [rsp + 0x239]
lea rcx, [rsp + 0x69]
mov r8d, 0x57
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov bl, byte [rsi + 0x57]
movups xmm0, xmmword [rsi + 0x58]
movaps xmmword [r13], xmm0
mov rax, qword [rsi + 0x67]
mov qword [r13 + 0xf], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsi + 0x6f]
movups xmmword [r13 + 0x17], xmm0
movups xmm0, xmmword [rsi + 0x7f]
movups xmmword [r13 + 0x27], xmm0
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [r13 + 0x37], xmm0
movups xmm0, xmmword [rbp - 0x40]
mov rbp, r12
movups xmmword [r13 + 0x47], xmm0
lea rcx, [rsp + 0x421]
mov r8d, 0x8f
mov rdx, r13
mov r13, qword [rsp + 0x40]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x2e8]
call fcn.14015af78
lea rdi, [rsp + 0x591]
lea rdx, [rsp + 0x69]
mov r8d, 0x57
mov rcx, rdi
call sub.msvcrt.dll_memcpy
lea r12, [rsp + 0x390]
lea rdx, [rsp + 0x421]
mov r8d, 0x8f
mov rcx, r12
call sub.msvcrt.dll_memcpy
lea rsi, [rsp + 0x4b0]
lea rdx, [rsp + 0xc0]
mov r8d, 0xdf
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov rcx, r15
call fcn.14015ac5d
mov rax, qword [rsp + 0x38]
mov qword [r15], rax
mov qword [r15 + 8], r14
mov rax, qword [rsp + 0x48]
mov qword [r15 + 0x10], rax
mov rax, qword [rsp + 0x30]
mov byte [r15 + 0x18], al
lea rcx, [r15 + 0x19]
mov r8d, 0x57
mov rdx, rdi
call sub.msvcrt.dll_memcpy
mov byte [r15 + 0x70], bl
lea rcx, [r15 + 0x71]
mov r8d, 0x8f
mov rdx, r12
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x50]
mov qword [r15 + 0x100], rax
mov rax, qword [rsp + 0x58]
mov qword [r15 + 0x108], rax
mov rax, qword [rsp + 0x60]
mov qword [r15 + 0x110], rax
mov al, byte [rsp + 0x27]
mov byte [r15 + 0x118], al
lea rcx, [r15 + 0x119]
mov r8d, 0xdf
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rcx, r15
call fcn.14015d930
cmp rax, 1
jne 0x14015ac44
mov rcx, rbp
mov r8, r13
call fcn.14015d950
nop
add rsp, 0x5e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp rax, 1
jne 0x14015ac07
mov rcx, r15
call fcn.14015acde
mov qword [r15], 8
lea rax, str.internal_error:_entered_unreachable_code:_lazy_state_wrong
lea rcx, [rsp + 0xc0]
mov qword [rcx], rax
mov qword [rcx + 8], 1
lea rax, [rsp + 0x28]
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, [0x1403b4c50]
call fcn.14009d3a0
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, [0x1403b4be8]
mov edx, 0x28
call fcn.14009e210
int3