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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rax, qword [rdx]
xor edi, edi
movzx ebp, byte [rdx + 0x24]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
not ebp
and ebp, 1
mov dword [rsp + 0x34], edi
mov r13d, dword [rax]
mov r15, rcx
mov eax, dword [rdx + 8]
mov r12d, r13d
add r12d, ebp
mov dword [rsp + 0xa0], eax
add r12d, dword [rsp + 0xc8]
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x38], r12d
test eax, eax
je 0x1401e38ce
mov r14d, r9d
sub r14d, eax
jmp 0x1401e38db
mov eax, dword [rcx + 0x38]
lea r14d, [rax + 1]
add eax, r12d
mov dword [rcx + 0x38], eax
mov eax, dword [r8 + 0xc]
test eax, eax
je 0x1401e38e7
inc eax
jmp 0x1401e38eb
mov eax, dword [r8 + 8]
mov r9d, dword [rsp + 0xc0]
mov r8d, r14d
mov dword [rsp + 0xa8], eax
mov eax, dword [rcx + 0x44]
dec eax
mov dword [rcx + 0x44], eax
test r9d, r9d
mov dword [rdx + 0x1c], eax
mov ecx, 5
mov rdx, qword [rdx]
mov eax, 1
cmovne eax, ecx
mov rcx, r15
mov byte [rsp + 0x20], al
call fcn.1401fefe0
test ebp, ebp
je 0x1401e3985
movsxd rcx, dword [rbx + 0x90]
lea edx, [r14 + r13]
mov r8d, dword [rsi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x1401e3958
mov r9d, edx
mov dword [rsp + 0x20], edi
mov edx, 0x7e
mov rcx, rbx
call fcn.1401d32a0
jmp 0x1401e3985
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x7e
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
cmp dword [rsp + 0xd0], edi
jne 0x1401e39b2
mov eax, dword [rsp + 0xc8]
test eax, eax
jle 0x1401e39b2
mov edx, dword [rsp + 0xb8]
lea r8d, [r14 + r13]
add r8d, ebp
mov r9d, eax
mov rcx, r15
call fcn.1402009b0
mov eax, dword [rsp + 0xa0]
lea r13, [0x14037eae0]
test eax, eax
jle 0x1401e3c80
mov r8, qword [rsp + 0xb0]
mov r9d, r14d
mov rdx, rsi
mov dword [rsp + 0x20], r12d
mov rcx, r15
call fcn.1401d9db0
mov ecx, dword [r15 + 0x38]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
lea r12d, [rcx + 1]
add ecx, dword [rsi + 8]
mov dword [r15 + 0x38], ecx
mov ecx, eax
sub ecx, dword [rsi + 8]
lea r8d, [r14 + rax]
add ecx, ebp
mov dword [rsp + 0xd0], r12d
mov dword [rsp + 0xc0], ecx
test ebp, ebp
jne 0x1401e3a1c
mov r8d, dword [rsi + 0xc]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov eax, 0x78
test ebp, ebp
mov rcx, rbx
cmove edx, eax
call fcn.140229cc0
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rsi + 8]
mov dword [rsp + 0x3c], eax
cmp dword [rbx + 0x94], ecx
jg 0x1401e3a69
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, 0x5a
mov r8d, r12d
mov rcx, rbx
call fcn.1401d32a0
lea r12, [rbx + 0x88]
jmp 0x1401e3aa3
mov r8d, dword [rsp + 0xd0]
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
lea r12, [rbx + 0x88]
mov rax, qword [r12]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdi
mov ecx, dword [rsi + 0x18]
test ecx, ecx
jns 0x1401e3ab2
mov ecx, dword [rbx + 0x90]
dec ecx
mov rax, qword [rbx]
cmp byte [rax + 0x67], dil
je 0x1401e3ac0
mov rcx, r13
jmp 0x1401e3acf
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [r12]
lea rcx, [rax + rcx*8]
mov rax, qword [r15]
mov qword [rsp + 0x40], rcx
cmp byte [rax + 0x67], dil
jne 0x1401e3e19
mov rbp, qword [rcx + 0x10]
xor edx, edx
mov eax, dword [rsp + 0xc0]
add eax, dword [rsp + 0xc8]
mov dword [rcx + 8], eax
movzx r8d, word [rbp + 6]
mov rcx, qword [rbp + 0x18]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx]
cmp byte [rax + 0x67], dil
je 0x1401e3b2c
cmp qword [rax + 0x300], rdi
jne 0x1401e3b65
add dword [rbp], 0xffffffff
jne 0x1401e3b65
mov rcx, qword [rbp + 0x10]
mov rdx, rbp
call fcn.1401fb370
jmp 0x1401e3b65
movsxd rax, dword [rbx + 0x90]
lea rdx, [rax + rax*2]
mov rax, qword [r12]
lea rdx, [rdx - 3]
cmp byte [rax + rdx*8 + 1], dil
lea rdx, [rax + rdx*8]
je 0x1401e3b5d
mov r9d, 0xfffffff8
mov r8, rbp
mov rcx, rbx
call fcn.140249ac0
jmp 0x1401e3b65
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xf8
movzx r9d, word [rbp + 8]
mov rcx, r15
movzx eax, word [rbp + 6]
mov r8d, dword [rsp + 0xa0]
sub r9d, eax
mov rdx, qword [rsi]
dec r9d
call fcn.14020fb10
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rcx + 0x10], rax
lea edx, [r9 + 0xd]
mov ebp, dword [rbx + 0x90]
mov rcx, rbx
lea r8d, [rbp + 1]
mov dword [rsp + 0x20], r8d
call fcn.140229da0
dec dword [r15 + 0x44]
mov edx, 9
mov eax, dword [r15 + 0x44]
mov rcx, rbx
mov dword [rsi + 0x14], eax
inc dword [r15 + 0x38]
mov r8d, dword [r15 + 0x38]
mov r9d, dword [rsi + 0x14]
mov dword [rsi + 0x10], r8d
call fcn.140229d30
mov r8d, dword [rsi + 0xc]
mov edx, 0x92
mov rcx, rbx
call fcn.140229cc0
mov eax, dword [rsp + 0xa8]
test eax, eax
je 0x1401e3c06
mov r9d, dword [rsi + 0x1c]
mov r8d, eax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.140229d30
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rbx + 0x90]
test ecx, ecx
jns 0x1401e3c17
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x67], dil
je 0x1401e3c25
mov rax, r13
jmp 0x1401e3c34
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [r12]
lea rax, [rax + rcx*8]
mov r8d, dword [rsp + 0xd0]
mov rcx, r15
mov dword [rax + 8], edx
mov edx, r14d
mov r9d, dword [rsi + 8]
call fcn.1402009b0
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], dil
jne 0x1401e3c73
lea eax, [rdx - 1]
test ebp, ebp
cmovns eax, ebp
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [r12]
lea r13, [rax + rcx*8]
mov eax, dword [rsp + 0xa0]
mov dword [r13 + 8], edx
jmp 0x1401e3c87
lea r12, [rbx + 0x88]
mov r8d, dword [rsp + 0xa8]
test r8d, r8d
je 0x1401e3d81
movsxd rcx, dword [rbx + 0x90]
mov ebp, dword [rsi + 0xc]
lea r9d, [rcx + 4]
cmp dword [rbx + 0x94], ecx
jg 0x1401e3cc4
mov edx, 0x3b
mov dword [rsp + 0x20], edi
mov rcx, rbx
call fcn.1401d32a0
mov rdx, r12
jmp 0x1401e3cf5
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
lea rdx, [rbx + 0x88]
mov rax, qword [rdx]
mov dword [rax + rcx*8], 0x3b
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rdi
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401e3d1c
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x1f]
call fcn.1401d32a0
jmp 0x1401e3d41
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdx]
mov dword [rax + rcx*8], 0x1f
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov ecx, dword [rsp + 0xa0]
xor r9d, r9d
mov eax, dword [rsp + 0x30]
mov r8d, ebp
sub eax, ecx
mov dword [rsp + 0x28], eax
lea r13d, [r14 + rcx]
mov rcx, rbx
lea edx, [r9 + 0x27]
mov dword [rsp + 0x20], r13d
call fcn.140229f50
mov r8d, ebp
mov edx, 0x82
mov rcx, rbx
mov edi, eax
call fcn.140229cc0
jmp 0x1401e3d85
lea r13d, [r14 + rax]
mov eax, dword [rsp + 0x34]
mov ebp, dword [rsp + 0x38]
test eax, eax
jne 0x1401e3dab
mov r8, qword [rsp + 0xb0]
mov r9d, r14d
mov rdx, rsi
mov dword [rsp + 0x20], ebp
mov rcx, r15
call fcn.1401d9db0
movzx edx, byte [rsi + 0x24]
mov r9d, eax
sub ebp, dword [rsp + 0xa0]
and edx, 1
mov r8d, dword [rsi + 0xc]
add edx, 0x8a
mov dword [rsp + 0x28], ebp
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.140229f50
test edi, edi
je 0x1401e3e19
mov edx, dword [rsi + 0x20]
test edx, edx
jne 0x1401e3de8
mov edx, dword [rbx + 0x90]
test edi, edi
jns 0x1401e3df4
mov edi, dword [rbx + 0x90]
dec edi
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x1401e3e06
lea r8, [0x14037eae0]
jmp 0x1401e3e15
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [r12]
lea r8, [rax + rcx*8]
mov dword [r8 + 8], edx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret