Function at 0x14059c0e0
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 rbx, rcx
mov rbp, rdx
mov rsi, r8
mov r14d, r9d
test rbp, rbp
je 0x14059c356
cmp qword [rbx + 8], 0
je 0x14059c24b
mov r15, qword [rbx + 0x10]
mov r13, qword [rbx + 0x18]
mov rcx, qword [rbx]
mov rcx, qword [rcx + 0x30]
mov r10, qword [rcx + 0x88]
mov rcx, r13
mov rdx, rbp
call qword [r10]
mov r12d, eax
xor edi, edi
mov rcx, qword [rbx + 8]
mov eax, r12d
imul rax, qword [rbx + 0x30]
shr rax, 0x20
inc rax
mov edx, dword [rcx + 8]
mov r8d, edx
imul rax, r8
shr rax, 0x20
cmp eax, edx
jae 0x14059c3b2
mov eax, eax
lea rax, [rcx + rax*4 + 0x10]
mov edx, dword [rax]
dec edx
mov r8d, dword [r15 + 8]
mov dword [rsp + 0x38], r8d
cmp r8d, edx
jbe 0x14059c1ae
mov ecx, edx
shl rcx, 5
lea r10, [r15 + rcx + 0x10]
mov qword [rsp + 0x20], r10
cmp dword [r10 + 8], r12d
je 0x14059c361
mov edx, dword [r10 + 0xc]
inc edi
mov dword [rsp + 0x3c], edi
cmp r8d, edi
jb 0x14059c3ac
mov edi, dword [rsp + 0x3c]
jmp 0x14059c16d
cmp dword [rbx + 0x40], 0
jg 0x14059c2fa
mov r14d, dword [rbx + 0x38]
cmp r8d, r14d
je 0x14059c25a
lea ecx, [r14 + 1]
mov dword [rbx + 0x38], ecx
mov r15, qword [rbx + 0x10]
mov dword [rsp + 0x3c], edi
cmp r14d, dword [r15 + 8]
jae 0x14059c3b2
mov ecx, r14d
shl rcx, 5
lea r8, [r15 + rcx + 0x10]
mov qword [rsp + 0x28], r8
mov dword [r8 + 8], r12d
mov qword [rsp + 0x30], rax
mov ecx, dword [rax]
dec ecx
mov dword [r8 + 0xc], ecx
mov rcx, r8
mov rdx, rbp
call fcn.14000f0d0
mov rbp, qword [rsp + 0x28]
lea rdi, [rbp + 0x10]
call fcn.14000f250
movsq qword [rdi], qword [rsi]
inc r14d
mov rbp, qword [rsp + 0x30]
mov dword [rbp], r14d
inc dword [rbx + 0x44]
cmp dword [rsp + 0x3c], 0x64
ja 0x14059c327
mov eax, 1
add rsp, 0x48
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
xor edx, edx
call fcn.140522870
jmp 0x14059c115
mov ecx, dword [rbx + 0x38]
call fcn.1403466f0
mov edx, eax
mov rcx, rbx
xor r8d, r8d
call fcn.14059c3c0
mov rcx, qword [rbx + 8]
mov edx, r12d
imul rdx, qword [rbx + 0x30]
shr rdx, 0x20
inc rdx
mov eax, dword [rcx + 8]
mov r8d, eax
imul rdx, r8
shr rdx, 0x20
cmp edx, eax
jae 0x14059c3b2
mov edx, edx
lea rax, [rcx + rdx*4 + 0x10]
mov r15, rax
mov rax, r15
jmp 0x14059c1c5
cmp r14b, 1
jne 0x14059c2d6
mov rdi, qword [rsp + 0x20]
add rdi, 0x10
call fcn.14000f250
movsq qword [rdi], qword [rsi]
mov eax, 1
add rsp, 0x48
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
cmp r14b, 2
jne 0x14059c2e7
mov rdx, rbp
xor ecx, ecx
call fcn.140655940
int3
xor eax, eax
add rsp, 0x48
pop rbx
pop rbp
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, dword [rbx + 0x3c]
mov edx, dword [rbx + 0x3c]
cmp edx, r8d
jae 0x14059c3b2
shl rdx, 5
mov edx, dword [r15 + rdx + 0x1c]
neg edx
add edx, 0xfffffffd
mov dword [rbx + 0x3c], edx
dec dword [rbx + 0x40]
mov dword [rsp + 0x3c], edi
jmp 0x14059c1d4
mov rdx, r13
lea rcx, [0x140769fb0]
call fcn.140349f20
test rax, rax
je 0x14059c235
mov edx, dword [r15 + 8]
mov rcx, rbx
mov r8d, 1
call fcn.14059c3c0
jmp 0x14059c235
mov ecx, 4
call fcn.1402e9750
int3
mov qword [rsp + 0x30], rax
mov rcx, qword [rbx]
mov rcx, qword [rcx + 0x30]
mov r9, qword [rcx + 0x80]
mov edx, edx
shl rdx, 5
mov rdx, qword [r15 + rdx + 0x10]
mov rcx, r13
mov r10, r9
mov r8, rbp
call qword [r9]
test eax, eax
jne 0x14059c2aa
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 0xc]
inc edi
cmp dword [rsp + 0x38], edi
mov rax, qword [rsp + 0x30]
jae 0x14059c16d
call fcn.1402e9d30
int3
call fcn.1402e92d0
int3