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

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x50], rcx
mov rsi, rcx
mov rdi, rdx
mov rbp, r8
mov ebx, r9d
test rdi, rdi
je 0x1401c6c63
cmp qword [rsi + 8], 0
jne 0x1401c697b
mov rcx, rsi
xor edx, edx
call fcn.1401c68b0
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
test r15, r15
je 0x1401c69a1
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x30]
mov r10, qword [rcx + 0x78]
mov rcx, r15
mov rdx, rdi
call qword [r10]
mov r12d, eax
jmp 0x1401c69ad
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + 0x28]
mov r12d, eax
xor r13d, r13d
mov rcx, qword [rsi + 8]
mov eax, dword [rcx + 8]
mov edx, r12d
imul rdx, qword [rsi + 0x30]
shr rdx, 0x20
inc rdx
mov eax, eax
imul rax, rdx
shr rax, 0x20
cmp eax, dword [rcx + 8]
jae 0x1401c6c8b
mov eax, eax
lea rax, [rcx + rax*4 + 0x10]
mov qword [rsp + 0x40], rax
mov edx, dword [rax]
dec edx
mov dword [rsp + 0x4c], edx
test r15, r15
jne 0x1401c6aab
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x30]
mov rcx, qword [rcx]
call fcn.1401b9760
mov qword [rsp + 0x30], rax
mov r9d, dword [r14 + 8]
mov dword [rsp + 0x48], r9d
mov r10d, dword [rsp + 0x4c]
cmp r9d, r10d
jbe 0x1401c6b3d
mov edx, r10d
lea rdx, [rdx + rdx*2]
lea r11, [r14 + rdx*8 + 0x10]
mov qword [rsp + 0x28], r11
cmp dword [r11 + 0x10], r12d
jne 0x1401c6a53
mov rdx, qword [r14 + rdx*8 + 0x10]
mov rcx, rax
mov r8, rdi
mov r10, qword [rax]
call qword [r10 + 0x38]
test eax, eax
mov rax, qword [rsp + 0x30]
jne 0x1401c6a74
mov r11, qword [rsp + 0x28]
mov r10d, dword [r11 + 0x14]
mov r8d, r10d
inc r13d
cmp dword [rsp + 0x48], r13d
jb 0x1401c6c85
mov dword [rsp + 0x4c], r8d
jmp 0x1401c6a0a
cmp bl, 1
jne 0x1401c6a8f
mov r11, qword [rsp + 0x28]
lea rcx, [r11 + 8]
mov rdx, rbp
call fcn.140004660
jmp 0x1401c6c4d
cmp bl, 2
je 0x1401c6c6e
xor eax, eax
add rsp, 0x58
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, dword [r14 + 8]
mov dword [rsp + 0x48], r9d
mov edx, dword [rsp + 0x4c]
cmp r9d, edx
jbe 0x1401c6b3d
mov edx, edx
lea rdx, [rdx + rdx*2]
lea r11, [r14 + rdx*8 + 0x10]
mov qword [rsp + 0x20], r11
cmp dword [r11 + 0x10], r12d
jne 0x1401c6b1d
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x30]
mov r10, qword [rcx + 0x70]
mov rdx, qword [r14 + rdx*8 + 0x10]
mov rcx, r15
mov r8, rdi
call qword [r10]
test eax, eax
je 0x1401c6b1d
cmp bl, 1
jne 0x1401c6b0f
mov r13, qword [rsp + 0x20]
lea rcx, [r13 + 8]
mov rdx, rbp
call fcn.140004660
jmp 0x1401c6c4d
cmp bl, 2
je 0x1401c6c6e
jmp 0x1401c6a98
mov r11, qword [rsp + 0x20]
mov edx, dword [r11 + 0x14]
inc r13d
cmp dword [rsp + 0x48], r13d
jb 0x1401c6c85
mov dword [rsp + 0x4c], edx
jmp 0x1401c6aab
mov ecx, dword [rsi + 0x40]
test ecx, ecx
jle 0x1401c6b6e
mov edx, dword [rsi + 0x3c]
mov ebx, edx
cmp edx, dword [rsp + 0x48]
jae 0x1401c6c8b
mov r9d, edx
lea rdx, [r9 + r9*2]
mov edx, dword [r14 + rdx*8 + 0x24]
neg edx
add edx, 0xfffffffd
mov dword [rsi + 0x3c], edx
dec ecx
mov dword [rsi + 0x40], ecx
jmp 0x1401c6bce
mov ecx, dword [rsi + 0x38]
mov ebx, ecx
cmp dword [rsp + 0x48], ebx
jne 0x1401c6bc4
call fcn.140125440
mov edx, eax
mov rcx, rsi
xor r8d, r8d
call fcn.1401c6ca0
mov rdx, qword [rsi + 8]
mov ecx, dword [rdx + 8]
mov eax, ecx
mov r8d, r12d
imul r8, qword [rsi + 0x30]
shr r8, 0x20
inc r8
mov eax, eax
imul rax, r8
shr rax, 0x20
cmp eax, ecx
jae 0x1401c6c8b
mov ecx, eax
lea rax, [rdx + rcx*4 + 0x10]
mov r14, rax
mov qword [rsp + 0x40], r14
lea edx, [rbx + 1]
mov dword [rsi + 0x38], edx
mov r14, qword [rsi + 0x10]
cmp ebx, dword [r14 + 8]
jae 0x1401c6c8b
mov edx, ebx
lea rdx, [rdx + rdx*2]
lea r8, [r14 + rdx*8 + 0x10]
mov qword [rsp + 0x38], r8
mov dword [r8 + 0x10], r12d
mov rax, qword [rsp + 0x40]
mov edx, dword [rax]
dec edx
mov dword [r8 + 0x14], edx
mov rcx, r8
mov rdx, rdi
call fcn.140004660
mov rdi, qword [rsp + 0x38]
lea rcx, [rdi + 8]
mov rdx, rbp
call fcn.140004660
inc ebx
mov rdi, qword [rsp + 0x40]
mov dword [rdi], ebx
inc dword [rsi + 0x44]
cmp r13d, 0x64
jbe 0x1401c6c4d
mov rdx, r15
lea rcx, [0x14033ec58]
call fcn.140128a10
test rax, rax
je 0x1401c6c4d
mov edx, dword [r14 + 8]
mov rcx, rsi
mov r8d, 1
call fcn.1401c6ca0
mov eax, 1
add rsp, 0x58
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
call fcn.1400d69b0
int3
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x88]
mov rdx, rdi
call fcn.1401d4150
int3
call fcn.1400d6f00
int3
call fcn.1401529d0
int3