Function at 0x140019b50
Capabilities:
Load assembly via iassembly

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3b8
mov rax, r8
mov rsi, rcx
mov qword [rsp + 0x388], rdx
lea rcx, [rsp + 0x278]
mov r8d, 0x110
mov rdx, rax
call sub.msvcrt.dll_memcpy
cmp dword [rsp + 0x278], 2
je 0x140019c21
mov r8d, dword [rsp + 0x32c]
mov rcx, qword [rsp + 0x310]
mov rdx, qword [rsp + 0x320]
test r8, r8
je 0x140019bd1
mov rax, rdx
sub rax, r8
jbe 0x140019c4e
cmp byte [rcx + r8], 0xbf
jle 0x140019c54
cmp rax, 3
jae 0x140019bda
jmp 0x140019c21
mov rax, rdx
cmp rax, 3
jb 0x140019c21
movzx eax, word [rcx + r8]
xor eax, 0x2f3a
movzx ecx, byte [rcx + r8 + 2]
xor ecx, 0x2f
or cx, ax
jne 0x140019c21
lea rdi, [rsp + 0x300]
mov rcx, rdi
call fcn.140182990
lea r8, [rdx + rax]
lea rcx, [rsp + 0xc8]
mov rdx, rax
call fcn.1401a5210
cmp qword [rsp + 0xc8], 0
je 0x140019c6a
lea rdx, [rsp + 0x278]
mov r8d, 0x118
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov rax, rsi
add rsp, 0x3b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
je 0x140019bc9
lea rax, str.G__
mov qword [rsp + 0x20], rax
mov r9, rdx
call fcn.14023ded0
ud2
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0xa0], xmm0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
call fcn.14022ae40
mov rcx, rdi
call fcn.140182a60
test rax, rax
je 0x140019cca
mov r8, rdx
add r8, rax
lea rcx, [rsp + 0xc8]
mov rdx, rax
call fcn.1401a5210
cmp qword [rsp + 0xc8], 0
je 0x140019cdf
mov qword [rsp + 0x78], 0
mov al, 1
cmp qword [rsp + 0x40], 0
je 0x140019d22
jmp 0x140019d49
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x1f0], rax
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x1e0], xmm0
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x1e0]
call fcn.14022ae40
cmp qword [rsp + 0x78], 0
sete al
cmp qword [rsp + 0x40], 0
jne 0x140019d49
test al, al
je 0x140019d49
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140019c21
mov rcx, qword [rsp + 0x30]
mov r8d, 1
call fcn.14000ea40
jmp 0x140019c21
lea rdx, [0x140254898]
mov rcx, rdi
xor r8d, r8d
call fcn.1401851a0
test al, al
jne 0x14001a407
mov rcx, rdi
xor edx, edx
call fcn.140184c80
test al, al
jne 0x14001a41c
mov rax, qword [rsp + 0x30]
movups xmm0, xmmword [rsp + 0x38]
mov rcx, qword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0x210], xmm0
movaps xmmword [rsp + 0x220], xmm1
mov qword [rsp + 0x230], rcx
test rax, rax
je 0x140019c21
mov qword [rsp + 0x260], rax
movaps xmm0, xmmword [rsp + 0x210]
movaps xmm1, xmmword [rsp + 0x220]
movups xmmword [rsp + 0x268], xmm0
movaps xmmword [rsp + 0x240], xmm1
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0xc8]
lea rdx, [rsp + 0x278]
mov r8d, 0x118
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x260]
lea r8, [rsp + 0x240]
call fcn.140036cc0
cmp dword [rsp + 0xc8], 2
jne 0x140019e5f
lea rdx, [rsp + 0xc8]
mov r8d, 0x118
mov rcx, rsi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x90]
mov rax, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
call qword [rax + 0x10]
jmp 0x140019c37
movups xmm0, xmmword [0x140255b98]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x140255b88]
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x200], rax
movups xmm0, xmmword [rsp + 0x78]
movups xmm1, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x1f0], xmm1
movaps xmmword [rsp + 0x1e0], xmm0
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
lea r13, [rsp + 0x201]
lea rdi, [rsp + 0xf0]
mov rcx, rdi
call fcn.140063e00
lea r12, [rsp + 0x50]
mov rcx, rdi
mov rdx, r12
call fcn.1400634a0
mov edi, eax
movzx eax, word [rsp + 0x148]
and ax, di
movzx ebx, ax
xor ebp, ebp
jmp 0x140019efe
movzx eax, byte [rcx + 8]
cmp al, byte [rsp + 0x58]
je 0x140019fbd
inc rbp
inc rbx
cmp rbx, qword [rsp + 0x110]
jb 0x140019f17
mov rax, qword [rsp + 0x110]
test rax, rax
je 0x140019f10
xor ebx, ebx
mov rax, qword [rsp + 0x108]
movzx r15d, word [rax + rbx*4]
cmp r15, 0xffff
je 0x14001a0a8
movzx eax, word [rax + rbx*4 + 2]
movzx ecx, word [rsp + 0x148]
mov edx, eax
and edx, ecx
mov r8d, ebx
sub r8d, edx
and r8d, ecx
cmp r8, rbp
jb 0x14001a191
cmp ax, di
jne 0x140019ef8
mov rdx, qword [rsp + 0x128]
cmp rdx, r15
jbe 0x14001a3c3
mov rax, qword [rsp + 0x118]
imul r14, r15, 0x68
mov r8, qword [rax + r14 + 0x40]
test r8, r8
setne cl
cmp qword [rsp + 0x50], 0
sete r9b
cmp cl, r9b
je 0x140019ef8
lea rcx, [rax + r14]
add rcx, 0x40
test r8, r8
je 0x140019eea
mov rdx, r12
call fcn.1401b1240
test al, al
je 0x140019ef8
mov rdx, qword [rsp + 0x128]
cmp rdx, r15
jbe 0x14001a3e5
mov rax, qword [rsp + 0x118]
lea r12, [rax + r14]
lea rcx, [rsp + 0x130]
cmp qword [rax + r14], 0
je 0x14001a30a
mov rdi, qword [r12 + 0x10]
mov rbx, qword [rsp + 0x140]
mov rax, rbx
cmp rbx, qword [rsp + 0x138]
jne 0x14001a00f
mov rdx, rbx
call fcn.140066700
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
lea rax, [rax + rax*8]
mov qword [rcx + rax*8], 1
mov qword [rcx + rax*8 + 8], rdi
mov qword [rcx + rax*8 + 0x10], 0
mov qword [rcx + rax*8 + 0x18], r15
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rcx + rax*8 + 0x20], xmm0
movups xmmword [rcx + rax*8 + 0x30], xmm1
mov byte [rcx + rax*8 + 0x40], 1
mov edx, dword [r13]
mov r8d, dword [r13 + 3]
mov dword [rcx + rax*8 + 0x41], edx
mov dword [rcx + rax*8 + 0x44], r8d
mov rdx, qword [rsp + 0x140]
inc rdx
mov qword [rsp + 0x140], rdx
cmp rdi, rdx
jae 0x14001a3f6
mov rax, qword [rsp + 0x130]
lea rcx, [rdi + rdi*8]
mov qword [rax + rcx*8 + 0x10], 1
mov qword [rax + rcx*8 + 0x18], rbx
mov qword [r12], 1
mov qword [r12 + 0x10], rbx
jmp 0x14001a39a
mov r15, qword [rsp + 0x128]
cmp r15, 0x8000
jae 0x14001a44a
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xb0], xmm1
movaps xmmword [rsp + 0xa0], xmm0
mov rax, r15
cmp r15, qword [rsp + 0x120]
jne 0x14001a0fc
lea rcx, [rsp + 0x118]
mov rdx, r15
call fcn.1400667d0
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x118]
imul rax, rax, 0x68
mov qword [rcx + rax], 0
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rcx + rax + 0x18], xmm0
movups xmmword [rcx + rax + 0x28], xmm1
mov byte [rcx + rax + 0x38], 1
mov edx, dword [r13]
mov r8d, dword [r13 + 3]
mov dword [rcx + rax + 0x39], edx
mov dword [rcx + rax + 0x3c], r8d
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movups xmmword [rcx + rax + 0x40], xmm0
movups xmmword [rcx + rax + 0x50], xmm1
mov word [rcx + rax + 0x60], di
inc qword [rsp + 0x128]
mov rdx, qword [rsp + 0x110]
cmp rbx, rdx
jae 0x14001a3d4
mov rax, qword [rsp + 0x108]
mov word [rax + rbx*4], r15w
mov word [rax + rbx*4 + 2], di
lea rdx, [rsp + 0xc8]
jmp 0x140019c29
cmp rbp, 0x200
setae bpl
mov r15, qword [rsp + 0x128]
cmp qword [rsp + 0xf0], 2
setne r14b
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xb0], xmm1
movaps xmmword [rsp + 0xa0], xmm0
cmp r15, 0x8000
jae 0x14001a44a
mov rax, r15
cmp r15, qword [rsp + 0x120]
jne 0x14001a1fd
lea rcx, [rsp + 0x118]
mov rdx, r15
call fcn.1400667d0
mov rax, qword [rsp + 0x128]
and bpl, r14b
mov rcx, qword [rsp + 0x118]
imul rax, rax, 0x68
mov qword [rcx + rax], 0
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rcx + rax + 0x18], xmm0
movups xmmword [rcx + rax + 0x28], xmm1
mov byte [rcx + rax + 0x38], 1
mov edx, dword [r13]
mov r8d, dword [r13 + 3]
mov dword [rcx + rax + 0x39], edx
mov dword [rcx + rax + 0x3c], r8d
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movups xmmword [rcx + rax + 0x40], xmm0
movups xmmword [rcx + rax + 0x50], xmm1
mov word [rcx + rax + 0x60], di
inc qword [rsp + 0x128]
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x110]
xor r8d, r8d
xor edx, edx
cmp rbx, rcx
cmovae rbx, r8
jb 0x14001a288
test rcx, rcx
je 0x14001a2c0
movzx r9d, word [rax + rbx*4]
cmp r9w, 0xffff
je 0x14001a2c2
inc rdx
movzx r10d, word [rax + rbx*4 + 2]
mov word [rax + rbx*4], r15w
mov word [rax + rbx*4 + 2], di
inc rbx
mov edi, r10d
mov r15d, r9d
cmp rbx, rcx
cmovae rbx, r8
jae 0x14001a283
jmp 0x14001a288
jmp 0x14001a2c0
mov word [rax + rbx*4], r15w
mov word [rax + rbx*4 + 2], di
cmp rdx, 0x80
setb al
not bpl
test bpl, al
jne 0x14001a3b6
cmp qword [rsp + 0xf0], 0
jne 0x14001a3b6
mov qword [rsp + 0xf0], 1
lea rdx, [rsp + 0xc8]
jmp 0x140019c29
mov rdi, qword [rsp + 0x140]
mov rax, rdi
cmp rdi, qword [rsp + 0x138]
jne 0x14001a32f
mov rdx, rdi
call fcn.140066700
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
lea rax, [rax + rax*8]
mov qword [rcx + rax*8], 0
mov qword [rcx + rax*8 + 8], r15
mov qword [rcx + rax*8 + 0x10], 0
mov qword [rcx + rax*8 + 0x18], r15
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rcx + rax*8 + 0x20], xmm0
movups xmmword [rcx + rax*8 + 0x30], xmm1
mov byte [rcx + rax*8 + 0x40], 1
mov edx, dword [r13]
mov r8d, dword [r13 + 3]
mov dword [rcx + rax*8 + 0x41], edx
mov dword [rcx + rax*8 + 0x44], r8d
inc qword [rsp + 0x140]
mov qword [r12], 1
mov qword [r12 + 8], rdi
mov qword [r12 + 0x10], rdi
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14001a3b6
lea rcx, [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
call qword [rax + 0x10]
lea rdx, [rsp + 0xc8]
jmp 0x140019c29
lea r8, [0x140254cc8]
mov rcx, r15
call fcn.140235ef0
ud2
lea r8, [0x140254cf8]
mov rcx, rbx
call fcn.140235ef0
ud2
lea r8, [0x140254ce0]
mov rcx, r15
call fcn.140235ef0
ud2
lea r8, [0x140254c50]
mov rcx, rdi
call fcn.140235ef0
ud2
lea rax, [0x140255c70]
mov qword [rsp + 0x20], rax
lea rcx, [0x140255bc4]
jmp 0x14001a42f
lea rax, [0x140255cb8]
mov qword [rsp + 0x20], rax
lea rcx, str.has_authority_means_set_password_shouldnt_fail
lea r9, [0x140254b60]
lea r8, [rsp + 0xc8]
mov edx, 0x2f
call fcn.1402363e0
ud2
lea rcx, [0x140254c98]
lea r8, [0x140254cb0]
mov edx, 0x16
call fcn.1400a6280
ud2