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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x38], 1
mov eax, SafeArrayUnaccessData
mov word [rsp + 0x24], ax
movsx rax, word [rsp + 0x24]
lea rcx, [0x180088f80]
cmp dword [rcx + rax*4], 1
jne 0x180049da0
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 rax, qword [rsp + 0x88]
add rax, 2
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x54], 0
je 0x18004a09d
mov eax, dword [rsp + 0x34]
and eax, 1
mov ecx, dword [rsp + 0x30]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
sar eax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x60]
movsx eax, word [rax]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x60]
add rax, 2
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x4c], 1
mov eax, dword [rsp + 0x4c]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180049e34
xor r9d, r9d
lea r8, [0x180078498]
lea rdx, [0x1800784a8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x2c]
jge 0x180049fbc
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
sub eax, ecx
and eax, 7
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1c], 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 + 0x5c], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088f80]
movsxd rdx, dword [rsp + 0x5c]
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, 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 + 0x44], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088f80]
movsxd rdx, dword [rsp + 0x44]
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 + 0x2c]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x90]
movsx eax, word [rcx + rax*2]
jmp 0x18004a197
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x48]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180049ffb
xor r9d, r9d
lea r8, [0x1800784b0]
lea rdx, [0x1800784b8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
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 + 0x50], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088f80]
movsxd rdx, dword [rsp + 0x50]
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 + 0x3c]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
shl eax, 1
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x30]
shl eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
jmp 0x180049db1
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
sub eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x18004a0b6
jmp 0x18004a192
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x10]
cmp dword [rax + 0x14], ecx
jne 0x18004a0d8
mov eax, 0xffffffff
jmp 0x18004a197
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 rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x14]
inc eax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x14], eax
cmp dword [rsp + 0x28], 8
jle 0x18004a18d
mov dword [rsp + 0x28], 8
jmp 0x180049db1
mov eax, 0xffffffff
add rsp, 0x78
ret