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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r13, qword [rcx + 0x18]
xor r15d, r15d
xor r12d, r12d
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r13
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
cmp r8d, 2
jb 0x1400191e0
cmp r8d, dword [rcx + 0x3c]
ja 0x1400191e0
test rdx, rdx
je 0x140018f94
mov rax, qword [rdx + 0x70]
lea ecx, [r15 + 1]
add word [rax + 0x36], cx
mov rax, qword [rax + 0x18]
add dword [rax + 0x18], ecx
jmp 0x140018f9f
mov edx, r14d
call fcn.1400152b0
mov rdi, rax
mov rcx, qword [r13 + 0x70]
mov qword [rbp + 0x58], rdi
call fcn.1400103f8
mov dword [rbp + 0x50], eax
mov ebx, eax
test eax, eax
jne 0x1400191b7
mov rcx, qword [r13 + 0x50]
mov eax, dword [rcx + 0x24]
bswap eax
mov dword [rbp + 0x40], eax
inc eax
bswap eax
mov dword [rcx + 0x24], eax
test byte [rsi + 0x26], 4
je 0x140019020
test rdi, rdi
jne 0x140018ff7
xor r9d, r9d
lea r8, [rbp + 0x58]
mov edx, r14d
mov rcx, rsi
call fcn.140015234
mov ebx, eax
test eax, eax
jne 0x1400191da
mov rdi, qword [rbp + 0x58]
mov rcx, qword [rdi + 0x70]
call fcn.1400103f8
mov dword [rbp + 0x50], eax
mov ebx, eax
test eax, eax
jne 0x1400191b7
mov rax, qword [rdi + 0x48]
xor edx, edx
mov rcx, qword [rdi + 0x50]
mov r8d, dword [rax + 0x30]
call sub.ntdll.dll_memset
cmp byte [rsi + 0x21], r12b
je 0x14001904b
lea rax, [rbp + 0x50]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov edx, r14d
mov rcx, rsi
call fcn.140014034
mov ebx, dword [rbp + 0x50]
test ebx, ebx
jne 0x1400191b7
cmp dword [rbp + 0x40], r12d
je 0x14001916b
mov rax, qword [r13 + 0x50]
lea r8, [rbp - 0x10]
xor r9d, r9d
mov rcx, rsi
mov r12d, dword [rax + 0x20]
bswap r12d
mov edx, r12d
call fcn.140015234
mov r15, qword [rbp - 0x10]
mov ebx, eax
test eax, eax
jne 0x1400191b7
mov rax, qword [r15 + 0x50]
mov ecx, dword [rsi + 0x34]
shr ecx, 2
mov r13d, dword [rax + 4]
bswap r13d
lea eax, [rcx - 2]
cmp r13d, eax
jbe 0x1400190aa
mov ecx, 0x112fb
call fcn.140076e38
mov ebx, eax
jmp 0x1400191b7
lea eax, [rcx - 8]
cmp r13d, eax
jae 0x140019167
mov rcx, qword [r15 + 0x70]
call fcn.1400103f8
mov ebx, eax
test eax, eax
jne 0x1400191b7
mov rax, qword [r15 + 0x50]
lea ecx, [r13 + 1]
mov edx, r14d
bswap ecx
bswap edx
mov dword [rax + 4], ecx
lea ecx, [r13*4 + 8]
mov rax, qword [r15 + 0x50]
mov dword [rcx + rax], edx
test rdi, rdi
je 0x140019122
test byte [rsi + 0x26], 4
jne 0x140019122
mov rcx, qword [rdi + 0x70]
mov rdx, qword [rcx + 0x28]
cmp byte [rdx + 0x10], bl
jne 0x140019122
movzx eax, word [rcx + 0x34]
test al, 2
je 0x140019122
cmp dword [rdx + 0x80], ebx
jne 0x140019122
mov edx, 0xfffb
and ax, dx
or ax, 0x10
mov word [rcx + 0x34], ax
mov rax, qword [rsi + 0x58]
xor ebx, ebx
test rax, rax
jne 0x140019147
mov r12d, dword [rsi + 0x3c]
mov ecx, 0x200
call fcn.140003f24
test rax, rax
je 0x14001915c
mov dword [rax], r12d
mov qword [rsi + 0x58], rax
cmp r14d, dword [rax]
ja 0x1400191b7
mov edx, r14d
mov rcx, rax
call fcn.14000ab48
jmp 0x1400190a3
mov qword [rsi + 0x58], rax
mov ebx, 7
jmp 0x1400191b7
mov r13, qword [rbp - 8]
test rdi, rdi
jne 0x14001918c
xor r9d, r9d
lea r8, [rbp + 0x58]
mov edx, r14d
mov rcx, rsi
call fcn.140015234
mov ebx, eax
test eax, eax
jne 0x1400191da
mov rdi, qword [rbp + 0x58]
mov rcx, qword [rdi + 0x70]
call fcn.1400103f8
mov ebx, eax
test eax, eax
jne 0x1400191b7
mov rax, qword [rdi + 0x50]
bswap r12d
bswap r14d
mov dword [rax], r12d
mov rax, qword [rdi + 0x50]
and dword [rax + 4], ebx
mov rax, qword [r13 + 0x50]
mov dword [rax + 0x20], r14d
test rdi, rdi
je 0x1400191c8
mov byte [rdi], 0
mov rcx, qword [rdi + 0x70]
call fcn.14000fdfc
test r15, r15
je 0x1400191d6
mov rcx, qword [r15 + 0x70]
call fcn.14000fdfc
mov eax, ebx
jmp 0x1400191ea
mov rdi, qword [rbp + 0x58]
jmp 0x1400191b7
mov ecx, 0x112c4
call fcn.140076e38
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret