Function at 0x1401add70
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, 0x48
mov qword [rsp + 0x40], rcx
mov rsi, rcx
mov rdi, rdx
mov rbx, r8
mov ebp, r9d
test rdi, rdi
je 0x1401adfdc
cmp qword [rsi + 8], 0
jne 0x1401addab
mov rcx, rsi
xor edx, edx
call fcn.1401adce0
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
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
xor r13d, r13d
mov rdx, qword [rsi + 8]
mov ecx, dword [rdx + 8]
mov r10d, ecx
mov r8d, r12d
imul r8, qword [rsi + 0x30]
shr r8, 0x20
inc r8
mov r10d, r10d
imul r10, r8
shr r10, 0x20
cmp r10d, ecx
jae 0x1401ae004
mov ecx, r10d
lea rax, [rdx + rcx*4 + 0x10]
mov qword [rsp + 0x30], rax
mov r9d, dword [rax]
dec r9d
mov r11d, dword [r14 + 8]
mov dword [rsp + 0x3c], r11d
cmp r11d, r9d
jbe 0x1401adeb6
mov edx, r9d
lea rdx, [rdx + rdx*2]
lea r8, [r14 + rdx*8 + 0x10]
mov qword [rsp + 0x20], r8
cmp dword [r8 + 0x10], r12d
jne 0x1401ade53
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
jne 0x1401ade6c
mov r8, qword [rsp + 0x20]
mov r9d, dword [r8 + 0x14]
inc r13d
cmp dword [rsp + 0x3c], r13d
jb 0x1401adfe7
jmp 0x1401ade0d
cmp bpl, 1
jne 0x1401ade99
mov r8, qword [rsp + 0x20]
lea rcx, [r8 + 8]
mov rdx, rbx
call fcn.140003850
mov eax, 1
add rsp, 0x48
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
cmp bpl, 2
je 0x1401adfed
xor eax, eax
add rsp, 0x48
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, dword [rsi + 0x40]
test ecx, ecx
jle 0x1401adee7
mov edx, dword [rsi + 0x3c]
mov ebp, edx
cmp edx, dword [rsp + 0x3c]
jae 0x1401ae004
mov r11d, edx
lea rdx, [r11 + r11*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 0x1401adf47
mov ecx, dword [rsi + 0x38]
mov ebp, ecx
cmp dword [rsp + 0x3c], ebp
jne 0x1401adf3d
call fcn.1400fb210
mov edx, eax
mov rcx, rsi
xor r8d, r8d
call fcn.1401ae010
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 0x1401ae004
mov ecx, eax
lea rax, [rdx + rcx*4 + 0x10]
mov r14, rax
mov qword [rsp + 0x30], r14
lea edx, [rbp + 1]
mov dword [rsi + 0x38], edx
mov r14, qword [rsi + 0x10]
cmp ebp, dword [r14 + 8]
jae 0x1401ae004
mov edx, ebp
lea rdx, [rdx + rdx*2]
lea r8, [r14 + rdx*8 + 0x10]
mov qword [rsp + 0x28], r8
mov dword [r8 + 0x10], r12d
mov rax, qword [rsp + 0x30]
mov edx, dword [rax]
dec edx
mov dword [r8 + 0x14], edx
mov rcx, r8
mov rdx, rdi
call fcn.140003850
mov rdi, qword [rsp + 0x28]
lea rcx, [rdi + 8]
mov rdx, rbx
call fcn.140003850
inc ebp
mov rdi, qword [rsp + 0x30]
mov dword [rdi], ebp
inc dword [rsi + 0x44]
cmp r13d, 0x64
jbe 0x1401adfc6
mov rdx, r15
lea rcx, [0x140296a18]
call fcn.1400fe640
test rax, rax
je 0x1401adfc6
mov edx, dword [r14 + 8]
mov rcx, rsi
mov r8d, 1
call fcn.1401ae010
mov eax, 1
add rsp, 0x48
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
call fcn.1400af950
int3
call fcn.1400afe20
int3
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x88]
mov rdx, rdi
call fcn.1401cace0
int3
call fcn.140124940
int3