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

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
mov rbp, qword [0x140190348]
test rax, rax
je 0x1400196f1
mov eax, dword [rax + 4]
mov dword [rcx + 4], eax
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x1400196ff
call fcn.1400196d0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001970d
call fcn.1400196d0
mov r8d, dword [rbx + 0x28]
xor esi, esi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r14
test r8d, r8d
jle 0x14001981b
mov r14d, esi
nop dword [rax]
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0xa4]
mov ecx, dword [rbp + 0x1c90]
inc r8d
mov rdi, qword [r14 + rax]
cmp r8d, ecx
jne 0x14001975d
mov eax, dword [rdi + 0x2c8]
inc eax
cmp eax, ecx
jge 0x14001975d
mov dl, 1
jmp 0x140019764
xor dl, dl
cmp r8d, ecx
jne 0x14001978c
test byte [rbx + 0xbc], 0x10
jne 0x140019778
mov eax, dword [rdi + 0x18]
cmp dword [rbx + 0xb4], eax
jne 0x14001978c
cmp byte [rdi + 0xe8], 0
je 0x14001978c
test dword [rdi + 0x1c], 0x100000
jne 0x14001978c
mov dl, 1
movzx ecx, byte [rdi + 0x439]
movzx eax, cl
shr al, 2
and al, 1
or al, dl
je 0x1400197d2
and cl, 0xfb
mov byte [rdi + 0x439], cl
cmp dword [rbx + 0x28], 1
jne 0x1400197b8
mov eax, dword [rbx + 8]
shr eax, 0xb
test al, 1
je 0x1400197f9
mov r8d, dword [rbx]
mov rdx, rdi
mov rcx, rbx
call fcn.1400166e0
dec esi
lea rdx, [rbx + 8]
sub r14, 8
jmp 0x1400197e4
mov eax, dword [rdi + 0x3c]
lea rdx, [rbx + 8]
not eax
and eax, dword [rdx]
mov dword [rdx], eax
or eax, dword [rdi + 0x38]
mov dword [rdx], eax
mov r8d, dword [rbx + 0x28]
inc esi
add r14, 8
cmp esi, r8d
jl 0x140019730
jmp 0x14001981f
mov rcx, rbx
call fcn.140015350
mov r8d, dword [rbx]
mov rdx, rdi
mov rcx, rbx
mov dword [rbx + 0xc], 1
call fcn.1400166e0
jmp 0x14001992a
lea rdx, [rbx + 8]
movzx r10d, byte [rbx + 0xbc]
mov rcx, rdx
test r10b, r10b
jns 0x140019856
cmp r8d, 1
jne 0x140019856
mov r9d, dword [rdx]
mov eax, r9d
or eax, dword [rbx + 4]
test al, 0x40
je 0x140019856
shr r9d, 0xd
test r8b, r9b
jne 0x140019856
or byte [rbx + 0xbd], r8b
lea rcx, [rbx + 8]
lea rdx, [rbx + 0xbd]
and r10b, 0x7f
movzx edi, byte [rdx]
mov r9, rdx
mov byte [rbx + 0xbc], r10b
movzx eax, dil
mov r11, rcx
test dil, 1
je 0x14001989f
mov rsi, qword [rbx + 0x88]
test rsi, rsi
je 0x14001989f
test dword [rsi + 0x38], 0x2000
je 0x14001989f
and al, 0xfe
lea r9, [rbx + 0xbd]
mov byte [rdx], al
lea r11, [rbx + 8]
cmp r8d, 1
jle 0x1400198ad
and dword [rcx], 0xffffdfff
jmp 0x1400198bd
test al, 1
je 0x1400198bd
xor dword [rcx], 0x2000
mov rdx, r9
mov rcx, r11
mov ecx, dword [rcx]
and al, 0xfe
mov byte [rdx], al
mov eax, ecx
shr eax, 0xb
shr ecx, 0xa
cmp qword [rbx + 0x10], 0
movzx eax, al
movzx edx, cl
cmovne edx, eax
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x1400198ef
test byte [rax + 0xbc], 1
je 0x1400198ef
mov al, 1
jmp 0x1400198f1
xor al, al
movzx ecx, al
test r8d, r8d
mov eax, 1
cmovg ecx, eax
mov rax, qword [rbx + 0x20]
or cl, dl
test rax, rax
je 0x140019917
test byte [rax + 0xbc], 1
je 0x140019917
mov al, 1
jmp 0x140019919
xor al, al
or al, cl
and r10b, 0xfe
and al, 1
xor al, r10b
mov byte [rbx + 0xbc], al
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret