Function at 0x1401596a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov rsi, rcx
test edx, edx
je 0x1401596db
mov byte [rsi + 4], 0x12
mov dword [rsi], 2
mov rax, rsi
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, r9
bt rdx, 0x20
jb 0x140159885
movabs rax, 0xaaaaaaaaaaaaaaab
imul rax, rdi
ror rax, 1
movabs rcx, 0x2aaaaaaaaaaaaaab
cmp rax, rcx
jb 0x140159897
mov rax, qword [0x140321d88]
mov rax, qword [rax]
cmp rax, 2
jae 0x140159b3d
movzx edx, byte [0x140321300]
test dl, dl
je 0x140159b3d
movzx eax, dl
cmp eax, 1
je 0x140159743
cmp eax, 2
jne 0x140159b27
mov dl, 2
mov rcx, qword [str._W__]
call fcn.14017e3c0
test al, al
je 0x140159b3d
mov rcx, qword [str._W__]
call fcn.14017f1d0
lea r15, [rsp + 0xb0]
mov rcx, r15
mov rdx, rax
call fcn.14017f8e0
mov rcx, qword [str._W__]
call fcn.14017f1d0
mov rbx, rax
lea r14, [rsp + 0x58]
mov rcx, r14
mov rdx, r15
call fcn.14017f910
cmp qword [rsp + 0x58], 0
je 0x140159bbe
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x100], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0xf0], xmm1
movaps xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
lea rax, [0x140061830]
mov qword [rsp + 0x90], rax
lea rax, str.invalid_settings_payload_length__len
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 1
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], r14
lea rax, fcn.140011570
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 1
mov qword [rsp + 0xc0], rbx
mov rcx, qword [str._W__]
lea rdx, [rsp + 0xb0]
call fcn.14017fb00
mov byte [rsi + 4], 0x11
jmp 0x1401596be
test rdi, rdi
je 0x140159a6f
mov byte [rsi + 4], 0x10
jmp 0x1401596be
test rdi, rdi
je 0x140159aa8
xor eax, eax
lea r14, [0x140245988]
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
xor edx, edx
mov dword [rsp + 0x34], 0
xor r11d, r11d
mov dword [rsp + 0x30], 0
jmp 0x1401598fc
shl ebx, 0x18
shl r10d, 0x10
or r10d, ebx
shl ecx, 8
or ecx, r10d
or ecx, r9d
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x48], ecx
nop
add r8, r12
sub rdi, r12
je 0x140159acf
cmp rdi, 6
mov r12d, 6
cmovb r12, rdi
cmp r12, 1
je 0x140159b46
cmp r12, 2
jbe 0x140159b5e
cmp r12, 3
je 0x140159b76
cmp r12, 4
jbe 0x140159b8e
cmp r12, 5
je 0x140159ba6
movzx ecx, byte [r8]
movzx r9d, byte [r8 + 1]
shl ecx, 8
lea r15d, [rcx + r9]
dec r15d
cmp r15d, 7
ja case.0x140159970.7
movzx ebx, byte [r8 + 2]
movzx r10d, byte [r8 + 3]
movzx ecx, byte [r8 + 4]
movzx r9d, byte [r8 + 5]
movsxd r15, dword [r14 + r15*4]
add r15, r14
jmp r15
shl ebx, 0x18
shl r10d, 0x10
or r10d, ebx
shl ecx, 8
or ecx, r10d
or ecx, r9d
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x4c], ecx
jmp case.0x140159970.7
shl ebx, 0x18
shl r10d, 0x10
or r10d, ebx
shl ecx, 8
or ecx, r10d
or ecx, r9d
mov r11d, 1
mov ebp, ecx
cmp ecx, 2
jb case.0x140159970.7
jmp 0x140159a66
shl ebx, 0x18
shl r10d, 0x10
or r10d, ebx
shl ecx, 8
or ecx, r10d
or ecx, r9d
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x40], ecx
jmp case.0x140159970.7
shl ebx, 0x18
shl r10d, 0x10
or r10d, ebx
shl ecx, 8
or ecx, r10d
or ecx, r9d
mov edx, 1
mov dword [rsp + 0x44], ecx
jns case.0x140159970.7
jmp 0x140159a66
shl ebx, 0x18
shl r10d, 0x10
or r10d, ebx
shl ecx, 8
lea ebx, [rcx + r10]
add ebx, 0xffffc000
cmp ebx, 0xffc000
jae 0x140159a66
or r10d, ecx
or r10d, r9d
mov dword [rsp + 0x2c], 1
mov ecx, r10d
mov dword [rsp + 0x3c], r10d
jmp case.0x140159970.7
shl ebx, 0x18
shl r10d, 0x10
or r10d, ebx
shl ecx, 8
or ecx, r10d
or ecx, r9d
mov eax, 1
mov r13d, ecx
cmp ecx, 2
jb case.0x140159970.7
mov byte [rsi + 4], 0xe
jmp 0x1401596be
mov dword [rsi], 0
mov dword [rsi + 8], 0
mov dword [rsi + 0x10], 0
mov dword [rsi + 0x18], 0
mov dword [rsi + 0x20], 0
mov dword [rsi + 0x28], 0
mov dword [rsi + 0x30], 0
mov byte [rsi + 0x38], 1
jmp 0x1401596c4
mov dword [rsp + 0x30], 0
xor r11d, r11d
mov dword [rsp + 0x34], 0
xor edx, edx
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x38], 0
xor eax, eax
mov ecx, dword [rsp + 0x30]
mov dword [rsi], ecx
mov ecx, dword [rsp + 0x4c]
mov dword [rsi + 4], ecx
mov dword [rsi + 8], r11d
mov dword [rsi + 0xc], ebp
mov ecx, dword [rsp + 0x34]
mov dword [rsi + 0x10], ecx
mov ecx, dword [rsp + 0x40]
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov ecx, dword [rsp + 0x44]
mov dword [rsi + 0x1c], ecx
mov ecx, dword [rsp + 0x2c]
mov dword [rsi + 0x20], ecx
mov ecx, dword [rsp + 0x3c]
mov dword [rsi + 0x24], ecx
mov ecx, dword [rsp + 0x38]
mov dword [rsi + 0x28], ecx
mov ecx, dword [rsp + 0x48]
mov dword [rsi + 0x2c], ecx
mov dword [rsi + 0x30], eax
mov dword [rsi + 0x34], r13d
mov byte [rsi + 0x38], 0
jmp 0x1401596c4
lea rcx, str._W__
call fcn.1402093d0
mov edx, eax
test al, al
jne 0x140159743
mov byte [rsi + 4], 0x11
jmp 0x1401596be
lea r8, [0x1402442a0]
mov ecx, 1
mov edx, 1
call fcn.14020ecf0
ud2
lea r8, [0x1402442b8]
mov ecx, 2
mov edx, 2
call fcn.14020ecf0
ud2
lea r8, [0x1402442b8]
mov ecx, 3
mov edx, 3
call fcn.14020ecf0
ud2
lea r8, [0x1402442b8]
mov ecx, 4
mov edx, 4
call fcn.14020ecf0
ud2
lea r8, [0x1402442b8]
mov ecx, 5
mov edx, 5
call fcn.14020ecf0
ud2
lea rcx, [0x140243b68]
lea r8, [0x1402440f8]
mov edx, 0x22
call fcn.14020eb50
ud2