Function at 0x18003f780
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 qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1800881a0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x44], 0xffffffff
cmp qword [rsp + 0x88], 0
jne 0x18003f7ec
mov rcx, qword [rsp + 0x80]
call fcn.18001bf00
nop
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
jmp 0x18003fcb0
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.180019030
lea rcx, [rsp + 0x50]
call fcn.18001bf00
nop
xor eax, eax
cmp eax, 1
je 0x18003fc81
cmp qword [rsp + 0x90], 0
je 0x18003f836
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax]
test eax, eax
jne 0x18003f83b
cmp qword [rsp + 0x90], 0xffffffffffffffff
jne 0x18003f83b
jmp 0x18003fc81
cmp qword [rsp + 0x90], 0xffffffffffffffff
je 0x18003f859
mov rax, qword [rsp + 0x90]
dec rax
mov qword [rsp + 0x90], rax
mov eax, 2
mov word [rsp + 0x24], ax
movsx rax, word [rsp + 0x24]
lea rcx, [0x180087dc0]
cmp dword [rcx + rax*4], 1
jne 0x18003f898
movsx rax, word [rsp + 0x24]
lea rcx, [0x180087dc0]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x24]
lea rdx, [0x180087dc0]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
movzx eax, byte [rsp + 0x20]
and eax, 0x80
test eax, eax
je 0x18003fbfb
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18003f8fb
xor r9d, r9d
lea r8, [0x18006ed18]
lea rdx, [0x18006ed20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp qword [rsp + 0x90], 2
jb 0x18003f9f0
movzx eax, byte [rsp + 0x20]
and eax, 0xf0
cmp eax, 0xe0
jne 0x18003f9f0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
and eax, 0xc0
cmp eax, 0x80
jne 0x18003f9f0
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
and eax, 0xc0
cmp eax, 0x80
jne 0x18003f9f0
movzx eax, byte [rsp + 0x20]
and eax, 0xf
shl eax, 0xc
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x88]
movsx ecx, byte [rdx + rcx]
and ecx, 0x3f
shl ecx, 6
or eax, ecx
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x88]
movsx ecx, byte [rdx + rcx]
and ecx, 0x3f
or eax, ecx
movzx edx, ax
lea rcx, [rsp + 0x50]
call fcn.180023840
cmp qword [rsp + 0x90], 0xffffffffffffffff
je 0x18003f9d7
mov rax, qword [rsp + 0x90]
sub rax, 2
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x88]
add rax, 2
mov qword [rsp + 0x88], rax
jmp 0x18003f806
cmp qword [rsp + 0x90], 1
jb 0x18003fb6f
movzx eax, byte [rsp + 0x20]
and eax, 0xe0
cmp eax, 0xc0
jne 0x18003fb6f
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
movsx eax, byte [rcx + rax]
and eax, 0xc0
cmp eax, 0x80
jne 0x18003fb6f
movzx eax, byte [rsp + 0x20]
and eax, 0x3f
shl eax, 6
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x88]
movsx ecx, byte [rdx + rcx]
and ecx, 0x3f
or eax, ecx
movzx edx, ax
lea rcx, [rsp + 0x50]
call fcn.180023840
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087dc0]
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, [0x180087dc0]
movsxd rdx, dword [rsp + 0x3c]
lea r8, [0x180087dc0]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087dc0]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087dc0]
mov dword [rdx + rcx], eax
cmp qword [rsp + 0x90], 0xffffffffffffffff
je 0x18003faf8
mov rax, qword [rsp + 0x90]
dec rax
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x2c], 1
mov eax, dword [rsp + 0x2c]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18003fb3a
xor r9d, r9d
lea r8, [0x18006ed18]
lea rdx, [0x18006ed20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x18003f806
cmp qword [rsp + 0x90], 1
jb 0x18003fbf6
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax]
and eax, 0xc0
cmp eax, 0x80
jne 0x18003fbf6
cmp qword [rsp + 0x90], 0xffffffffffffffff
je 0x18003fbaf
mov rax, qword [rsp + 0x90]
dec rax
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18003fbf1
xor r9d, r9d
lea r8, [0x18006ed18]
lea rdx, [0x18006ed20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x18003fb6f
jmp 0x18003fc7c
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087dc0]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x34], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087dc0]
movsxd rdx, dword [rsp + 0x34]
lea r8, [0x180087dc0]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087dc0]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087dc0]
mov dword [rdx + rcx], eax
movzx eax, byte [rsp + 0x20]
movzx edx, ax
lea rcx, [rsp + 0x50]
call fcn.180023840
jmp 0x18003f806
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
call fcn.18001bd80
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x50]
call fcn.180011730
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18004d370
add rsp, 0x78
ret