Function at 0x14022bf40
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, 0x108
mov r14d, 7
mov dword [rsp + 0x64], r9d
mov eax, dword [rsp + 0x64]
mov rdi, rcx
mov r15, r8
mov qword [rsp + 0x158], rdx
mov word [rsp + 0x68], ax
mov rax, qword [rcx]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rax]
cmp byte [rax + 0x67], 0
mov qword [rsp + 0x38], rax
jne 0x14022c6c6
mov rbx, qword [rcx + 0x10]
mov eax, dword [rbx + 0x38]
mov dword [rsp + 0x50], eax
and eax, 0x20
cmp eax, 1
sbb eax, eax
and eax, 0x1a7
add eax, 0x18
test byte [r8 + 0x64], 4
je 0x14022bfb7
and eax, 0xffffffc3
mov esi, dword [rbx + 0x18]
lea rcx, [rsp + 0x90]
xor r12d, r12d
xor r14d, r14d
mov rdx, qword [rdi + 8]
mov word [rsp + 0x44], si
mov si, word [rbx + 0x1a]
mov word [rsp + 0x6a], si
mov esi, dword [rbx + 0x1c]
mov word [rsp + 0x6c], si
mov rsi, qword [rbx + 0x16]
mov qword [rsp + 0x78], rsi
mov si, word [rbx + 0x3e]
mov word [rsp + 0x6e], si
mov rsi, qword [rbx + 0x38]
mov qword [rsp + 0x70], rsi
mov esi, dword [rbx + 0x3c]
mov word [rsp + 0x46], si
mov rsi, qword [rbx]
mov qword [rsp + 0x58], rsi
mov si, word [rbx + 0x16]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x28], r15
mov word [rsp + 0x54], si
movzx esi, word [rsp + 0x44]
mov r8d, dword [rax + 0x44]
mov r9d, esi
mov dword [rsp + 0x40], esi
call fcn.14022ed70
mov word [rbx + 0x12], 0
mov r13, rax
mov rax, qword [r15 + 0x10]
movsx eax, word [rax]
mov ecx, eax
mov dword [rsp + 0x60], eax
call fcn.1401c5fe0
movzx ebp, word [rsp + 0x44]
mov word [rsp + 0x56], ax
lea rax, [rbp + rbp]
xor ebp, ebp
mov qword [rsp + 0x30], rax
movzx eax, word [rsp + 0x46]
inc eax
mov dword [rsp + 0x80], eax
movsx eax, word [rsp + 0x56]
mov dword [rsp + 0x84], eax
test r14d, r14d
jne 0x14022c5ab
test r13, r13
je 0x14022c5ab
mov r14d, dword [r13 + 0x14]
cmp r14w, 0x100
je 0x14022c0ac
test byte [r13 + 0x12], 0x80
je 0x14022c0d9
mov rax, qword [r15 + 8]
mov rsi, qword [rsp + 0x30]
movsx rdx, word [rax + rsi]
test edx, edx
mov rax, rdx
js 0x14022c0d5
mov rdx, qword [r15 + 0x18]
imul rax, rax, 0x18
add rax, qword [rdx + 8]
test byte [rax + 8], 0xf
je 0x14022c0d9
jmp 0x14022c0e3
inc edx
je 0x14022c0e3
mov r11, qword [r13 + 0x28]
and r11, qword [rbx + 8]
je 0x14022c0eb
xor r14d, r14d
jmp 0x14022c596
test byte [r13 + 0x13], 1
je 0x14022c0f9
cmp r14w, 0x10
je 0x14022c0e3
mov rax, qword [rsp + 0x158]
test byte [rax + 0x3c], 0x58
je 0x14022c121
mov rax, qword [r13]
test byte [rax + 4], 3
je 0x14022c0e3
mov rsi, qword [rsp + 0x158]
mov esi, dword [rsi + 0x44]
cmp dword [rax + 0x34], esi
jne 0x14022c0e3
cmp byte [r15 + 0x62], 0
mov al, byte [rdi + 0x20]
je 0x14022c13d
movzx edx, word [r15 + 0x5e]
dec edx
cmp dword [rsp + 0x40], edx
jne 0x14022c13d
or eax, 2
jmp 0x14022c140
or eax, 1
mov byte [rdi + 0x20], al
mov eax, dword [rsp + 0x50]
mov rdx, rbx
mov r8d, dword [rsp + 0x80]
mov qword [rsp + 0x88], r11
mov rcx, qword [rsp + 0x38]
mov dword [rbx + 0x38], eax
mov eax, dword [rsp + 0x44]
mov word [rbx + 0x18], ax
mov ax, word [rsp + 0x6a]
mov word [rbx + 0x1a], ax
mov eax, dword [rsp + 0x6c]
mov word [rbx + 0x1c], ax
mov ax, word [rsp + 0x46]
mov word [rbx + 0x3c], ax
call fcn.14022db30
mov r11, qword [rsp + 0x88]
test eax, eax
mov esi, eax
je 0x14022c19f
xor r14d, r14d
jmp 0x14022c5ab
movzx edx, word [rbx + 0x3c]
mov rcx, qword [rbx + 0x48]
mov r8, qword [rbx + 8]
lea eax, [rdx + 1]
mov word [rbx + 0x3c], ax
mov qword [rcx + rdx*8], r13
mov rdx, qword [rsp + 0x58]
not r8
or rdx, qword [r13 + 0x28]
and rdx, r8
test r14d, 1
mov qword [rbx], rdx
je 0x14022c28d
mov rdx, qword [r13]
test byte [rdx + 5], 0x10
je 0x14022c206
movzx eax, ax
mov r9d, 0x2e
xor esi, esi
dec eax
cmp eax, r11d
jle 0x14022c226
mov r8, qword [rcx + r11*8]
test r8, r8
je 0x14022c201
cmp qword [r8], rdx
cmove r9d, esi
inc r11
jmp 0x14022c1ec
mov rax, qword [rdx + 0x20]
xor r9d, r9d
test rax, rax
je 0x14022c226
mov r9d, dword [rax]
test r9d, r9d
je 0x14022c226
movsxd rcx, r9d
call fcn.1401f9f60
movsx r9d, ax
cmp byte [r15 + 0x64], 0
jns 0x14022c281
cmp word [rsp + 0x56], 9
jle 0x14022c281
mov rax, qword [r15 + 0x10]
movsx ecx, r9w
mov rsi, qword [rsp + 0x30]
mov r8w, word [rax + rsi]
call fcn.1401c5fe0
add r8d, 0xa
sub r8w, word [rsp + 0x56]
sub r8d, r9d
add r8w, ax
jns 0x14022c281
cmp word [rsp + 0x68], 1
jg 0x14022c0e3
mov rax, qword [rsp + 0x38]
test byte [rax + 0x62], 2
jne 0x14022c0e3
or dword [rbx + 0x38], 0x100000
or dword [rbx + 0x38], 4
mov esi, r9d
jmp 0x14022c3e8
test r14b, 0x82
mov eax, dword [rbx + 0x38]
je 0x14022c30e
mov rdx, qword [r15 + 8]
mov rcx, qword [rsp + 0x30]
movsx edx, word [rdx + rcx]
mov ecx, eax
or ecx, 1
mov dword [rbx + 0x38], ecx
cmp edx, 0xffffffff
je 0x14022c2e5
test edx, edx
js 0x14022c2f4
cmp word [rsp + 0x68], 0
jne 0x14022c2f4
movzx edx, word [r15 + 0x5e]
mov ecx, edx
dec edx
cmp dword [rsp + 0x40], edx
jne 0x14022c2f4
test byte [r15 + 0x64], 8
jne 0x14022c2e5
dec cx
jne 0x14022c2ec
cmp byte [r15 + 0x62], 0
je 0x14022c2ec
cmp r14w, 2
jne 0x14022c2ec
or eax, 0x1001
jmp 0x14022c2f1
or eax, 0x10001
mov dword [rbx + 0x38], eax
cmp byte [rsp + 0xb9], 1
jbe 0x14022c3e8
or dword [rbx + 0x38], 0x200000
jmp 0x14022c3e8
test r14w, 0x100
je 0x14022c321
or eax, 8
mov dword [rbx + 0x38], eax
jmp 0x14022c3e8
mov rcx, qword [rsp + 0x158]
test r14d, 0x24
mov edx, dword [rcx + 0x44]
je 0x14022c3a2
mov r9d, dword [rsp + 0x40]
or eax, 0x22
mov r8, r15
mov rcx, qword [rsp + 0x48]
mov dword [rbx + 0x38], eax
mov qword [rsp + 0x20], r13
call fcn.14022ec30
test byte [r13 + 0x13], 1
mov word [rbx + 0x1a], ax
je 0x14022c3db
movzx r8d, word [rbx + 0x3c]
lea rbp, [r13 + 0x38]
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
inc r8d
call fcn.14022db30
test eax, eax
mov esi, eax
jne 0x14022c197
movzx eax, word [rbx + 0x3c]
mov r12, r13
mov rdx, qword [rbx + 0x48]
lea ecx, [rax + 1]
mov word [rbx + 0x3c], cx
mov qword [rdx + rax*8], rbp
or dword [rbx + 0x38], 0x10
mov word [rbx + 0x1c], 1
jmp 0x14022c3e8
mov r9d, dword [rsp + 0x40]
or eax, 0x12
mov r8, r15
mov rcx, qword [rsp + 0x48]
mov dword [rbx + 0x38], eax
mov qword [rsp + 0x20], r13
call fcn.14022ec30
test byte [rbx + 0x38], 0x20
mov word [rbx + 0x1c], ax
je 0x14022c3e2
movzx edx, word [rbx + 0x3c]
mov rbp, r13
mov rax, qword [rbx + 0x48]
mov r12, qword [rax + rdx*8 - 0x10]
jmp 0x14022c3e8
mov r12, r13
xor ebp, ebp
jmp 0x14022c3e8
mov rbp, r13
xor r12d, r12d
mov r11d, dword [rbx + 0x38]
mov ax, word [rbx + 0x16]
test r11d, 2
je 0x14022c475
test r12, r12
movsx r10d, ax
je 0x14022c41b
mov edx, dword [r12 + 0x10]
test dx, dx
jg 0x14022c410
add eax, edx
jmp 0x14022c41b
test byte [r12 + 0x12], 0x80
jne 0x14022c41b
sub eax, 0x14
test rbp, rbp
je 0x14022c44b
mov edx, dword [rbp + 0x10]
test dx, dx
jg 0x14022c42c
add eax, edx
jmp 0x14022c435
test byte [rbp + 0x12], 0x80
jne 0x14022c435
sub eax, 0x14
test r12, r12
je 0x14022c44b
cmp word [r12 + 0x10], 0
jle 0x14022c44b
test dx, dx
jle 0x14022c44b
sub eax, 0x14
xor edx, edx
test r12, r12
setne dl
cmp rbp, 1
sbb edx, 0xffffffff
sub r10d, edx
mov edx, 0xa
cmp ax, dx
cmovl eax, edx
cwde
cmp r10d, eax
cmovle eax, r10d
mov r13d, eax
jmp 0x14022c4c3
mov ecx, dword [rbx + 0x18]
mov r10d, dword [r13 + 0x10]
lea edx, [rcx + 1]
test r10w, r10w
mov word [rbx + 0x18], dx
jg 0x14022c4a5
mov rcx, qword [r15 + 8]
mov r9, qword [rsp + 0x30]
cmp word [rcx + r9], 0
js 0x14022c4a5
add r10d, eax
sub r10d, esi
mov r13d, r10d
jmp 0x14022c4c3
mov rcx, qword [r15 + 0x10]
movzx edx, dx
add ax, word [rcx + rdx*2]
sub ax, word [rcx + rdx*2 - 2]
test r14w, 0x100
lea r13d, [rax + 0xa]
cmove r13d, eax
mov rcx, qword [rsp + 0x158]
mov word [rbx + 0x16], r13w
movsx eax, word [r15 + 0x5c]
mov rdx, qword [rcx + 0x20]
imul eax, eax, 0xf
movsx ecx, word [rdx + 0x3c]
cdq
idiv ecx
mov ecx, dword [rsp + 0x84]
lea eax, [r13 + rax + 1]
movsx edx, ax
call fcn.1401f9fb0
and r11d, 0x140
jne 0x14022c50f
lea edx, [r13 + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.1401f9fb0
add esi, dword [rsp + 0x68]
mov word [rbx + 0x14], ax
mov rdx, rbx
add word [rbx + 0x14], si
mov rcx, qword [rdi + 8]
mov r8d, dword [rsp + 0x60]
lea eax, [r13 + rsi]
mov word [rbx + 0x16], ax
call fcn.14022d9c0
mov rdx, rbx
mov rcx, rdi
call fcn.14022d780
mov r10d, r13d
mov r14d, eax
mov eax, dword [rbx + 0x38]
test al, 2
cmovne r10w, word [rsp + 0x54]
test al, 0x10
mov word [rbx + 0x16], r10w
jne 0x14022c58e
mov eax, dword [rbx + 0x18]
cmp ax, word [r15 + 0x60]
jae 0x14022c58e
cmp ax, word [r15 + 0x5e]
jb 0x14022c577
mov al, byte [r15 + 0x64]
and eax, 3
cmp al, 2
je 0x14022c58e
mov rdx, qword [rsp + 0x158]
movsx r9d, si
mov r8, r15
mov rcx, rdi
call fcn.14022bf40
mov eax, dword [rsp + 0x54]
mov word [rbx + 0x16], ax
lea rcx, [rsp + 0x90]
call fcn.14022ee60
mov r13, rax
jmp 0x14022c087
mov rax, qword [rsp + 0x58]
mov si, word [rsp + 0x6e]
cmp word [rsp + 0x44], si
mov qword [rbx], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x16], rax
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x38], rax
jne 0x14022c6c6
mov eax, dword [rsp + 0x40]
movzx edx, word [r15 + 0x5e]
inc eax
cmp eax, edx
jge 0x14022c6c6
mov si, word [rsp + 0x46]
cmp word [rsp + 0x44], si
jne 0x14022c6c6
mov al, byte [r15 + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x14022c6c6
mov rax, qword [rsp + 0x38]
test byte [rax + 0x61], 0x40
jne 0x14022c6c6
mov rax, qword [r15 + 0x10]
mov rsi, qword [rsp + 0x30]
cmp word [rax + rsi + 2], 0x29
jle 0x14022c6c6
movzx r8d, word [rsp + 0x46]
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
inc r8d
call fcn.14022db30
test eax, eax
mov r14d, eax
jne 0x14022c6c6
movzx eax, word [rbx + 0x3c]
mov r8, r15
mov rdx, qword [rbx + 0x48]
inc word [rbx + 0x18]
inc word [rbx + 0x3e]
mov rsi, qword [rsp + 0x30]
lea ecx, [rax + 1]
mov word [rbx + 0x3c], cx
xor ecx, ecx
mov qword [rdx + rax*8], rcx
mov rax, qword [r15 + 0x10]
mov rcx, rdi
or dword [rbx + 0x38], 0x8000
mov r9w, word [rax + rsi]
mov ax, word [rax + rsi + 2]
mov esi, dword [rsp + 0x64]
mov edx, eax
sub edx, r9d
add word [rbx + 0x16], dx
lea r9d, [r9 + rsi + 5]
mov rdx, qword [rsp + 0x158]
sub r9d, eax
movsx r9d, r9w
call fcn.14022bf40
mov eax, dword [rsp + 0x54]
mov word [rbx + 0x16], ax
mov eax, dword [rsp + 0x44]
mov word [rbx + 0x18], ax
mov word [rbx + 0x3e], ax
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x38], eax
mov eax, r14d
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret