Function at 0x1400187f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rbx
push rdi
push r12
push r14
sub rsp, 0x58
xor eax, eax
xor ebx, ebx
mov r10d, edx
mov dword [rsp + 0x20], ebx
mov qword [r11 - 0x54], rax
mov qword [r11 - 0x4c], rax
mov qword [r11 - 0x44], rax
mov qword [r11 - 0x3c], rax
mov qword [r11 - 0x34], rax
mov dword [rsp + 0x4c], eax
mov eax, 0xd27
mov r14, rcx
movzx edx, bx
lea r12d, [rbx + 1]
mov word [r11 + 0x10], ax
test r10d, r10d
jle 0x14001886b
mov r8, rcx
mov r9d, r10d
nop
cmp r12w, dx
jne 0x140018848
mov edx, ebx
movzx ecx, byte [r8]
movzx eax, dx
inc r8
movzx eax, byte [rsp + rax*2 + 0x88]
add cl, 9
inc dx
xor al, cl
mov byte [r8 - 1], al
dec r9
jne 0x140018840
movsxd rax, dword [r14 + 0x3c]
mov qword [rsp + 0x80], rbp
mov ecx, 0x5a4d
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x50], r15
lea rdi, [rax + r14]
cmp word [r14], cx
jne 0x140018afd
cmp dword [rdi], 0x4550
jne 0x140018afd
cmp r10d, 0x40
jb 0x140018af6
cmp r10d, dword [rdi + 0x54]
jb 0x140018af6
add rax, 0x108
mov r15, r10
cmp r10, rax
jb 0x140018af6
mov eax, 0x8664
cmp word [rdi + 4], ax
jne 0x140018afd
movzx eax, word [rdi + 0x14]
lea rdx, [rdi + 0x24]
add rdx, rax
movzx eax, word [rdi + 6]
test eax, eax
je 0x140018914
mov r8d, eax
nop
mov eax, dword [rdx + 4]
test eax, eax
jne 0x1400188fc
mov ecx, dword [rdi + 0x38]
jmp 0x1400188ff
mov rcx, rax
mov eax, dword [rdx]
add rcx, rax
cmp rcx, rbx
cmova rbx, rcx
add rdx, 0x28
dec r8
jne 0x1400188f0
lea rcx, [rsp + 0x20]
call qword [0x1416f09d8]
mov r8d, dword [rsp + 0x24]
lea edx, [r8 - 1]
lea ebp, [r8 - 1]
lea rcx, [r8 - 1]
add ebp, dword [rdi + 0x50]
not edx
add rcx, rbx
and rbp, rdx
and rcx, rdx
cmp rbp, rcx
jne 0x140018afd
mov rcx, qword [rdi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbp
call qword [0x1416f09e0]
mov rsi, rax
test rax, rax
jne 0x14001898d
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [0x1416f09e0]
mov rsi, rax
test rax, rax
jne 0x14001898d
lea ecx, [rax + 0xe]
jmp 0x140018b02
call qword [0x1416f0a10]
mov edx, 8
lea r8d, [rdx + 0x20]
mov rcx, rax
call qword [0x1416f09e8]
mov rbx, rax
test rax, rax
je 0x140018aba
mov qword [rax + 8], rsi
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov dword [rbx + 0x24], eax
mov edx, dword [rdi + 0x54]
mov r8d, 0x1000
mov rcx, rsi
call qword [0x1416f09e0]
mov rbp, rax
test rax, rax
je 0x140018aba
mov r8d, dword [rdi + 0x54]
mov rdx, r14
mov rcx, rax
call fcn.1401b22b0
movsxd rcx, dword [r14 + 0x3c]
mov r9, rbx
add rcx, rbp
mov r8, rdi
mov rdx, r15
mov qword [rbx], rcx
mov qword [rcx + 0x30], rsi
mov rcx, r14
call fcn.140017b20
test eax, eax
je 0x140018ac5
mov rax, qword [rbx]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rdi + 0x30]
je 0x140018a30
mov rcx, rbx
call fcn.140018390
mov dword [rbx + 0x20], eax
jmp 0x140018a34
mov dword [rbx + 0x20], r12d
mov rcx, rbx
call fcn.1400179a0
test eax, eax
je 0x140018ac5
mov rcx, rbx
call fcn.140018560
test eax, eax
je 0x140018ac5
mov rax, qword [rbx]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x140018a8c
mov rax, qword [rbx + 8]
mov rdi, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x140018a8c
mov rax, qword [rdi]
test rax, rax
je 0x140018a8c
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, r12d
call rax
mov rax, qword [rdi + 8]
lea rdi, [rdi + 8]
test rax, rax
jne 0x140018a73
mov rax, qword [rbx]
mov edx, dword [rax + 0x28]
test edx, edx
je 0x140018ab5
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea rax, [rcx + rdx]
mov edx, r12d
call rax
test eax, eax
jne 0x140018ab1
mov ecx, 0x45a
jmp 0x140018abf
mov dword [rbx + 0x1c], r12d
mov rax, rbx
jmp 0x140018b0a
mov ecx, 0xe
call qword [0x1416f09d0]
test rsi, rsi
je 0x140018adb
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [0x1416f09f8]
test rbx, rbx
je 0x140018b08
call qword [0x1416f0a10]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x1416f0a08]
jmp 0x140018b08
mov ecx, 0xd
jmp 0x140018b02
mov ecx, 0xc1
call qword [0x1416f09d0]
xor eax, eax
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rbx
ret