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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rdx, qword [rdx]
mov qword [rsp + 0x40], r8
mov rbx, rcx
cmp word [rdx + 8], 0xd
jbe 0x1401b415e
lea r12, [fcn.1401ef690]
jmp 0x1401b41bb
mov r8, qword [rdx + 0x18]
mov rax, qword [rsi + 8]
mov r8b, byte [r8]
mov ecx, dword [rax + 0x14]
test r8b, r8b
je 0x1401b417f
and r8b, 2
jne 0x1401b4155
mov word [rsi + 0x20], 0xff01
jmp 0x1401b4185
mov word [rsi + 0x20], 0x1ff
test cl, 4
je 0x1401b419a
mov rax, qword [rax]
lea r12, [0x140206030]
mov qword [rsi + 0x10], rax
jmp 0x1401b41bb
and cl, 0x39
jne 0x1401b4155
cmp qword [rdx + 0x20], 0
jne 0x1401b4155
mov rdx, qword [rax + 8]
mov eax, dword [rax + 0x10]
lea r12, [0x140206100]
mov qword [rsi + 0x10], rdx
mov dword [rsi + 0x18], eax
mov byte [rsi + 0x1f], 0
cmp byte [rbx], 0
jne 0x1401b4224
mov rcx, qword [rbx + 0x88]
cmp byte [rcx + 8], 0
je 0x1401b4224
movsx edx, byte [rbx + 0x54]
xor eax, eax
cmp edx, eax
jle 0x1401b41f5
mov r8, qword [rbx + rax*8 + 0x90]
mov r9w, word [rbx + rax*2 + 0x58]
inc rax
cmp r9w, word [r8 + 0x18]
jae 0x1401b41d7
jmp 0x1401b4224
movzx eax, word [rcx + 0x18]
movzx edx, word [rbx + 0x56]
dec eax
cmp edx, eax
jne 0x1401b4216
mov r9, r12
mov r8, rsi
call fcn.140195dc0
test eax, eax
jle 0x1401b4472
cmp byte [rbx + 0x54], 0
jg 0x1401b4488
mov byte [rsi + 0x1f], 0
mov rcx, rbx
call fcn.14019cc60
mov r15d, eax
test eax, eax
je 0x1401b424f
cmp eax, 0x10
jne 0x1401b44dc
mov rax, qword [rsp + 0x40]
mov dword [rax], 0xffffffff
xor r15d, r15d
jmp 0x1401b44dc
lea rax, [rbx + 0x30]
mov qword [rsp + 0x48], rax
mov r13, qword [rbx + 0x88]
xor r14d, r14d
movzx r15d, word [r13 + 0x18]
lea eax, [r15 - 1]
mov dword [rsp + 0x3c], eax
mov ebp, eax
sar ebp, 1
mov rdx, qword [r13 + 0x60]
lea eax, [rbp + rbp]
cdqe
movzx edx, word [rdx + rax]
xchg dl, dh
and dx, word [r13 + 0x1a]
movzx edx, dx
add rdx, qword [r13 + 0x68]
movzx ecx, byte [rdx]
cmp cl, byte [r13 + 0xb]
ja 0x1401b429d
inc rdx
jmp 0x1401b42c3
mov al, byte [rdx + 1]
test al, al
js 0x1401b42d1
shl ecx, 7
and ecx, 0x3f80
mov r8d, ecx
movzx ecx, al
movzx eax, word [r13 + 0xe]
add ecx, r8d
cmp eax, ecx
jl 0x1401b42d1
add rdx, 2
mov r8, rsi
call r12
mov r15d, eax
jmp 0x1401b43a5
movzx eax, byte [r13 + 0xa]
mov r8, qword [rsp + 0x48]
mov rcx, r13
sub rdx, rax
call qword [r13 + pe_nt_image_headers64]
mov r11, qword [rbx + 0x30]
mov eax, r11d
cmp r11d, 1
jle 0x1401b4303
mov rcx, qword [rbx + 0x20]
xor edx, edx
div dword [rcx + 0x38]
cmp eax, dword [rcx + 0x40]
jbe 0x1401b430d
mov ecx, 0x1227c
jmp 0x1401b43d9
lea ecx, [r11 + 0x12]
mov qword [rsp + 0x50], r11
movsxd rcx, ecx
call fcn.1401cfe80
mov r9, rax
test rax, rax
je 0x1401b4464
mov r11, qword [rsp + 0x50]
mov word [rbx + 0x56], bp
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0
mov r8d, r11d
mov qword [rsp + 0x58], rax
call fcn.140164d00
mov r11, qword [rsp + 0x50]
mov r9, qword [rsp + 0x58]
mov ecx, 0x12
mov r15d, eax
xor eax, eax
movsxd rdx, r11d
add rdx, r9
mov rdi, rdx
rep stosb byte [rdi], al
and byte [rbx + 1], 0xfb
test r15d, r15d
je 0x1401b4382
mov rcx, r9
call fcn.1401f9f40
jmp 0x1401b446a
mov rdx, r9
mov ecx, r11d
mov r8, rsi
mov qword [rsp + 0x50], r9
call fcn.1401ef690
mov r9, qword [rsp + 0x50]
mov r15d, eax
mov rcx, r9
call fcn.1401f9f40
test r15d, r15d
jns 0x1401b43b0
lea r14d, [rbp + 1]
jmp 0x1401b43e6
je 0x1401b43bb
lea eax, [rbp - 1]
mov dword [rsp + 0x3c], eax
jmp 0x1401b43e6
mov rax, qword [rsp + 0x40]
mov dword [rax], 0
mov word [rbx + 0x56], bp
cmp byte [rsi + 0x1f], 0
je 0x1401b446a
mov ecx, 0x1229c
call fcn.1401b80f0
mov r15d, eax
jmp 0x1401b446a
cmp r14d, dword [rsp + 0x3c]
jg 0x1401b43fc
mov eax, dword [rsp + 0x3c]
lea ebp, [r14 + rax]
sar ebp, 1
jmp 0x1401b4273
cmp byte [r13 + 8], 0
je 0x1401b4414
mov rax, qword [rsp + 0x40]
mov word [rbx + 0x56], bp
mov dword [rax], r15d
xor r15d, r15d
jmp 0x1401b446a
movzx eax, word [r13 + 0x18]
mov rdx, qword [r13 + 0x50]
cmp eax, r14d
jg 0x1401b442d
movzx eax, byte [r13 + 9]
mov edx, dword [rdx + rax + 8]
jmp 0x1401b4448
mov rcx, qword [r13 + 0x60]
lea eax, [r14 + r14]
cdqe
movzx eax, word [rcx + rax]
xchg al, ah
and ax, word [r13 + 0x1a]
movzx eax, ax
mov edx, dword [rdx + rax]
mov word [rbx + 0x56], r14w
mov rcx, rbx
bswap edx
call fcn.14019cb00
mov r15d, eax
test eax, eax
je 0x1401b4258
jmp 0x1401b446a
mov r15d, 7
mov word [rbx + 0x46], 0
jmp 0x1401b44dc
cmp byte [rsi + 0x1f], 0
jne 0x1401b4216
mov rdi, qword [rsp + 0x40]
mov dword [rdi], eax
jmp 0x1401b4247
mov rcx, qword [rbx + 0x88]
xor edx, edx
mov r9, r12
mov r8, rsi
call fcn.140195dc0
test eax, eax
jg 0x1401b4220
cmp byte [rsi + 0x1f], 0
jne 0x1401b4220
mov rax, qword [rbx + 0x88]
and byte [rbx + 1], 0xfb
cmp byte [rax], 0
jne 0x1401b424f
mov ecx, 0x12225
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401b80f0
mov eax, r15d
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret