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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [rdx + 0x128]
mov rbx, rcx
mov rdi, rdx
mov qword [rcx + 0xb0], rax
and qword [rdx + 0x128], 0
mov rax, qword [rcx]
mov ecx, dword [rdx + 0x34]
mov qword [rsp + 0xa8], rax
movsx eax, word [rdx + 0x110]
mov dword [rsp + 0x90], eax
mov eax, dword [rdx + 0x80]
mov dword [rsp + 0x98], ecx
mov dword [rsp + 0xa0], eax
mov eax, dword [rdx + 0x38]
mov r14d, 1
lea r12d, [rcx + rax]
test ecx, ecx
jne 0x14002257e
test r12d, r12d
jle 0x14002257e
add r12d, r14d
mov eax, dword [rbx + 0x90]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
lea rdx, [rsp + 0xa0]
lea ecx, [rcx*8 + 7]
and ecx, 0xfffffff8
movsxd r15, ecx
sub eax, ecx
mov rcx, rbx
add r15, qword [rbx + 0x88]
movsxd rsi, eax
mov qword [rsp + 0x30], r15
and rsi, 0xfffffffffffffff8
call fcn.1400214cc
xor r10d, r10d
cmp byte [rdi + 0x20], r10b
je 0x1400225ce
mov al, r14b
cmp byte [rdi + 0x21], r10b
jne 0x1400225d1
mov al, r10b
and dword [rbx + 0xc8], 0xffffffbf
movzx eax, al
and eax, r14d
shl eax, 6
or dword [rbx + 0xc8], eax
mov al, byte [rdi + 0x113]
mov ecx, dword [rbx + 0xc8]
test al, al
je 0x14002268d
movzx eax, al
mov edx, 0xa
cmp r12d, edx
lea ebp, [rdx + 2]
cmovl r12d, edx
shl eax, 2
xor eax, ecx
and eax, ebp
xor eax, ecx
mov rcx, rbx
mov dword [rbx + 0xc8], eax
cmp byte [rdi + 0x113], 2
jne 0x140022638
lea edx, [rbp - 8]
call fcn.140022b68
lea eax, [rbp - 4]
xor r10d, r10d
jmp 0x14002264c
mov edx, 8
call fcn.140022b68
xor r10d, r10d
lea ebp, [r10 + 8]
mov eax, r10d
movsxd rdi, eax
movsxd r13, ebp
cmp rdi, r13
jge 0x14002268d
xor r15d, r15d
mov ebp, r15d
lea r9, str._g_v_
xor r8d, r8d
mov edx, ebp
mov r9, qword [r9 + rdi*8]
mov rcx, rbx
mov qword [rsp + 0x20], r15
call fcn.140022c20
add rdi, r14
add ebp, r14d
cmp rdi, r13
jl 0x14002265d
mov r15, qword [rsp + 0x30]
xor r10d, r10d
and dword [rbx + 0xc8], 0xfffffffc
movsxd rbp, r12d
mov rdi, r10
mov rax, r10
imul rbp, rbp, 0x38
add rbp, 7
and rbp, 0xfffffffffffffff8
cmp rbp, rsi
jg 0x1400226b7
sub rsi, rbp
lea rax, [rsi + r15]
jmp 0x1400226ba
mov rdi, rbp
movsxd rdx, dword [rsp + 0x90]
mov qword [rbx + 0x68], rax
mov rax, r10
mov r13, rdx
imul r13, r13, 0x38
add r13, 7
and r13, 0xfffffffffffffff8
cmp r13, rsi
jg 0x1400226e6
sub rsi, r13
lea rax, [rsi + r15]
jmp 0x1400226e9
add rdi, r13
mov qword [rbx + 0x80], rax
movsxd rax, dword [rsp + 0xa0]
mov rcx, r10
lea r14, [rax*8 + 7]
and r14, 0xfffffffffffffff8
cmp r14, rsi
jg 0x140022715
sub rsi, r14
lea rcx, [rsi + r15]
jmp 0x140022718
add rdi, r14
movsxd r9, dword [rsp + 0x98]
mov qword [rbx + 0x70], rcx
mov rcx, r10
mov r8, r9
shl r8, 3
mov qword [rsp + 0xa0], r8
lea rax, [r8 + 7]
and rax, 0xfffffffffffffff8
mov qword [rsp + 0x30], rax
cmp rax, rsi
jg 0x140022751
sub rsi, rax
lea rcx, [rsi + r15]
jmp 0x140022754
add rdi, rax
mov rsi, qword [rsp + 0xa8]
mov qword [rbx + 0x78], rcx
test rdi, rdi
je 0x14002280d
mov rdx, rdi
mov rcx, rsi
call fcn.140003da8
xor r10d, r10d
mov qword [rbx + 0xf8], rax
mov r11, rax
cmp byte [rsi + 0x63], r10b
jne 0x1400227f6
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14002279c
cmp rbp, rdi
jg 0x14002279c
sub rdi, rbp
lea rcx, [rdi + rax]
mov rax, qword [rbx + 0x80]
mov qword [rbx + 0x68], rcx
test rax, rax
jne 0x1400227b8
cmp r13, rdi
jg 0x1400227b8
sub rdi, r13
lea rax, [rdi + r11]
mov qword [rbx + 0x80], rax
mov rax, qword [rbx + 0x70]
test rax, rax
jne 0x1400227d4
cmp r14, rdi
jg 0x1400227d4
sub rdi, r14
lea rax, [rdi + r11]
mov qword [rbx + 0x70], rax
mov rax, qword [rbx + 0x78]
test rax, rax
jne 0x1400227f2
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
jg 0x1400227f2
sub rdi, rcx
lea rax, [rdi + r11]
mov qword [rbx + 0x78], rax
mov r9d, dword [rsp + 0x98]
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x90]
mov edi, 1
cmp byte [rsi + 0x63], r10b
je 0x140022827
mov word [rbx + 0x20], r10w
mov qword [rbx + 0x28], 0
jmp 0x14002288e
mov rax, qword [rbx + 0x80]
mov dword [rbx + 0x2c], r9d
mov word [rbx + 0x20], dx
test edx, edx
jle 0x140022853
add rax, 8
sub edx, edi
mov qword [rax + 0x20], rsi
mov word [rax], di
mov dword [rax + 0x18], r10d
add rax, 0x38
test edx, edx
jg 0x14002283e
mov rax, qword [rbx + 0x68]
mov dword [rbx + 0x28], r12d
test r12d, r12d
jle 0x140022880
add rax, 8
mov ecx, 0x80
sub r12d, edi
mov qword [rax + 0x20], rsi
mov word [rax], cx
mov dword [rax + 0x18], r10d
add rax, 0x38
test r12d, r12d
jg 0x140022864
mov rcx, qword [rbx + 0x78]
xor edx, edx
call fcn.1400a2620
xor r10d, r10d
or dword [rbx + 0x34], 0xffffffff
mov dword [rbx + 0x24], 0x2df20da3
mov qword [rbx + 0x38], 0
mov dword [rbx + 0x30], edi
mov word [rbx + 0xc2], 0xff02
mov dword [rbx + 0x40], r10d
mov qword [rbx + 0x50], r10
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret