Function at 0x140304aa0
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 rsi, rdx
mov edi, r8d
mov ebp, r9d
test rsi, rsi
je 0x140304cfd
cmp qword [rbx + 8], 0
jne 0x140304adb
mov rcx, rbx
xor edx, edx
call fcn.140304a00
mov r14, qword [rbx + 0x10]
mov r15, qword [rbx + 0x18]
mov rcx, qword [rbx]
mov rcx, qword [rcx + 0x30]
mov r10, qword [rcx + 0x90]
mov rcx, r15
mov rdx, rsi
call qword [r10]
mov r13d, eax
xor r12d, r12d
mov rdx, qword [rbx + 8]
mov ecx, r13d
imul rcx, qword [rbx + 0x30]
shr rcx, 0x20
inc rcx
mov r10d, dword [rdx + 8]
mov r8d, r10d
imul rcx, r8
shr rcx, 0x20
cmp ecx, r10d
jae 0x140304d19
mov ecx, ecx
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 0x140304be1
mov edx, r9d
lea rdx, [rdx + rdx*2]
lea r8, [r14 + rdx*8 + 0x10]
mov qword [rsp + 0x20], r8
cmp dword [r8 + 8], r13d
jne 0x140304b86
mov rcx, qword [rbx]
mov rcx, qword [rcx + 0x30]
mov r10, qword [rcx + 0x88]
mov rdx, qword [r14 + rdx*8 + 0x10]
mov rcx, r15
mov r8, rsi
call qword [r10]
test eax, eax
jne 0x140304b9f
mov r8, qword [rsp + 0x20]
mov r9d, dword [r8 + 0xc]
inc r12d
cmp dword [rsp + 0x3c], r12d
jb 0x140304d08
jmp 0x140304b3d
cmp bpl, 1
jne 0x140304bc4
mov r8, qword [rsp + 0x20]
mov dword [r8 + 0x10], edi
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 0x140304d0e
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 [rbx + 0x40]
test ecx, ecx
jle 0x140304c12
mov edx, dword [rbx + 0x3c]
mov ebp, edx
cmp edx, dword [rsp + 0x3c]
jae 0x140304d19
mov r11d, edx
lea rdx, [r11 + r11*2]
mov edx, dword [r14 + rdx*8 + 0x1c]
neg edx
add edx, 0xfffffffd
mov dword [rbx + 0x3c], edx
dec ecx
mov dword [rbx + 0x40], ecx
jmp 0x140304c71
mov ecx, dword [rbx + 0x38]
mov ebp, ecx
cmp dword [rsp + 0x3c], ebp
jne 0x140304c67
call fcn.1401e4fc0
mov edx, eax
mov rcx, rbx
xor r8d, r8d
call fcn.140304ee0
mov rcx, qword [rbx + 8]
mov edx, r13d
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 0x140304d19
mov edx, edx
lea rax, [rcx + rdx*4 + 0x10]
mov r14, rax
mov qword [rsp + 0x30], r14
lea ecx, [rbp + 1]
mov dword [rbx + 0x38], ecx
mov r14, qword [rbx + 0x10]
cmp ebp, dword [r14 + 8]
jae 0x140304d19
mov ecx, ebp
lea rcx, [rcx + rcx*2]
lea r8, [r14 + rcx*8 + 0x10]
mov qword [rsp + 0x28], r8
mov dword [r8 + 8], r13d
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
dec ecx
mov dword [r8 + 0xc], ecx
mov rcx, r8
mov rdx, rsi
call fcn.140006310
mov rsi, qword [rsp + 0x28]
mov dword [rsi + 0x10], edi
inc ebp
mov rsi, qword [rsp + 0x30]
mov dword [rsi], ebp
inc dword [rbx + 0x44]
cmp r12d, 0x64
jbe 0x140304ce7
mov rdx, r15
lea rcx, [0x14043e288]
call fcn.1401e88a0
test rax, rax
je 0x140304ce7
mov edx, dword [r14 + 8]
mov rcx, rbx
mov r8d, 1
call fcn.140304ee0
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.140185280
int3
call fcn.140185890
int3
mov rdx, rsi
xor ecx, ecx
call fcn.1403857a0
int3
call fcn.1402133c0
int3