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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rsi, qword [rsp + 0xb0]
xor r13d, r13d
mov ebx, r9d
mov rbp, r8
mov r15, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14002249a
cmp byte [rcx], r13b
jne 0x140022495
test byte [rcx + 1], 2
je 0x140022495
mov rax, qword [rcx + 0x30]
cmp rax, r8
jne 0x14002245a
mov rax, rsi
mov dword [rax], r13d
xor eax, eax
jmp 0x140022861
jge 0x140022495
test byte [rcx + 1], 8
jne 0x14002250f
inc rax
cmp rax, rbp
jne 0x140022495
xor edx, edx
mov dword [rsi], r13d
call fcn.1400229ac
test eax, eax
jne 0x14002248c
mov rcx, rdi
call fcn.140021b98
cmp qword [rdi + 0x30], rbp
jne 0x140022495
jmp 0x140022453
cmp eax, 0x65
jne 0x140022861
mov r14, r13
jmp 0x1400224fa
mov rcx, qword [rdx]
cmp word [rcx + 8], 0xd
ja 0x1400224ef
mov rax, qword [rdx + 8]
movzx r8d, word [rax + 8]
mov rax, qword [rcx + 0x18]
cmp byte [rax], r13b
je 0x1400224c1
test byte [rax], 2
jne 0x1400224ef
mov al, 0xff
mov dl, 1
jmp 0x1400224c5
mov al, 1
mov dl, 0xff
mov byte [r15 + 0x14], dl
mov byte [r15 + 0x15], al
test r8b, 4
je 0x1400224dc
lea r14, [0x14002d9a0]
jmp 0x1400224f6
test r8b, 0x39
jne 0x1400224ef
lea r14, [0x14002db64]
cmp qword [rcx + 0x20], r13
je 0x1400224f6
lea r14, [0x14002d998]
mov byte [r15 + 0x13], r13b
mov rcx, rdi
call fcn.14002214c
test eax, eax
je 0x140022517
cmp eax, 0x10
jne 0x140022861
or dword [rsi], 0xffffffff
jmp 0x140022453
mov eax, 1
sub eax, ebx
mov dword [rsp + 0x34], eax
mov rbp, qword [rdi + 0x88]
mov r12d, r13d
mov ecx, eax
movzx r13d, word [rbp + 0x18]
lea rbx, [rbp + 0x60]
dec r13d
mov qword [rsp + 0x38], rbx
mov esi, r13d
mov dword [rsp + 0x98], r13d
sar esi, cl
lea r8, [rbp + 0x1a]
mov word [rdi + 0x56], si
mov qword [rsp + 0x40], r8
test r14, r14
jne 0x140022650
movzx r8d, word [r8]
mov word [rsp + 0x98], r8w
mov rdx, qword [rbx]
lea eax, [rsi + rsi]
movsxd rcx, eax
movzx eax, word [rcx + rdx]
ror ax, 8
movzx ecx, ax
movzx eax, r8w
and rcx, rax
add rcx, qword [rbp + 0x68]
cmp byte [rbp + 3], 0
je 0x1400225ab
jmp 0x1400225a3
inc rcx
cmp rcx, qword [rbp + 0x58]
jae 0x1400227dd
cmp byte [rcx], 0x80
jae 0x140022596
inc rcx
lea rdx, [rsp + 0x48]
call fcn.140011f9c
mov rax, qword [rsp + 0x48]
cmp rax, qword [rsp + 0xa0]
jge 0x14002260f
lea r12d, [rsi + 1]
cmp r12d, r13d
jle 0x14002261a
or ebx, 0xffffffff
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x40]
xor r13d, r13d
cmp byte [rbp + 8], r13b
jne 0x140022800
mov rbx, qword [rsp + 0x38]
movzx eax, word [rbp + 0x18]
cmp r12d, eax
jl 0x140022798
movzx ecx, byte [rbp + 9]
mov rax, qword [rbp + 0x50]
mov edx, dword [rcx + rax + 8]
jmp 0x1400227bb
jle 0x140022635
lea r13d, [rsi - 1]
cmp r12d, r13d
jg 0x14002262e
movzx r8d, word [rsp + 0x98]
lea esi, [r12 + r13]
sar esi, 1
jmp 0x14002256f
mov ebx, 1
jmp 0x1400225d0
xor r13d, r13d
mov word [rdi + 0x56], si
cmp byte [rbp + 8], r13b
jne 0x1400227e9
mov r8, qword [rsp + 0x40]
mov r12d, esi
jmp 0x1400225f1
lea eax, [rsi + rsi]
movsxd rcx, eax
mov rax, qword [rbx]
movzx edx, word [rcx + rax]
movzx eax, word [r8]
ror dx, 8
movzx edx, dx
and rdx, rax
movzx eax, byte [rbp + 0xb]
add rdx, qword [rbp + 0x68]
movzx ecx, byte [rdx]
lea r9, [rdx + 1]
cmp ecx, eax
ja 0x140022683
mov rdx, r9
jmp 0x1400226a1
cmp byte [r9], 0
jl 0x1400226ae
movzx eax, byte [r9]
and ecx, 0x7f
shl ecx, 7
add ecx, eax
movzx eax, word [rbp + 0xe]
cmp ecx, eax
ja 0x1400226ae
add rdx, 2
mov r8, r15
call r14
mov ebx, eax
jmp 0x140022759
movzx eax, byte [rbp + 0xa]
lea r8, [rdi + 0x30]
sub rdx, rax
mov rcx, rbp
call qword [rbp + 0x80]
mov ebx, dword [rdi + 0x30]
mov dword [rsp + 0x30], ebx
cmp ebx, 2
jl 0x14002284b
mov rcx, qword [rdi + 0x20]
xor edx, edx
mov eax, ebx
div dword [rcx + 0x34]
cmp eax, dword [rcx + 0x3c]
ja 0x14002284b
lea eax, [rbx + 0x12]
movsxd rcx, eax
call fcn.14000e988
mov r13, rax
test rax, rax
je 0x140022841
and dword [rsp + 0x20], 0
mov r9, rax
mov r8d, ebx
mov word [rdi + 0x56], si
xor edx, edx
mov rcx, rdi
call fcn.140021cdc
movsxd rcx, dword [rsp + 0x30]
mov ebx, eax
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rcx + r13], xmm0
mov word [rcx + r13 + 0x10], ax
and byte [rdi + 1], 0xfb
test ebx, ebx
jne 0x140022837
xor r9d, r9d
mov r8, r15
mov rdx, r13
call fcn.14002d420
mov rcx, r13
mov ebx, eax
call fcn.14000eaa0
mov r13d, dword [rsp + 0x98]
test ebx, ebx
jns 0x140022763
lea r12d, [rsi + 1]
jmp 0x14002277a
xor r13d, r13d
test ebx, ebx
jle 0x140022813
lea r13d, [rsi - 1]
mov dword [rsp + 0x98], r13d
cmp r12d, r13d
jg 0x1400225da
mov rbx, qword [rsp + 0x38]
lea esi, [r12 + r13]
mov r8, qword [rsp + 0x40]
sar esi, 1
jmp 0x140022650
lea eax, [r12 + r12]
movsxd rcx, eax
mov rax, qword [rbx]
movzx edx, word [rcx + rax]
movzx eax, word [r8]
ror dx, 8
movzx ecx, dx
and rcx, rax
mov rax, qword [rbp + 0x50]
mov edx, dword [rcx + rax]
bswap edx
mov rcx, rdi
mov word [rdi + 0x56], r12w
call fcn.140022090
mov ebx, eax
test eax, eax
jne 0x14002285a
mov eax, dword [rsp + 0x34]
jmp 0x140022522
mov ecx, 0x10d00
call fcn.14007e65c
jmp 0x140022861
or byte [rdi + 1], 2
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0xb0]
mov dword [rax], r13d
xor eax, eax
jmp 0x14002285c
mov rax, qword [rsp + 0xb0]
mov word [rdi + 0x56], si
mov dword [rax], ebx
mov ebx, r13d
jmp 0x14002285a
mov rax, qword [rsp + 0xb0]
mov ebx, r13d
mov word [rdi + 0x56], si
mov dword [rax], r13d
cmp byte [r15 + 0x13], r13b
je 0x14002285a
mov ecx, 0x10d6b
call fcn.14007e65c
jmp 0x140022858
mov rcx, r13
call fcn.14000eaa0
jmp 0x140022846
mov ebx, 7
xor r13d, r13d
jmp 0x14002285a
mov ecx, 0x10d4b
call fcn.14007e65c
xor r13d, r13d
mov ebx, eax
mov eax, ebx
mov word [rdi + 0x46], r13w
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret