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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, qword [rcx + 0x18]
xor r12d, r12d
xor r14d, r14d
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rax + 0x20], r12
cmp r8d, 2
jb 0x14002b2c9
cmp r8d, dword [rcx + 0x3c]
ja 0x14002b2c9
test rdx, rdx
je 0x14002af8c
mov qword [rax + 8], rdx
mov rax, qword [rdx + 0x70]
lea ecx, [r12 + 1]
add word [rax + 0x36], cx
mov rax, qword [rax + 0x18]
add dword [rax + 0x18], ecx
jmp 0x14002af9c
mov edx, r8d
call fcn.140027848
mov rdi, rax
mov qword [rsp + 0x70], rax
mov rcx, qword [r15 + 0x70]
call fcn.140022a44
mov ebx, eax
mov dword [rsp + 0x80], eax
test eax, eax
jne 0x14002b29e
mov rdx, qword [r15 + 0x50]
movzx eax, byte [rdx + 0x26]
movzx r13d, byte [rdx + 0x25]
shl r13d, 8
or r13d, eax
movzx eax, byte [rdx + 0x24]
shl eax, 0x18
shl r13d, 8
or r13d, eax
movzx eax, byte [rdx + 0x27]
or r13d, eax
lea ecx, [r13 + 1]
mov eax, ecx
mov byte [rdx + 0x27], cl
shr eax, 0x18
mov byte [rdx + 0x24], al
mov eax, ecx
shr eax, 0x10
mov byte [rdx + 0x25], al
mov eax, ecx
shr eax, 8
mov byte [rdx + 0x26], al
test byte [rsi + 0x26], 4
je 0x14002b057
test rdi, rdi
jne 0x14002b02a
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, ebp
mov rcx, rsi
call fcn.1400277d8
mov ebx, eax
test eax, eax
jne 0x14002b2c2
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rdi + 0x70]
call fcn.140022a44
mov ebx, eax
mov dword [rsp + 0x80], eax
test eax, eax
jne 0x14002b29e
mov rax, qword [rdi + 0x48]
mov rcx, qword [rdi + 0x50]
xor edx, edx
mov r8d, dword [rax + 0x30]
call sub.msvcrt.dll_memset
cmp byte [rsi + 0x21], r12b
je 0x14002b089
lea rax, [rsp + 0x80]
xor r9d, r9d
mov r8b, 2
mov edx, ebp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14002650c
mov ebx, dword [rsp + 0x80]
test ebx, ebx
jne 0x14002b29e
test r13d, r13d
je 0x14002b217
mov rcx, qword [r15 + 0x50]
lea r8, [rsp + 0x88]
xor r9d, r9d
movzx eax, byte [rcx + 0x22]
movzx r14d, byte [rcx + 0x21]
shl r14d, 8
or r14d, eax
movzx eax, byte [rcx + 0x23]
shl r14d, 8
or r14d, eax
movzx eax, byte [rcx + 0x20]
mov rcx, rsi
shl eax, 0x18
or r14d, eax
mov edx, r14d
call fcn.1400277d8
mov r12, qword [rsp + 0x88]
mov ebx, eax
test eax, eax
jne 0x14002b29e
mov rcx, qword [r12 + 0x50]
movzx eax, byte [rcx + 6]
movzx r13d, byte [rcx + 5]
shl r13d, 8
or r13d, eax
movzx eax, byte [rcx + 4]
shl eax, 0x18
shl r13d, 8
or r13d, eax
movzx eax, byte [rcx + 7]
mov ecx, dword [rsi + 0x34]
shr ecx, 2
or r13d, eax
lea eax, [rcx - 2]
cmp r13d, eax
jbe 0x14002b12c
mov ecx, 0x11010
call fcn.140084e38
mov ebx, eax
jmp 0x14002b29e
lea eax, [rcx - 8]
cmp r13d, eax
jae 0x14002b217
mov rcx, qword [r12 + 0x70]
call fcn.140022a44
mov ebx, eax
test eax, eax
jne 0x14002b29e
mov rcx, qword [r12 + 0x50]
lea edx, [r13 + 1]
mov byte [rcx + 7], dl
mov eax, edx
shr eax, 0x18
mov byte [rcx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 5], al
mov eax, edx
shr eax, 8
mov byte [rcx + 6], al
lea ecx, [r13*4 + 8]
mov eax, ebp
add rcx, qword [r12 + 0x50]
shr eax, 0x18
mov byte [rcx], al
mov eax, ebp
mov byte [rcx + 3], bpl
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, ebp
shr eax, 8
mov byte [rcx + 2], al
test rdi, rdi
je 0x14002b1d0
test byte [rsi + 0x26], 4
jne 0x14002b1d0
mov rcx, qword [rdi + 0x70]
mov rdx, qword [rcx + 0x28]
cmp byte [rdx + 0x10], bl
jne 0x14002b1d0
movzx eax, word [rcx + 0x34]
test al, 2
je 0x14002b1d0
cmp dword [rdx + 0x80], ebx
jne 0x14002b1d0
mov edx, 0xfffb
and ax, dx
or ax, 0x10
mov word [rcx + 0x34], ax
xor ebx, ebx
cmp qword [rsi + 0x58], rbx
jne 0x14002b1ff
mov r13d, dword [rsi + 0x3c]
mov ecx, 0x200
call fcn.140016b70
test rax, rax
je 0x14002b1ee
mov dword [rax], r13d
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x14002b1ff
lea ebx, [rax + 7]
jmp 0x14002b29e
mov rcx, qword [rsi + 0x58]
cmp ebp, dword [rcx]
ja 0x14002b29e
mov edx, ebp
call fcn.14001d808
jmp 0x14002b125
test rdi, rdi
jne 0x14002b23d
lea r8, [rsp + 0x70]
xor r9d, r9d
mov edx, ebp
mov rcx, rsi
call fcn.1400277d8
mov ebx, eax
test eax, eax
jne 0x14002b2c2
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rdi + 0x70]
call fcn.140022a44
mov ebx, eax
test eax, eax
jne 0x14002b29e
mov rcx, qword [rdi + 0x50]
mov eax, r14d
shr eax, 0x18
mov byte [rcx + 3], r14b
mov byte [rcx], al
mov eax, r14d
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, r14d
shr eax, 8
mov byte [rcx + 2], al
mov rax, qword [rdi + 0x50]
mov byte [rax + 4], bl
mov byte [rax + 5], bl
mov byte [rax + 6], bl
mov byte [rax + 7], bl
mov rdx, qword [r15 + 0x50]
mov eax, ebp
shr eax, 0x18
mov byte [rdx + 0x23], bpl
mov byte [rdx + 0x20], al
mov eax, ebp
shr eax, 0x10
mov byte [rdx + 0x21], al
mov eax, ebp
shr eax, 8
mov byte [rdx + 0x22], al
test rdi, rdi
je 0x14002b2af
mov byte [rdi], 0
mov rcx, qword [rdi + 0x70]
call fcn.14002242c
test r12, r12
je 0x14002b2be
mov rcx, qword [r12 + 0x70]
call fcn.14002242c
mov eax, ebx
jmp 0x14002b2d3
mov rdi, qword [rsp + 0x70]
jmp 0x14002b29e
mov ecx, 0x10fda
call fcn.140084e38
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret