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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1800891a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xe0]
add rax, 0x90
mov rcx, rax
call fcn.180011c00
test rax, rax
jne 0x180036ea0
mov eax, 0x80004005
jmp 0x1800372e9
mov edx, 1
lea rcx, [rsp + 0x90]
call fcn.18003cfc0
lea rcx, [rsp + 0x90]
call fcn.180011480
nop
mov rax, qword [rsp + 0xe0]
add rax, 0x90
mov rcx, rax
call fcn.180011c00
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x90]
call fcn.180005170
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
mov qword [rsp + 0x70], rcx
mov rdx, rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
call qword [rax + 0x28]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x180036fe0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088dc0]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x3c], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088dc0]
movsxd rdx, dword [rsp + 0x3c]
lea r8, [0x180088dc0]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088dc0]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180088dc0]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x90]
call fcn.180032440
mov eax, dword [rsp + 0x40]
jmp 0x1800372e9
mov edx, 1
lea rcx, [rsp + 0x88]
call fcn.18003cfc0
lea rcx, [rsp + 0x88]
call fcn.180011480
nop
mov eax, 1
mov word [rsp + 0x20], ax
movsx rax, word [rsp + 0x20]
lea rcx, [0x180088dc0]
cmp dword [rcx + rax*4], 1
jne 0x18003703f
movsx rax, word [rsp + 0x20]
lea rcx, [0x180088dc0]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x20]
lea rdx, [0x180088dc0]
mov dword [rdx + rcx*4], eax
mov dword [rsp + 0xa0], 0
jmp 0x180037059
lea rcx, [rsp + 0x88]
call fcn.18003b4c0
lea rcx, [rsp + 0x90]
call fcn.180011c00
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x88]
call fcn.180005170
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov qword [rsp + 0x68], rcx
lea r9, [rsp + 0xa0]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jne 0x180037283
cmp dword [rsp + 0xa0], 0
je 0x180037283
mov edx, 1
lea rcx, [rsp + 0x98]
call fcn.18003cfc0
lea rcx, [rsp + 0x98]
call fcn.180011480
nop
lea rcx, [rsp + 0x98]
call fcn.180005170
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1800318a0
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x98]
call fcn.180011c00
test rax, rax
je 0x180037241
lea rcx, [rsp + 0x98]
call fcn.180011c00
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
lea r8, [rsp + 0x80]
mov edx, 1
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x70]
test eax, eax
jl 0x180037241
cmp qword [rsp + 0x80], 0
je 0x180037241
mov edx, 1
lea rcx, [rsp + 0xa8]
call fcn.18003cfc0
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xa8]
call fcn.18001c170
nop
mov r8, qword [rsp + 0xe8]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0xe0]
call fcn.180035770
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0xa8]
call fcn.1800119b0
nop
lea rcx, [rsp + 0x98]
call fcn.180032440
nop
lea rcx, [rsp + 0x88]
call fcn.180032440
nop
lea rcx, [rsp + 0x90]
call fcn.180032440
mov eax, dword [rsp + 0x48]
jmp 0x1800372e9
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180037271
xor r9d, r9d
lea r8, [0x1800758b0]
lea rdx, [0x1800758b8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
lea rcx, [rsp + 0x98]
call fcn.180032440
jmp 0x18003704c
mov eax, SafeArrayDestroy
mov word [rsp + 0x24], ax
movsx rax, word [rsp + 0x24]
lea rcx, [0x180088dc0]
cmp dword [rcx + rax*4], 1
jne 0x1800372c2
movsx rax, word [rsp + 0x24]
lea rcx, [0x180088dc0]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x24]
lea rdx, [0x180088dc0]
mov dword [rdx + rcx*4], eax
mov dword [rsp + 0x30], 0x80004005
lea rcx, [rsp + 0x88]
call fcn.180032440
nop
lea rcx, [rsp + 0x90]
call fcn.180032440
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18004e350
add rsp, 0xd8
ret