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

Disassembly:
push rbx
sub rsp, 0x70
mov eax, dword [0x18000c1d0]
mov r9d, edx
add eax, 0xfffffffe
mov rbx, rcx
cmp eax, 1
jbe 0x180002aa5
mov eax, 0xffffffda
add rsp, 0x70
pop rbx
ret
movzx r10d, byte [rcx + 0x28]
and r10b, 1
je 0x180002ac5
lea eax, [rdx - 3]
test eax, 0xfffffffd
je 0x180002acb
mov eax, 0xffffa871
add rsp, 0x70
pop rbx
ret
cmp r9d, 2
jne 0x180002aba
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x68], rdi
xor edi, edi
mov eax, edi
mov edx, edi
mov qword [rsp + 0x98], rax
cmp r9d, 2
jbe 0x180002b05
cmp dword [r8], 2
jne 0x180002e70
mov rax, qword [r8 + 8]
lea edx, [rdi + 1]
mov qword [rsp + 0x98], rax
cmp r9d, 5
jne 0x180002b28
lea rcx, [rdx + rdx*2]
cmp dword [r8 + rcx*8], 1
jne 0x180002e70
cmp dword [r8 + rcx*8 + 8], edi
jne 0x180002bd7
inc rdx
lea rcx, [rdx + rdx*2]
cmp dword [r8 + rcx*8], 1
jne 0x180002e70
mov esi, dword [r8 + rcx*8 + 8]
inc rdx
cmp r9d, 5
jne 0x180002b57
lea rcx, [rdx + rdx*2]
cmp dword [r8 + rcx*8], 1
jne 0x180002e70
inc rdx
lea rcx, [rdx + rdx*2]
cmp dword [r8 + rcx*8], 3
jne 0x180002e70
mov qword [rsp + 0x80], rbp
mov rbp, qword [r8 + rcx*8 + 0x10]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r14
mov r14d, dword [r8 + rcx*8 + 8]
test r10b, r10b
jne 0x180002c2a
lea rax, [rbx + 0xb8]
mov rcx, qword [rax]
cmp rcx, rax
je 0x180002bad
nop word [rax + rax]
cmp dword [rcx + 0x1c], esi
je 0x180002bef
mov rcx, qword [rcx]
cmp rcx, rax
jne 0x180002ba0
mov eax, 0xffffffe0
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x80]
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x68]
add rsp, 0x70
pop rbx
ret
mov rsi, qword [rsp + 0x88]
mov eax, 0xfffffff3
mov rdi, qword [rsp + 0x68]
add rsp, 0x70
pop rbx
ret
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x98], rax
mov eax, pe_overlay
add word [rbx + 0xc8], ax
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov qword [rax + 8], rdx
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
call qword [sym.imp.VBoxRT.dll_RTMemFree]
mov rax, qword [rsp + 0x98]
movzx edx, word [rbx + 0x24]
lea r12, [rbx + 0xd0]
movzx ecx, word [r12]
shl rdx, 0x10
or rdx, rcx
mov ecx, eax
shl rdx, 0x20
or rdx, rcx
cmp rax, rdx
jne 0x180002bad
test byte [rbx + 0x28], 1
jne 0x180002c61
cmp dword [rbx + 0x4c], edi
jne 0x180002c61
mov dword [rbx + 0x4c], esi
lea rcx, [0x18000c1a0]
call qword [sym.imp.VBoxRT.dll_RTCritSectEnter]
test eax, eax
js 0x180002bb2
mov rax, qword [0x18000c130]
mov qword [rsp + 0x50], r15
test rax, rax
je 0x180002cc1
mov rcx, qword [0x18000c138]
lea r8, [rsp + 0x38]
mov r9d, 0x18
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x4c], edi
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x40], rbp
lea edx, [r9 - 0x15]
mov dword [rsp + 0x48], r14d
call qword [0x1800083a8]
mov r15d, edi
jmp 0x180002e56
mov dword [rsp + 0x28], r14d
lea r8, [rsp + 0x98]
mov r9d, esi
mov qword [rsp + 0x20], rbp
mov rdx, rbx
lea rcx, [0x18000c150]
call fcn.180005070
mov r15d, eax
test eax, eax
jns 0x180002d1c
mov ecx, 0x1760010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x180002d1c
lea r9, str.Shared_Clipboard:_Writing_guest_clipboard_data_to_the_host_failed_with__Rrc_n
mov dword [rsp + 0x20], r15d
mov edx, 0x10
mov r8d, 0x176
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
cmp rbx, 0x1000
jb 0x180002e22
movabs rcx, 0xffff800000000000
test rcx, rbx
jne 0x180002e22
lea rax, [rsp + 0x98]
cmp rax, 0x1000
jb 0x180002e22
lea rax, [rsp + 0x98]
test rcx, rax
jne 0x180002e22
test r14d, r14d
je 0x180002d7c
cmp rbp, 0x1000
jb 0x180002e22
test rcx, rbp
jne 0x180002e22
mov rbx, qword [rsp + 0x98]
cmp ebx, 0xffffffff
je 0x180002e1b
mov edx, ebx
mov rcx, r12
call fcn.180004b70
mov rsi, rax
test rax, rax
je 0x180002e14
mov rdx, rdi
mov qword [rsp + 0x30], rdx
test r14d, r14d
je 0x180002dc5
lea r9, [rsp + 0x30]
mov r8d, r14d
mov rdx, rbp
mov ecx, ebx
call fcn.180004ce0
mov rdx, qword [rsp + 0x30]
mov edi, eax
mov rcx, rsi
call fcn.180004880
mov ebx, eax
test eax, eax
jns 0x180002e0e
mov rcx, qword [rsp + 0x30]
mov edi, eax
call fcn.180004da0
mov ecx, 0x1760010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x180002e0e
lea r9, str.Shared_Clipboard:_Signalling_of_guest_clipboard_data_to_the_host_failed:__Rrc_n
mov dword [rsp + 0x20], ebx
mov edx, 0x10
mov r8d, 0x176
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
test edi, edi
jns 0x180002e56
jmp 0x180002e27
mov edi, 0xffffffb2
jmp 0x180002e27
mov edi, 0xffffffea
jmp 0x180002e27
mov edi, 0xfffffffa
mov ecx, 0x1760010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x180002e56
lea r9, str.Shared_Clipboard:_Signalling_host_about_guest_clipboard_data_failed_with__Rrc_n
mov dword [rsp + 0x20], edi
mov edx, 0x10
mov r8d, 0x176
mov rcx, rax
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
lea rcx, [0x18000c1a0]
call qword [sym.imp.VBoxRT.dll_RTCritSectLeave]
mov eax, r15d
mov r15, qword [rsp + 0x50]
jmp 0x180002bb2
mov rsi, qword [rsp + 0x88]
mov eax, 0xffffa870
mov rdi, qword [rsp + 0x68]
add rsp, 0x70
pop rbx
ret