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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, qword [0x14007cef0]
xor r12d, r12d
and byte [rcx + 0x445], 0xf8
mov r15, rdx
mov rbx, rcx
mov rbp, r14
cmp byte [r14 + 0x5a], r12b
jne 0x140020e6f
cmp byte [rcx + 0x3c], r12b
je 0x140020eb2
test dword [rcx + 0x14], 0x1080001
jne 0x140020eb2
cmp byte [rcx + 0x108], r12b
jne 0x140020eb2
mov esi, 1
cmp dword [rcx + 0x478], r12d
jne 0x140020ef0
mov r11d, esi
mov edx, esi
jmp 0x140020e9c
add r11d, esi
mov edx, r11d
mov rcx, rbp
call fcn.14001b2f0
test rax, rax
jne 0x140020e96
mov dword [rbx + 0x478], r11d
jmp 0x140020ef0
mov ecx, dword [rcx + 0x14]
mov esi, 1
shr ecx, 0x13
and cl, sil
test byte [r14 + 0x4b90], sil
je 0x140020ee5
movsx eax, byte [rbx + 0x124]
test dword [r14 + 0x4b94], eax
je 0x140020ee5
mov al, sil
cmp byte [r14 + 0x4bd0], r12b
jne 0x140020ee8
mov al, r12b
or al, cl
jne 0x14002112a
mov rdi, qword [rbx + 0x468]
cmp dword [rbx + 0x478], r12d
je 0x140020f23
test rdi, rdi
jne 0x140020f23
mov rdx, rbx
mov rcx, rbp
call fcn.140020cdc
mov rdi, rax
test rax, rax
je 0x140021138
mov r14, qword [0x14007cef0]
mov ecx, dword [rbp + 0x40c8]
cmp dword [rdi + 0xac], ecx
jge 0x140020f5b
mov rax, qword [rdi + 0x18]
jmp 0x140020f3e
mov rdi, rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140020f37
cmp dword [rdi + 0xac], ecx
jl 0x14002112a
or byte [rbx + 0x445], sil
jmp 0x140021138
mov rcx, rbx
call fcn.140020de0
mov rax, qword [rdi + 0x88]
test rax, rax
jne 0x140020fb1
cmp dword [rdi + 0x14], 2
jne 0x140020f7c
or byte [rbx + 0x445], sil
cmp dword [rdi + 0x30], esi
jle 0x140021138
cmp byte [rbx + 0x106], r12b
je 0x140021138
mov al, byte [rbx + 0xff]
neg al
mov byte [rbx + 0x107], sil
sbb cl, cl
add cl, 2
mov byte [rbx + 0x120], cl
jmp 0x140021138
mov dword [rdi + 0x14], 3
test byte [rdi + 0x10], sil
jne 0x140020fd2
movzx eax, word [rax + 0x114]
cmp word [rbx + 0x114], ax
jl 0x14002112a
mov eax, dword [r14 + 0x4b90]
or eax, esi
mov dword [r14 + 0x4b90], eax
or eax, 2
movsd xmm0, qword [rdi + 0x48]
mov dword [r14 + 0x4b90], eax
movsd qword [r14 + 0x4ba4], xmm0
mov qword [r14 + 0x4bac], r12
mov dword [r14 + 0x4b94], esi
mov byte [r14 + 0x4bd0], sil
movsd xmm0, qword [rdi + 0x50]
movsd qword [r14 + 0x4bb4], xmm0
mov dword [r14 + 0x4b98], esi
mov byte [rbp + 0x4bd0], r12b
mov al, byte [rbx + 0x445]
or al, sil
or al, 2
and al, 0xfb
mov byte [rbx + 0x445], al
test byte [rdi + 0x10], sil
jne 0x140021138
cmp qword [rdi + 0x90], rbx
jne 0x140021059
or al, 4
mov byte [rbx + 0x445], al
or dword [rbx + 0x1c], 2
lea rdx, [rbx + 0x14]
mov ecx, dword [rdx]
or ecx, 0x1000002
mov dword [rdx], ecx
mov r8d, dword [rdi + 0x10]
mov eax, r8d
shr eax, 0xd
test sil, al
jne 0x140021088
shr r8d, 0xc
test sil, r8b
jne 0x140021088
and ecx, 0xfffffffe
jmp 0x14002108a
or ecx, esi
mov dword [rdx], ecx
cmp qword [rdi + 0x40], r12
je 0x1400210ec
cmp byte [rbx + 0x100], r12b
je 0x1400210ec
mov rax, qword [rbx + 0x468]
mov r11, qword [rax + 0x40]
test r11, r11
je 0x1400210e2
mov edx, dword [rbx + 0xc0]
mov rcx, r11
call fcn.14003fab8
mov rdx, rax
test rax, rax
je 0x1400210e2
sub rdx, qword [r11 + 8]
movabs rax, 0x4924924924924925
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jmp 0x1400210e5
or edx, 0xffffffff
mov word [rbx + 0x446], dx
test byte [rdi + 0xcc], 0x40
jne 0x140021103
mov eax, dword [rbx + 0xc0]
cmp dword [rdi + 0xc0], eax
jne 0x14002110b
test r15, r15
je 0x14002110b
mov byte [r15], r12b
mov rax, qword [rbx + 0x468]
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 0x88]
call fcn.14000fe4c
mov dword [rbx + 0xc4], eax
jmp 0x140021138
mov r8b, sil
mov rdx, rbx
mov rcx, rbp
call fcn.14001be6c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret