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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r11d, r11d
mov rsi, rdx
mov rdi, rcx
mov ebx, r11d
mov r12d, r11d
test rdx, rdx
je 0x1401cb813
mov r14d, dword [rdx + 0x18]
mov ecx, 0x200
call fcn.1401fc8fc
xor r11d, r11d
mov r12, rax
test rax, rax
je 0x1401cb809
mov dword [rax], r14d
mov eax, dword [rsi + 0x18]
jmp 0x1401cb816
mov eax, 7
jmp 0x1401cba78
mov eax, dword [rcx + 0x24]
mov dword [rdi + 0x20], eax
mov al, byte [rdi + 0x10]
mov byte [rdi + 0x17], al
test rsi, rsi
jne 0x1401cb83a
cmp qword [rdi + 0x128], r11
je 0x1401cb83a
mov rcx, rdi
call fcn.1401cba90
jmp 0x1401cba78
lea r14, [rdi + 0x60]
mov r13, qword [r14]
mov qword [rbp - 0x20], r13
test rsi, rsi
je 0x1401cb898
cmp qword [rdi + 0x128], r11
jne 0x1401cb898
mov r15, qword [rsi + 8]
mov rax, qword [rsi]
test r15, r15
mov qword [r14], rax
cmove r15, r13
cmp qword [r14], r15
jge 0x1401cb88e
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r12
mov rdx, r14
mov rcx, rdi
call fcn.1401cc900
xor r11d, r11d
mov ebx, eax
test eax, eax
je 0x1401cb864
test ebx, ebx
jne 0x1401cb947
jmp 0x1401cb89b
mov qword [r14], r11
mov rsi, r13
cmp qword [r14], rsi
jge 0x1401cb93f
lea rax, [rbp + 0x58]
mov dword [rbp + 0x50], r11d
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.1401d0974
mov r13d, dword [rbp + 0x50]
xor r11d, r11d
mov ebx, eax
test r13d, r13d
jne 0x1401cb8fe
mov eax, dword [rdi + 0xb8]
add rax, qword [rdi + 0x68]
cmp rax, qword [r14]
jne 0x1401cb8fe
mov rcx, qword [rdi + 0xc8]
mov rax, rsi
sub rax, qword [r14]
add rcx, 8
cqo
idiv rcx
mov r13, rax
mov dword [rbp + 0x50], eax
mov r15d, r11d
test ebx, ebx
jne 0x1401cb93f
cmp r15d, r13d
jae 0x1401cb937
cmp qword [r14], rsi
jge 0x1401cb937
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r12
mov rdx, r14
mov rcx, rdi
call fcn.1401cc900
xor r11d, r11d
inc r15d
mov ebx, eax
test eax, eax
je 0x1401cb905
test ebx, ebx
je 0x1401cb89e
mov rsi, qword [rbp + 0x48]
mov r13, qword [rbp - 0x20]
mov ecx, ebx
test rsi, rsi
je 0x1401cba67
mov rax, qword [rdi + 0xc8]
mov r15d, dword [rsi + 0x1c]
add rax, 4
mov rbx, qword [rdi + 0x128]
imul rax, r15
mov qword [rbp + 0x48], rax
test rbx, rbx
je 0x1401cba38
mov eax, dword [rbx + 0x88]
cmp dword [rsi + 0x30], eax
je 0x1401cb996
mov dword [rsi + 0x24], r11d
mov ecx, r11d
mov eax, dword [rbx + 0x88]
mov dword [rsi + 0x30], eax
jmp 0x1401cb999
mov ecx, dword [rsi + 0x24]
cmp ecx, dword [rbx + 0x58]
jae 0x1401cba2f
mov dword [rbx + 0x58], ecx
mov eax, dword [rsi + 0x28]
mov dword [rbx + 0x60], eax
mov eax, dword [rsi + 0x2c]
mov dword [rbx + 0x64], eax
test ecx, ecx
je 0x1401cba2f
lea edx, [rcx + 0x1000]
mov rcx, rbx
sub rdx, 0xfdf
lea r8, [rbp - 0x18]
shr rdx, 0xc
call fcn.1402280b8
xor r11d, r11d
test eax, eax
jne 0x1401cba2f
mov r9d, dword [rbx + 0x58]
mov r10d, 0x2000
mov rdx, qword [rbp - 0x18]
sub r9d, dword [rbp - 8]
mov r8, rdx
movzx eax, word [rdx]
cmp eax, r9d
jle 0x1401cb9fa
mov word [r8], r11w
add r8, 2
add rdx, 2
sub r10, 1
jne 0x1401cb9ee
mov edx, dword [rbp - 0x18]
lea eax, [r9*4]
mov rcx, qword [rbp - 0x10]
sub edx, eax
sub edx, ecx
movsxd rax, r9d
movsxd r8, edx
xor edx, edx
lea rcx, [rcx + rax*4]
call sub.VCRUNTIME140.dll_memset
xor r11d, r11d
mov r15d, dword [rsi + 0x1c]
mov ebx, r11d
jmp 0x1401cba3e
mov ebx, ecx
test ecx, ecx
jne 0x1401cba67
cmp r15d, dword [rdi + 0x3c]
jae 0x1401cba67
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov r8, r12
lea rdx, [rbp + 0x48]
mov rcx, rdi
call fcn.1401cc900
inc r15d
mov ebx, eax
test eax, eax
je 0x1401cba3e
mov rcx, r12
call fcn.1401dd81c
test ebx, ebx
jne 0x1401cba76
mov qword [r14], r13
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret