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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [rcx]
xor r12d, r12d
mov qword [0x1800ba830], rax
mov r15, rdx
mov edi, reloc.OLEAUT32.dll_VarI4FromDisp
movsxd rbx, dword [rax + 0x3c]
add rbx, rax
mov rax, qword [rbx + 0x30]
mov qword [0x1800ba840], rax
cmp dword [rbx + 0xb4], r12d
je 0x1800058e5
mov edx, dword [rbx + 0x50]
mov r9d, edi
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x1800ba840], rax
mov dword [rsp + 0x70], r12d
lea r9, [rsp + 0x70]
mov edx, dword [rbx + 0x50]
mov r8d, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180005ad5
mov rdi, qword [0x1800ba840]
xor edx, edx
mov r8d, dword [rbx + 0x50]
mov rcx, rdi
call fcn.180045e50
mov r14, qword [0x1800ba830]
mov rcx, rdi
mov r8d, dword [rbx + 0x54]
mov rdx, r14
call fcn.1800459f0
movzx esi, word [rbx + 0x14]
mov ebp, r12d
add rsi, rbx
cmp r12w, word [rbx + 6]
jae 0x18000596a
mov eax, ebp
lea rcx, [rax + rax*4]
mov edx, dword [rsi + rcx*8 + 0x2c]
mov r8d, dword [rsi + rcx*8 + 0x28]
add rdx, r14
mov ecx, dword [rsi + rcx*8 + 0x24]
add rcx, rdi
call fcn.1800459f0
movzx eax, word [rbx + 6]
inc ebp
cmp ebp, eax
jb 0x180005942
mov r8, rdi
sub r8, qword [rbx + 0x30]
je 0x1800059d6
cmp dword [rbx + 0xb4], r12d
je 0x1800059d6
mov ecx, dword [rbx + 0xb0]
add rcx, rdi
jmp 0x1800059d0
mov r9d, eax
lea r10, [rcx + 8]
mov eax, dword [rcx + 4]
add r9, rdi
lea edx, [rax - 8]
shr edx, 1
je 0x1800059cd
mov r11d, edx
movzx edx, word [r10]
mov esi, 0xfff
movzx eax, dx
and dx, si
shr ax, 0xc
cmp al, 3
je 0x1800059b9
cmp al, 0xa
jne 0x1800059c0
movzx eax, dx
add qword [rax + r9], r8
add r10, 2
sub r11, 1
jne 0x18000599e
mov eax, dword [rcx + 4]
add rcx, rax
mov eax, dword [rcx]
test eax, eax
jne 0x180005987
mov r14d, dword [rbx + 0x90]
add r14, 0xc
add r14, rdi
jmp 0x180005a35
mov ecx, eax
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [r14 + 4]
mov rbp, rax
mov rdi, qword [0x1800ba840]
add rsi, rdi
mov rcx, qword [rsi]
test rcx, rcx
je 0x180005a31
jns 0x180005a11
movzx edx, cx
jmp 0x180005a18
lea rdx, [rcx + 2]
add rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi], rax
add rsi, 8
mov rdi, qword [0x1800ba840]
jmp 0x180005a02
add r14, 0x14
mov eax, dword [r14]
test eax, eax
jne 0x1800059e6
mov rsi, r12
cmp dword [rbx + 0x8c], r12d
je 0x180005a77
mov ecx, dword [rbx + 0x88]
add rcx, rdi
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x180005a77
cmp dword [rcx + 0x14], r12d
je 0x180005a77
test eax, eax
je 0x180005a77
mov eax, dword [rcx + 0x24]
mov edx, dword [rcx + 0x1c]
add rdx, rdi
movzx r8d, word [rax + rdi]
mov esi, dword [rdx + r8*4]
add rsi, rdi
mov eax, dword [rbx + 0x28]
xor r8d, r8d
add rax, rdi
mov rcx, rdi
lea edx, [r8 + 1]
call rax
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
lea rax, [0x1800ba838]
mov r8d, dword [r15 + 8]
lea r9, [0x1800b8a70]
cmovae r9, qword [0x1800b8a70]
sub r8d, dword [r15]
mov rdx, qword [r15]
mov rcx, qword [0x1800b8d80]
mov qword [rsp + 0x38], rax
lea rax, [0x18000587c]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
call rsi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret