Function at 0x180045ae0
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, 0x198
mov qword [rsp + 0x120], 0xfffffffffffffffe
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x64], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
movsxd rdx, dword [rsp + 0x64]
lea r8, [0x180087f80]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087f80]
mov dword [rdx + rcx], eax
mov rcx, qword [rsp + 0x1a8]
call fcn.18004c180
mov rcx, qword [rsp + 0x1b0]
mov ecx, dword [rcx]
or ecx, eax
mov dword [rsp + 0x40], ecx
mov rax, qword [rsp + 0x1b0]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x1a0]
call fcn.18004bfc0
mov rcx, qword [rsp + 0x1a0]
call fcn.18004bee0
and eax, 0x80
test eax, eax
je 0x180045bf4
mov rcx, qword [rsp + 0x1a8]
call fcn.18004bee0
and eax, 3
mov rcx, qword [rsp + 0x1b0]
mov r8d, dword [rcx]
mov edx, eax
mov rcx, qword [rsp + 0x1a0]
call fcn.18004c0e0
jmp 0x180045c2f
mov rcx, qword [rsp + 0x1a0]
call fcn.180024ce0
cmp qword [rax], 0
je 0x180045c18
mov rcx, qword [rsp + 0x1a0]
call fcn.18004c180
test eax, eax
jne 0x180045c2f
mov rax, qword [rsp + 0x1b0]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x1a0]
call fcn.18004c140
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax]
and eax, 0x800000
test eax, eax
je 0x180045ca1
mov dword [rsp + 0x70], 1
mov eax, dword [rsp + 0x70]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180045c71
xor r9d, r9d
lea r8, [0x180077ac4]
lea rdx, [0x180077acc]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rax, qword [rsp + 0x1b0]
add rax, 4
mov rdx, qword [rsp + 0x1a8]
mov rcx, rax
call fcn.180044540
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x180045ca1
mov eax, dword [rsp + 0x48]
jmp 0x180046486
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax]
and eax, 0x800000
test eax, eax
je 0x180045cbe
mov dword [rsp + 0x3c], 0x800001
jmp 0x180045cc6
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x6c], eax
xor r9d, r9d
mov r8, qword [rsp + 0x1a0]
mov edx, 1
lea rcx, [rsp + 0xc0]
call fcn.18004b7c0
xor r9d, r9d
mov r8, qword [rsp + 0x1a8]
mov edx, dword [rsp + 0x6c]
lea rcx, [rsp + 0x130]
call fcn.18004b7c0
lea rcx, [rsp + 0x130]
call fcn.18004bf00
mov r8d, SafeArrayGetDim
mov rdx, qword [rsp + 0x1b0]
mov rcx, rax
call fcn.18004c670
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax]
and eax, 0x20000
test eax, eax
je 0x180045e69
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax]
and eax, 0x200000
test eax, eax
je 0x180045dd8
call fcn.18004c030
and eax, 0x3f
mov r8d, eax
mov rax, qword [rsp + 0x1b0]
mov edx, dword [rax]
lea rcx, [rsp + 0x1b8]
call fcn.18004bd60
mov eax, eax
mov rcx, qword [rsp + 0x1c0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
call fcn.18004c030
and eax, 0x3f
mov r8d, eax
mov rax, qword [rsp + 0x1b0]
mov edx, dword [rax]
lea rcx, [rsp + 0x1b8]
call fcn.18004bd60
mov eax, eax
mov rcx, qword [rsp + 0x1c0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
jmp 0x180045e46
xor r8d, r8d
mov rax, qword [rsp + 0x1b0]
mov edx, dword [rax]
lea rcx, [rsp + 0x1b8]
call fcn.18004bd60
mov eax, eax
mov rcx, qword [rsp + 0x1c0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
xor r8d, r8d
mov rax, qword [rsp + 0x1b0]
mov edx, dword [rax]
lea rcx, [rsp + 0x1b8]
call fcn.18004bd60
mov eax, eax
mov rcx, qword [rsp + 0x1c0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, dword [rsp + 0x1b8]
call fcn.18004c0b0
mov ecx, dword [rsp + 0x1b8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x1b8], eax
mov dword [rsp + 0x2c], 0
mov eax, 7
mov word [rsp + 0x34], ax
movsx rax, word [rsp + 0x34]
lea rcx, [0x180087f80]
cmp dword [rcx + rax*4], 1
jne 0x180045eb0
movsx rax, word [rsp + 0x34]
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x34]
lea rdx, [0x180087f80]
mov dword [rdx + rcx*4], eax
mov dword [rsp + 0x58], 1
mov eax, dword [rsp + 0x58]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180045edf
xor r9d, r9d
lea r8, [0x180077adc]
lea rdx, [0x180077ae4]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x130]
call fcn.18004be10
test rax, rax
je 0x1800463ed
mov dword [rsp + 0x2c], 0
lea rdx, [rsp + 0x2c]
lea rcx, [rsp + 0x130]
call fcn.180044e80
mov byte [rsp + 0x22], al
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x74], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
movsxd rdx, dword [rsp + 0x74]
lea r8, [0x180087f80]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087f80]
mov dword [rdx + rcx], eax
mov dword [rsp + 0x5c], 1
mov eax, dword [rsp + 0x5c]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180045fba
xor r9d, r9d
lea r8, [0x180077ae8]
lea rdx, [0x180077af0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [rsp + 0x2c]
lea rcx, [rsp + 0x130]
call fcn.180044e80
mov byte [rsp + 0x21], al
lea rdx, [rsp + 0x2c]
lea rcx, [rsp + 0x130]
call fcn.180044e80
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x22]
and eax, 0xfc
sar eax, 2
mov r8d, eax
mov rax, qword [rsp + 0x1b0]
mov edx, dword [rax]
lea rcx, [rsp + 0x1b8]
call fcn.18004bd60
mov eax, eax
mov rcx, qword [rsp + 0x1c0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
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 + 0x1b0]
mov edx, dword [rax]
lea rcx, [rsp + 0x1b8]
call fcn.18004bd60
mov eax, eax
mov rcx, qword [rsp + 0x1c0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
cmp dword [rsp + 0x2c], 1
jle 0x1800460d3
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 + 0x1b0]
mov edx, dword [rax]
lea rcx, [rsp + 0x1b8]
call fcn.18004bd60
mov eax, eax
mov rcx, qword [rsp + 0x1c0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
cmp dword [rsp + 0x2c], 2
jle 0x180046119
movzx eax, byte [rsp + 0x20]
and eax, 0x3f
mov r8d, eax
mov rax, qword [rsp + 0x1b0]
mov edx, dword [rax]
lea rcx, [rsp + 0x1b8]
call fcn.18004bd60
mov eax, eax
mov rcx, qword [rsp + 0x1c0]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
mov dword [rsp + 0x60], 1
mov eax, dword [rsp + 0x60]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180046148
xor r9d, r9d
lea r8, [0x180077af4]
lea rdx, [0x180077afc]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
movzx eax, byte [rsp + 0x20]
and eax, 0xaa
test eax, eax
je 0x180046160
mov dword [rsp + 0x44], 1
jmp 0x180046168
mov dword [rsp + 0x44], 0
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax]
xor eax, 0x420000
and eax, 0x420000
test eax, eax
jne 0x1800462f4
mov rax, qword [0x180087eb8]
cmp qword [rsp + 0x50], rax
jbe 0x1800462f4
cmp qword [0x1800d3f70], 0
jne 0x180046221
mov ecx, 0x38
call fcn.18004c478
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1800461f6
mov r8d, SafeArrayGetElement
lea rdx, str.___________:
mov rcx, qword [rsp + 0x80]
call fcn.180042a30
mov qword [rsp + 0x88], rax
jmp 0x180046202
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [0x1800d3f70], rax
mov qword [rsp + 0x50], 0
call fcn.18004c030
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 + 0xa0], rax
mov qword [rsp + 0x78], 0
jmp 0x18004626a
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rsp + 0x78], rax
jae 0x1800462f4
mov rcx, qword [0x1800d3f70]
call fcn.180006e60
mov qword [rsp + 0x98], rax
call fcn.18004c030
mov eax, eax
mov qword [rsp + 0xa8], rax
mov rcx, qword [0x1800d3f70]
call fcn.180024ce0
mov qword [rsp + 0x90], rax
xor edx, edx
mov rcx, qword [rsp + 0xa8]
mov rax, rcx
mov rcx, qword [rsp + 0x90]
div qword [rcx]
mov rax, rdx
mov rcx, qword [rsp + 0x98]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
jmp 0x18004625d
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax]
xor eax, 0x60000
and eax, 0x60000
test eax, eax
jne 0x1800463e8
movzx eax, byte [rsp + 0x20]
and eax, 7
cmp eax, 7
jne 0x1800463e8
mov eax, 8
mov word [rsp + 0x28], ax
movsx rax, word [rsp + 0x28]
lea rcx, [0x180087f80]
cmp dword [rcx + rax*4], 1
jne 0x180046360
movsx rax, word [rsp + 0x28]
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x28]
lea rdx, [0x180087f80]
mov dword [rdx + rcx*4], eax
movzx eax, byte [rsp + 0x20]
and eax, 0xa0
cmp eax, 0xa0
jne 0x180046385
mov edx, 0x20
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
jmp 0x1800463e8
mov edx, SafeArrayGetDim
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
mov eax, 1
mov word [rsp + 0x24], ax
movsx rax, word [rsp + 0x24]
lea rcx, [0x180087f80]
cmp dword [rcx + rax*4], 1
jne 0x1800463d6
movsx rax, word [rsp + 0x24]
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x24]
lea rdx, [0x180087f80]
mov dword [rdx + rcx*4], eax
mov edx, 0xa
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
jmp 0x180045ee8
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax]
and eax, 0x10000
test eax, eax
je 0x180046437
mov dword [rsp + 0x38], 0
jmp 0x180046414
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, 3
sub eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x38], eax
jge 0x180046437
mov edx, 0x3d
lea rcx, [rsp + 0xc0]
call fcn.1800452b0
jmp 0x18004640a
lea rcx, [rsp + 0xc0]
call fcn.180045930
movzx eax, al
test eax, eax
jne 0x180046452
mov eax, 0xfffffffc
jmp 0x180046486
xor eax, eax
jmp 0x180046486
add rsp, 0x198
ret