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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x48]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180047c72
xor r9d, r9d
lea r8, [0x1800784ec]
lea rdx, [0x1800784f4]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov dword [rsp + 0x4c], 1
mov eax, dword [rsp + 0x4c]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180047ca1
xor r9d, r9d
lea r8, [0x1800784f8]
lea rdx, [0x180078500]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rax, [0x18004aae0]
mov qword [rsp + 0x98], rax
lea rax, [0x18004a450]
mov qword [rsp + 0xa0], rax
lea rax, [0x18004a4b0]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088f80]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x40], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088f80]
movsxd rdx, dword [rsp + 0x40]
lea r8, [0x180088f80]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088f80]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180088f80]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x118]
and eax, 0x80000
test eax, eax
je 0x180047d76
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x60]
call fcn.180049b00
test eax, eax
jge 0x180047d76
mov eax, 0xfffffffd
jmp 0x1800480dd
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.180049b00
mov dword [rsp + 0x34], eax
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.180049b00
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x34], 0
jl 0x180047db8
cmp dword [rsp + 0x2c], 0
jl 0x180047db8
cmp dword [rsp + 0x34], 1
jg 0x180047db8
cmp dword [rsp + 0x2c], 3
jle 0x180047dc2
mov eax, 0xfffffffd
jmp 0x1800480dd
movsxd rax, dword [rsp + 0x2c]
cmp qword [rsp + rax*8 + 0x98], 0
je 0x180047dea
movsxd rax, dword [rsp + 0x2c]
lea rcx, [rsp + 0x60]
call qword [rsp + rax*8 + 0x98]
movzx eax, al
test eax, eax
jne 0x180047df4
mov eax, 0xfffffffd
jmp 0x1800480dd
cmp dword [rsp + 0x34], 0
je 0x180047dfd
jmp 0x180047e60
mov dword [rsp + 0x54], 1
mov eax, dword [rsp + 0x54]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180047e2c
xor r9d, r9d
lea r8, [0x180078510]
lea rdx, [0x180078518]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov dword [rsp + 0x44], 1
mov eax, dword [rsp + 0x44]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180047e5b
xor r9d, r9d
lea r8, [0x18007851c]
lea rdx, [0x180078524]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x180047d76
mov dword [rsp + 0x7c], 0
mov eax, dword [rsp + 0x118]
and eax, 0x80000
test eax, eax
je 0x1800480be
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180047eab
xor r9d, r9d
lea r8, [0x180078528]
lea rdx, [0x180078538]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov dword [rsp + 0x3c], 0
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x60]
call fcn.180049b00
mov dword [rsp + 0x30], eax
mov eax, reloc.OLEAUT32.dll_SafeArrayDestroy
mov word [rsp + 0x24], ax
movsx rax, word [rsp + 0x24]
lea rcx, [0x180088f80]
cmp dword [rcx + rax*4], 1
jne 0x180047f05
movsx rax, word [rsp + 0x24]
lea rcx, [0x180088f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x24]
lea rdx, [0x180088f80]
mov dword [rdx + rcx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088f80]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x58], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088f80]
movsxd rdx, dword [rsp + 0x58]
lea r8, [0x180088f80]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088f80]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180088f80]
mov dword [rdx + rcx], eax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x60]
call fcn.180049b00
shl eax, 0x10
mov ecx, dword [rsp + 0x30]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x110]
call fcn.18004d200
mov rcx, rax
call fcn.1800251d0
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x110]
call fcn.18004d200
mov rcx, rax
call fcn.180001ce0
mov rcx, qword [rsp + 0x80]
mov r9, qword [rcx]
mov r8, rax
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.180043220
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x3c]
call fcn.180044e80
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0xc0]
call fcn.18001c6c0
cmp dword [rsp + 0x38], 0
je 0x18004802c
mov eax, dword [rsp + 0x38]
jmp 0x1800480dd
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x3c], eax
je 0x180048040
mov eax, 0xfffffffd
jmp 0x1800480dd
mov eax, 1
mov word [rsp + 0x20], ax
movsx rax, word [rsp + 0x20]
lea rcx, [0x180088f80]
cmp dword [rcx + rax*4], 1
jne 0x18004807f
movsx rax, word [rsp + 0x20]
lea rcx, [0x180088f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x20]
lea rdx, [0x180088f80]
mov dword [rdx + rcx*4], eax
mov eax, SafeArrayDestroy
mov word [rsp + 0x28], ax
movsx rax, word [rsp + 0x28]
lea rcx, [0x180088f80]
cmp dword [rcx + rax*4], 1
jne 0x1800480be
movsx rax, word [rsp + 0x28]
lea rcx, [0x180088f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x28]
lea rdx, [0x180088f80]
mov dword [rdx + rcx*4], eax
xor edx, edx
mov rcx, qword [rsp + 0x110]
call fcn.18004cec0
movzx eax, al
test eax, eax
je 0x1800480db
mov eax, 0xfffffffc
jmp 0x1800480dd
xor eax, eax
add rsp, 0x108
ret