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

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x40
cmp byte [rcx + 0xe8], 0
mov r14, r8
mov r15, rdx
mov rbx, rcx
jne 0x1400bdac5
mov rcx, qword [rdx]
cmp qword [r8], rcx
mov qword [rsp + 0x68], rbp
cmovb rcx, qword [r8]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
xor r12d, r12d
mov qword [rsp + 0x60], rcx
cmp dword [rbx + 0xec], r12d
jne 0x1400bd6c5
mov rax, qword [rbx + 0x90]
cmp qword [rbx + 0x88], rax
je 0x1400bd6b8
cmp byte [rbx + 0xe9], r12b
je 0x1400bd6c5
cmp qword [rbx + 0xb8], r12
jne 0x1400bd6c5
xor dl, dl
jmp 0x1400bd6c7
mov dl, 1
lea r8, [rsp + 0x60]
mov rcx, rbx
call fcn.1400bbdb0
cmp byte [rbx + 0xe8], r12b
jne 0x1400bdab1
cmp qword [r14], 0xffffffffffffffff
je 0x1400bd6f5
call fcn.1400cbff0
cmp qword [r14], rax
jbe 0x1400bdab1
cmp byte [rbx + 0xe9], r12b
jne 0x1400bd977
mov eax, dword [rbx + 0xf0]
xor bpl, bpl
cmp dword [rbx + 0xec], eax
jae 0x1400bd977
nop word [rax + rax]
mov rdi, qword [rbx + 0xb8]
test rdi, rdi
je 0x1400bd738
mov qword [rbx + 0xb8], r12
jmp 0x1400bd82e
mov rax, qword [rbx + 0x90]
cmp qword [rbx + 0x88], rax
je 0x1400bd96e
mov rax, qword [rbx + 0x88]
mov ecx, 2
mov r11, qword [rbx + 0x90]
mov r9, rax
mov r10, r12
mov rdi, qword [rax]
mov rsi, qword [r11 - 8]
mov rax, qword [rax]
mov qword [r11 - 8], rax
sub r11, r9
sar r11, 3
dec r11
cmp rcx, r11
jge 0x1400bd7d1
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r9 + rcx*8 - 8]
mov r8, qword [r9 + rcx*8]
mov eax, dword [rdx + 0x20]
cmp dword [r8 + 0x20], eax
je 0x1400bd7a7
setl al
jmp 0x1400bd7b2
mov rax, qword [rdx + 0x18]
cmp qword [r8 + 0x18], rax
seta al
test al, al
je 0x1400bd7b9
dec rcx
mov rax, qword [r9 + rcx*8]
mov qword [r9 + r10*8], rax
mov r10, rcx
lea rcx, [rcx*2 + 2]
cmp rcx, r11
jl 0x1400bd790
jne 0x1400bd7e0
mov rax, qword [r9 + rcx*8 - 8]
mov qword [r9 + r10*8], rax
lea r10, [rcx - 1]
lea rcx, [r10 - 1]
sar rcx, 1
test r10, r10
jle 0x1400bd822
nop dword [rax]
mov rdx, qword [r9 + rcx*8]
mov eax, dword [rsi + 0x20]
cmp dword [rdx + 0x20], eax
je 0x1400bd801
setl al
jmp 0x1400bd80c
mov rax, qword [rsi + 0x18]
cmp qword [rdx + 0x18], rax
seta al
test al, al
je 0x1400bd822
mov qword [r9 + r10*8], rdx
mov r10, rcx
dec rcx
sar rcx, 1
test r10, r10
jg 0x1400bd7f0
mov qword [r9 + r10*8], rsi
sub qword [rbx + 0x90], 8
test rdi, rdi
je 0x1400bd96e
or dword [rdi + 0x14], 1
xor edx, edx
inc dword [rbx + 0xec]
mov bpl, 1
mov ecx, dword [rbx + 0x128]
mov r8d, dword [rdi + 0x10]
mov r9d, dword [rbx + 0xec]
mov eax, r8d
div rcx
mov rax, qword [rbx + 0x120]
mov ecx, edx
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x1400bd87e
nop
cmp r8d, dword [rdx]
je 0x1400bd890
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1400bd870
mov rcx, qword [rbx + 0x128]
mov rax, qword [rbx + 0x120]
mov rdx, qword [rax + rcx*8]
mov rcx, qword [rbx + 0x128]
mov rax, qword [rbx + 0x120]
cmp rdx, qword [rax + rcx*8]
je 0x1400bd90f
mov rcx, qword [rdx + 8]
test rcx, rcx
je 0x1400bd90f
mov rax, qword [rcx]
mov rdx, rdi
movzx r8d, byte [rbx + 0xea]
call qword [rax + 0x20]
movzx ecx, al
test al, al
je 0x1400bd8e5
sub ecx, 2
je 0x1400bd8e5
cmp ecx, 1
jne 0x1400bd953
dec dword [rbx + 0xec]
xor bpl, bpl
mov qword [rbx + 0xb8], rdi
jmp 0x1400bd953
test byte [rdi + 0x14], bpl
je 0x1400bd8f1
dec dword [rbx + 0xec]
mov rax, qword [rdi]
xor edx, edx
test byte [rdi + 0x14], 2
mov rcx, rdi
je 0x1400bd93d
call qword [rax]
mov eax, 4
mov qword [rdi + 8], r12
xchg dword [rdi + 0x14], eax
jmp 0x1400bd953
test byte [rdi + 0x14], bpl
je 0x1400bd91f
lea eax, [r9 - 1]
mov dword [rbx + 0xec], eax
mov rax, qword [rdi]
xor edx, edx
test byte [rdi + 0x14], 2
mov rcx, rdi
je 0x1400bd93d
call qword [rax]
mov eax, 4
mov qword [rdi + 8], r12
xchg dword [rdi + 0x14], eax
jmp 0x1400bd953
call qword [rax]
mov rax, qword [rbx + 0x60]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
mov r9, qword [rax]
call qword [r9 + SafeArrayPutElement]
cmp qword [rbx + 0xb8], r12
jne 0x1400bd96e
mov eax, dword [rbx + 0xf0]
cmp dword [rbx + 0xec], eax
jb 0x1400bd720
test bpl, bpl
jne 0x1400bd696
cmp dword [rbx + 0xec], r12d
je 0x1400bdaa8
mov rax, qword [rbx + 0xc8]
cmp qword [rbx + 0xc0], rax
je 0x1400bd9a3
lea rcx, [rbx + 0xc0]
mov rdx, rbx
call fcn.1400b4870
mov rcx, qword [rbx + 0xc8]
sub rcx, qword [rbx + 0xc0]
mov eax, dword [rbx + 0xec]
sar rcx, 3
cmp rax, rcx
ja 0x1400bd9cd
cmp qword [rbx + 0xb8], r12
je 0x1400bda6d
mov rax, qword [rbx + 0x90]
cmp qword [rbx + 0x88], rax
je 0x1400bd9f0
mov eax, dword [rbx + 0xf0]
cmp dword [rbx + 0xec], eax
jae 0x1400bd9f0
mov dil, 1
jmp 0x1400bd9f3
xor dil, dil
mov rax, qword [rbx + 0xc8]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x78], r12
cmp qword [rbx + 0xc0], rax
jne 0x1400bda56
cmp dword [rbx + 0x3c], r12d
jne 0x1400bda19
cmp dword [rbx + 0x40], r12d
je 0x1400bda56
call fcn.1400cbff0
mov r8, rax
mov rdx, qword [rsp + 0x60]
cmp dword [rbx + 0x3c], r12d
je 0x1400bda3e
mov ecx, dword [rbx + 0x3c]
add rcx, rax
cmp rdx, rcx
cmovb rcx, rdx
mov qword [rsp + 0x20], rcx
cmp dword [rbx + 0x40], r12d
je 0x1400bda56
mov eax, dword [rbx + 0x40]
add rax, r8
cmp rdx, rax
cmovb rax, rdx
mov qword [rsp + 0x78], rax
mov rax, qword [rbx]
lea r8, [rsp + 0x78]
movzx r9d, dil
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [rax + 0x78]
mov rax, qword [rbx + 0xc8]
cmp qword [rbx + 0xc0], rax
je 0x1400bdaa8
mov rax, qword [0x140401540]
test rax, rax
je 0x1400bda92
mov eax, dword [rax + 0x5c]
test eax, eax
js 0x1400bdaa8
jmp 0x1400bda97
mov eax, 1
cdqe
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call fcn.1400cd040
cmp qword [r15], r12
jne 0x1400bd696
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov r12, qword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop rbx
ret