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

Disassembly:
push rdi
push r13
sub rsp, 0x68
cmp byte [rcx + 0x1e], 0
mov rdi, rcx
mov r13, qword [rcx]
mov qword [rsp + 0x98], r13
jne 0x14014a79d
cmp byte [r13 + 0x51], 0
jne 0x14014a790
cmp dword [rcx + 0x4c], 0
jne 0x14014a790
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], r12
call fcn.14014ebd0
mov rsi, rax
mov r12d, 1
test rax, rax
je 0x14014a757
nop word [rax + rax]
movsxd rcx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea edx, [rcx - 1]
cmp edx, dword [rax + 0x64]
jle 0x14014a349
mov rax, qword [rsi + 8]
lea rcx, [rcx + rcx*2]
cmp byte [rax + rcx*8 - 0x18], 0x3d
jne 0x14014a349
mov rcx, rsi
call fcn.140167e90
jmp 0x14014a320
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x16]
call fcn.140167a30
cmp byte [r13 + 0x51], 0
jne 0x14014a721
cmp dword [rdi + 0x16c], 0
jne 0x14014a385
cmp qword [rdi + 0x150], 0
je 0x14014a721
mov ecx, dword [rsi + 0x3c]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r15
test ecx, ecx
je 0x14014a3aa
mov rax, qword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
xor ebp, ebp
mov dword [rax + 0x64], ecx
cmp dword [r13 + 0x28], ebp
jle 0x14014a44b
mov ebx, r12d
lea r15, [rdi + 0x170]
xor r14d, r14d
nop dword [rax]
test dword [rdi + 0x16c], ebx
je 0x14014a439
mov edx, ebp
mov rcx, rsi
call fcn.140173330
mov rcx, qword [r13 + 0x20]
mov r9d, 0
test dword [rdi + 0x168], ebx
mov r8d, ebp
mov edx, 3
setne r9b
mov rax, qword [rcx + r14 + 0x18]
mov rcx, rsi
mov eax, dword [rax + 4]
mov dword [rsp + 0x28], eax
mov eax, dword [r15]
mov dword [rsp + 0x20], eax
call fcn.140167b10
cmp byte [r13 + 0xa1], 0
jne 0x14014a439
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x14014a439
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], r12b
inc ebp
rol ebx, 1
add r15, 4
add r14, 0x20
cmp ebp, dword [r13 + 0x28]
jl 0x14014a3d0
xor r14d, r14d
cmp dword [rdi + 0x1f0], r14d
jle 0x14014a4fe
xor r15d, r15d
nop
mov rax, qword [rdi + 0x268]
mov rbx, qword [r15 + rax]
mov rbx, qword [rbx + 0x58]
test rbx, rbx
je 0x14014a482
cmp qword [rbx], r13
je 0x14014a482
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14014a474
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
mov rcx, rsi
call fcn.140167a30
mov r8, qword [rsi + 8]
mov rcx, qword [rsi]
test r8, r8
je 0x14014a4ea
cmp byte [rcx + 0x51], 0
jne 0x14014a4ea
test eax, eax
jns 0x14014a4b8
mov eax, dword [rsi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbp, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbp + 0x10]
call fcn.1401255e0
test rbx, rbx
jne 0x14014a4df
mov qword [rbp + 0x10], rbx
mov byte [rbp + 1], bl
jmp 0x14014a4ea
mov qword [rbp + 0x10], rbx
mov byte [rbp + 1], 0xf6
inc dword [rbx + 0x18]
inc r14d
add r15, 8
cmp r14d, dword [rdi + 0x1f0]
jl 0x14014a460
mov rcx, rdi
mov dword [rdi + 0x1f0], 0
call fcn.14014ebd0
xor ebp, ebp
mov r14, rax
cmp dword [rdi + 0x1ac], ebp
jle 0x14014a63e
xor r12d, r12d
lea r13d, [rbp + 1]
nop dword [rax + rax]
mov rax, qword [rdi + 0x1b0]
movsxd rbx, dword [r14 + 0x3c]
mov ecx, dword [r12 + rax]
mov r15, qword [r12 + rax + 0x10]
mov dword [rsp + 0x80], ecx
movzx ecx, byte [r12 + rax + 8]
mov eax, dword [r12 + rax + 4]
mov dword [rsp + 0x88], eax
mov rax, qword [r14 + 0x30]
mov dword [rsp + 0x90], ecx
cmp dword [rax + 0x60], ebx
jg 0x14014a581
mov edx, r13d
mov rcx, r14
call fcn.140127a10
test eax, eax
je 0x14014a581
mov ebx, r13d
jmp 0x14014a5c2
mov rax, qword [r14 + 8]
lea rcx, [rbx + rbx*2]
inc dword [r14 + 0x3c]
mov edx, dword [rsp + 0x80]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x88]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsp + 0x90]
mov dword [rax + rcx*8 + 0xc], edx
mov word [rax + rcx*8], SysAllocStringByteLen
mov byte [rax + rcx*8 + 3], 0
mov qword [rax + rcx*8 + 0x10], 0
mov r8, qword [r14 + 8]
mov rcx, qword [r14]
test r8, r8
je 0x14014a611
cmp byte [rcx + 0x51], 0
jne 0x14014a611
test ebx, ebx
jns 0x14014a5de
mov ebx, dword [r14 + 0x3c]
dec ebx
movsxd rax, ebx
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.1401255e0
test r15, r15
jne 0x14014a607
mov qword [rbx + 0x10], r15
mov byte [rbx + 1], r15b
jmp 0x14014a61e
mov qword [rbx + 0x10], r15
mov byte [rbx + 1], 0xfe
jmp 0x14014a61e
mov r8, r15
mov edx, 0xfffffffe
call fcn.1401255e0
inc ebp
add r12, 0x18
cmp ebp, dword [rdi + 0x1ac]
jl 0x14014a530
mov r13, qword [rsp + 0x98]
mov r12d, 1
mov rcx, rdi
call fcn.140139ec0
mov r15, qword [rdi + 0x150]
test r15, r15
je 0x14014a6c1
xor ebp, ebp
mov byte [rdi + 0x23], 0
cmp dword [r15], ebp
jle 0x14014a6c1
xor r14d, r14d
mov rax, qword [r15 + 8]
mov rdx, qword [r14 + rax]
mov ebx, dword [r14 + rax + 0x20]
test rdx, rdx
je 0x14014a686
cmp byte [rdx], 0x9f
jne 0x14014a686
mov r8d, dword [rdx + 0x2c]
mov edx, 0x1f
mov rcx, qword [rdi + 0x10]
jmp 0x14014a6a6
mov r8d, ebx
mov rcx, rdi
call fcn.140146d10
cmp eax, ebx
je 0x14014a6b6
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14014a6b6
mov r8d, eax
mov edx, 0x20
mov r9d, ebx
mov dword [rsp + 0x20], 0
call fcn.140167a30
inc ebp
add r14, 0x28
cmp ebp, dword [r15]
jl 0x14014a660
mov rax, qword [rsi + 0x30]
movsxd rbx, dword [rsi + 0x3c]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
cmp dword [rax + 0x60], ebx
jg 0x14014a6ec
mov edx, r12d
mov rcx, rsi
call fcn.140127a10
test eax, eax
jne 0x14014a71c
mov rax, qword [rsi + 8]
lea rcx, [rbx + rbx*2]
inc dword [rsi + 0x3c]
mov word [rax + rcx*8], SafeArrayGetDim
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], 0
mov qword [rax + rcx*8 + 8], 1
mov qword [rax + rcx*8 + 0x10], 0
mov rbx, qword [rsp + 0x60]
cmp dword [rdi + 0x4c], 0
jne 0x14014a757
cmp byte [r13 + 0x51], 0
jne 0x14014a757
cmp qword [rdi + 0x1b8], 0
je 0x14014a742
cmp dword [rdi + 0x50], 0
jne 0x14014a742
mov dword [rdi + 0x50], r12d
mov rdx, rdi
mov rcx, rsi
call fcn.140170530
mov byte [rdi + 0x1c], 0
mov r12d, 0x65
mov dword [rdi + 0x18], r12d
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov qword [rdi + 0x50], 0
mov dword [rdi + 0x58], 0
mov dword [rdi + 0x1e4], 0
mov dword [rdi + 0x16c], 0
add rsp, 0x68
pop r13
pop rdi
ret
cmp dword [rcx + 0x18], 0
jne 0x14014a79d
mov dword [rcx + 0x18], 1
add rsp, 0x68
pop r13
pop rdi
ret