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

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
mov rbp, qword [0x140cd0178]
test rax, rax
je 0x1400186a1
mov eax, dword [rax + 4]
mov dword [rcx + 4], eax
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x1400186af
call fcn.140018680
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400186bd
call fcn.140018680
mov r8d, dword [rbx + 0x28]
xor esi, esi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r14
test r8d, r8d
jle 0x1400187cb
mov r14d, esi
nop dword [rax]
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0xa4]
mov ecx, dword [rbp + 0x1c90]
inc r8d
mov rdi, qword [r14 + rax]
cmp r8d, ecx
jne 0x14001870d
mov eax, dword [rdi + 0x2c8]
inc eax
cmp eax, ecx
jge 0x14001870d
mov dl, 1
jmp 0x140018714
xor dl, dl
cmp r8d, ecx
jne 0x14001873c
test byte [rbx + 0xbc], 0x10
jne 0x140018728
mov eax, dword [rdi + 0x18]
cmp dword [rbx + 0xb4], eax
jne 0x14001873c
cmp byte [rdi + 0xe8], 0
je 0x14001873c
test dword [rdi + 0x1c], 0x100000
jne 0x14001873c
mov dl, 1
movzx ecx, byte [rdi + 0x439]
movzx eax, cl
shr al, 2
and al, 1
or al, dl
je 0x140018782
and cl, 0xfb
mov byte [rdi + 0x439], cl
cmp dword [rbx + 0x28], 1
jne 0x140018768
mov eax, dword [rbx + 8]
shr eax, 0xb
test al, 1
je 0x1400187a9
mov r8d, dword [rbx]
mov rdx, rdi
mov rcx, rbx
call fcn.140015690
dec esi
lea rdx, [rbx + 8]
sub r14, 8
jmp 0x140018794
mov eax, dword [rdi + 0x3c]
lea rdx, [rbx + 8]
not eax
and eax, dword [rdx]
mov dword [rdx], eax
or eax, dword [rdi + 0x38]
mov dword [rdx], eax
mov r8d, dword [rbx + 0x28]
inc esi
add r14, 8
cmp esi, r8d
jl 0x1400186e0
jmp 0x1400187cf
mov rcx, rbx
call fcn.140014300
mov r8d, dword [rbx]
mov rdx, rdi
mov rcx, rbx
mov dword [rbx + 0xc], 1
call fcn.140015690
jmp 0x1400188da
lea rdx, [rbx + 8]
movzx r10d, byte [rbx + 0xbc]
mov rcx, rdx
test r10b, r10b
jns 0x140018806
cmp r8d, 1
jne 0x140018806
mov r9d, dword [rdx]
mov eax, r9d
or eax, dword [rbx + 4]
test al, 0x40
je 0x140018806
shr r9d, 0xd
test r8b, r9b
jne 0x140018806
or byte [rbx + 0xbd], r8b
lea rcx, [rbx + 8]
lea rdx, [rbx + 0xbd]
and r10b, 0x7f
movzx edi, byte [rdx]
mov r9, rdx
mov byte [rbx + 0xbc], r10b
movzx eax, dil
mov r11, rcx
test dil, 1
je 0x14001884f
mov rsi, qword [rbx + 0x88]
test rsi, rsi
je 0x14001884f
test dword [rsi + 0x38], 0x2000
je 0x14001884f
and al, 0xfe
lea r9, [rbx + 0xbd]
mov byte [rdx], al
lea r11, [rbx + 8]
cmp r8d, 1
jle 0x14001885d
and dword [rcx], 0xffffdfff
jmp 0x14001886d
test al, 1
je 0x14001886d
xor dword [rcx], 0x2000
mov rdx, r9
mov rcx, r11
mov ecx, dword [rcx]
and al, 0xfe
mov byte [rdx], al
mov eax, ecx
shr eax, 0xb
shr ecx, 0xa
cmp qword [rbx + 0x10], 0
movzx eax, al
movzx edx, cl
cmovne edx, eax
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14001889f
test byte [rax + 0xbc], 1
je 0x14001889f
mov al, 1
jmp 0x1400188a1
xor al, al
movzx ecx, al
test r8d, r8d
mov eax, 1
cmovg ecx, eax
mov rax, qword [rbx + 0x20]
or cl, dl
test rax, rax
je 0x1400188c7
test byte [rax + 0xbc], 1
je 0x1400188c7
mov al, 1
jmp 0x1400188c9
xor al, al
or al, cl
and r10b, 0xfe
and al, 1
xor al, r10b
mov byte [rbx + 0xbc], al
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret