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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x188]
call fcn.18004d1e0
mov rcx, qword [rsp + 0x190]
mov ecx, dword [rcx]
or ecx, eax
mov dword [rsp + 0x38], ecx
mov rax, qword [rsp + 0x190]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x180]
call fcn.18004d020
mov rcx, qword [rsp + 0x180]
call fcn.18004cf10
and eax, 0x80
test eax, eax
je 0x1800466e5
mov rcx, qword [rsp + 0x188]
call fcn.18004cf10
and eax, 3
mov rcx, qword [rsp + 0x190]
mov r8d, dword [rcx]
mov edx, eax
mov rcx, qword [rsp + 0x180]
call fcn.18004d140
jmp 0x180046720
mov rcx, qword [rsp + 0x180]
call fcn.1800251d0
cmp qword [rax], 0
je 0x180046709
mov rcx, qword [rsp + 0x180]
call fcn.18004d1e0
test eax, eax
jne 0x180046720
mov rax, qword [rsp + 0x190]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x180]
call fcn.18004d1a0
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
and eax, 0x800000
test eax, eax
je 0x180046763
mov rax, qword [rsp + 0x190]
add rax, 4
mov rdx, qword [rsp + 0x188]
mov rcx, rax
call fcn.180045030
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x180046763
mov eax, dword [rsp + 0x44]
jmp 0x180046e5b
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
and eax, 0x800000
test eax, eax
je 0x180046780
mov dword [rsp + 0x3c], 0x800001
jmp 0x180046788
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x64], eax
mov eax, 9
mov word [rsp + 0x2c], ax
movsx rax, word [rsp + 0x2c]
lea rcx, [0x180088f80]
cmp dword [rcx + rax*4], 1
jne 0x1800467cf
movsx rax, word [rsp + 0x2c]
lea rcx, [0x180088f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x2c]
lea rdx, [0x180088f80]
mov dword [rdx + rcx*4], eax
xor r9d, r9d
mov r8, qword [rsp + 0x180]
mov edx, 1
lea rcx, [rsp + 0xa0]
call fcn.18004c780
xor r9d, r9d
mov r8, qword [rsp + 0x188]
mov edx, dword [rsp + 0x64]
lea rcx, [rsp + 0x110]
call fcn.18004c780
lea rcx, [rsp + 0x110]
call fcn.18004cf30
mov r8d, SafeArrayGetDim
mov rdx, qword [rsp + 0x190]
mov rcx, rax
call fcn.18004d650
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
and eax, 0x20000
test eax, eax
je 0x18004696a
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
and eax, 0x200000
test eax, eax
je 0x1800468d9
call fcn.18004d090
and eax, 0x3f
mov r8d, eax
mov rax, qword [rsp + 0x190]
mov edx, dword [rax]
lea rcx, [rsp + 0x198]
call fcn.18004cd20
mov eax, eax
mov rcx, qword [rsp + 0x1a0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
call fcn.18004d090
and eax, 0x3f
mov r8d, eax
mov rax, qword [rsp + 0x190]
mov edx, dword [rax]
lea rcx, [rsp + 0x198]
call fcn.18004cd20
mov eax, eax
mov rcx, qword [rsp + 0x1a0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
jmp 0x180046947
xor r8d, r8d
mov rax, qword [rsp + 0x190]
mov edx, dword [rax]
lea rcx, [rsp + 0x198]
call fcn.18004cd20
mov eax, eax
mov rcx, qword [rsp + 0x1a0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
xor r8d, r8d
mov rax, qword [rsp + 0x190]
mov edx, dword [rax]
lea rcx, [rsp + 0x198]
call fcn.18004cd20
mov eax, eax
mov rcx, qword [rsp + 0x1a0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, dword [rsp + 0x198]
call fcn.18004d110
mov ecx, dword [rsp + 0x198]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x198], eax
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x110]
call fcn.18004ce40
test rax, rax
je 0x180046d54
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x110]
call fcn.180045af0
mov byte [rsp + 0x22], al
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x110]
call fcn.180045af0
mov byte [rsp + 0x21], al
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x110]
call fcn.180045af0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x22]
and eax, 0xfc
sar eax, 2
mov r8d, eax
mov rax, qword [rsp + 0x190]
mov edx, dword [rax]
lea rcx, [rsp + 0x198]
call fcn.18004cd20
mov eax, eax
mov rcx, qword [rsp + 0x1a0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
movzx eax, byte [rsp + 0x22]
and eax, 3
shl eax, 4
movzx ecx, byte [rsp + 0x21]
and ecx, 0xf0
sar ecx, 4
add eax, ecx
mov r8d, eax
mov rax, qword [rsp + 0x190]
mov edx, dword [rax]
lea rcx, [rsp + 0x198]
call fcn.18004cd20
mov eax, eax
mov rcx, qword [rsp + 0x1a0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
cmp dword [rsp + 0x24], 1
jle 0x180046ac8
movzx eax, byte [rsp + 0x21]
and eax, 0xf
movzx ecx, byte [rsp + 0x20]
and ecx, 0xc0
sar ecx, 6
lea eax, [rcx + rax*4]
mov r8d, eax
mov rax, qword [rsp + 0x190]
mov edx, dword [rax]
lea rcx, [rsp + 0x198]
call fcn.18004cd20
mov eax, eax
mov rcx, qword [rsp + 0x1a0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
cmp dword [rsp + 0x24], 2
jle 0x180046b0e
movzx eax, byte [rsp + 0x20]
and eax, 0x3f
mov r8d, eax
mov rax, qword [rsp + 0x190]
mov edx, dword [rax]
lea rcx, [rsp + 0x198]
call fcn.18004cd20
mov eax, eax
mov rcx, qword [rsp + 0x1a0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
movzx eax, byte [rsp + 0x20]
and eax, 0xaa
test eax, eax
je 0x180046b26
mov dword [rsp + 0x40], 1
jmp 0x180046b2e
mov dword [rsp + 0x40], 0
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
xor eax, 0x420000
and eax, 0x420000
test eax, eax
jne 0x180046ce1
mov rax, qword [0x180088eb8]
cmp qword [rsp + 0x48], rax
jbe 0x180046ce1
mov eax, SafeArrayGetDim
mov word [rsp + 0x28], ax
movsx rax, word [rsp + 0x28]
lea rcx, [0x180088f80]
cmp dword [rcx + rax*4], 1
jne 0x180046bb0
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
cmp qword [0x1800d53b0], 0
jne 0x180046c14
mov ecx, 0x38
call fcn.18004d464
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180046bef
mov r8d, SafeArrayGetElement
lea rdx, str.___________:
mov rcx, qword [rsp + 0x68]
call fcn.1800434b0
mov qword [rsp + 0x70], rax
jmp 0x180046bf8
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [0x1800d53b0], rax
mov qword [rsp + 0x48], 0
call fcn.18004d090
movzx ecx, byte [rsp + 0x21]
add eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantCopyInd]
xor edx, edx
div ecx
mov eax, edx
add eax, 0x3e8
mov eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], 0
jmp 0x180046c5a
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x58], rax
jae 0x180046ce1
mov rcx, qword [0x1800d53b0]
call fcn.180001ce0
mov qword [rsp + 0x80], rax
call fcn.18004d090
mov eax, eax
mov qword [rsp + 0x90], rax
mov rcx, qword [0x1800d53b0]
call fcn.1800251d0
mov qword [rsp + 0x98], rax
xor edx, edx
mov rcx, qword [rsp + 0x90]
mov rax, rcx
mov rcx, qword [rsp + 0x98]
div qword [rcx]
mov rax, rdx
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
jmp 0x180046c4d
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
xor eax, 0x60000
and eax, 0x60000
test eax, eax
jne 0x180046d4f
movzx eax, byte [rsp + 0x20]
and eax, 7
cmp eax, 7
jne 0x180046d4f
movzx eax, byte [rsp + 0x20]
and eax, 0xa0
cmp eax, 0xa0
jne 0x180046d2b
mov edx, 0x20
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
jmp 0x180046d4f
mov edx, SafeArrayGetDim
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
mov edx, 0xa
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
jmp 0x18004697b
mov rax, qword [rsp + 0x190]
mov eax, dword [rax]
and eax, 0x10000
test eax, eax
je 0x180046dcd
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180046d96
xor r9d, r9d
lea r8, [0x180078504]
lea rdx, [0x18007850c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov dword [rsp + 0x34], 0
jmp 0x180046daa
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, 3
sub eax, dword [rsp + 0x24]
cmp dword [rsp + 0x34], eax
jge 0x180046dcd
mov edx, 0x3d
lea rcx, [rsp + 0xa0]
call fcn.180045ef0
jmp 0x180046da0
lea rcx, [rsp + 0xa0]
call fcn.1800464c0
movzx eax, al
test eax, eax
jne 0x180046de8
mov eax, 0xfffffffc
jmp 0x180046e5b
xor eax, eax
jmp 0x180046e5b
add rsp, 0x178
ret