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

Disassembly:
mov dword [rsp + 8], ecx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov ebp, ecx
mov r14, qword [0x7ff7e17b40a8]
lea rbx, [r14 + 0x2fd8]
mov qword [rsp + 0x30], rbx
xor r11d, r11d
test ecx, ecx
je 0x7ff7e14d919f
mov edx, ecx
mov rcx, rbx
call fcn.7ff7e14e3c80
mov r13, rax
test rax, rax
je 0x7ff7e14d9529
mov r12d, dword [rax + 0xb0]
mov eax, r12d
shl eax, 0x1d
sar eax, 0x1d
mov dword [rsp + 0x20], eax
shl r12d, 0x1a
sar r12d, 0x1d
mov dword [rsp + 0xb8], r12d
xor r11d, r11d
jmp 0x7ff7e14d91b2
mov dword [rsp + 0x20], r11d
mov r12d, r11d
mov dword [rsp + 0xb8], r11d
mov r13, r11
mov edi, r11d
mov qword [rsp + 0x38], 0
mov esi, r11d
mov r15, r11
mov qword [rsp + 0x40], r11
mov edx, r11d
mov dword [rsp + 0xb0], edx
mov byte [rsp + 0xa8], 0
cmp dword [rbx], 0
jle 0x7ff7e14d93a3
mov r8, r11
mov qword [rsp + 0x28], r11
xor r9b, r9b
mov dword [rsp + 0xa8], r9d
mov r10d, 1
mov r12d, dword [rsp + 0xa0]
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov rbp, qword [rax + r8 + 8]
test rbp, rbp
je 0x7ff7e14d937a
test r12d, r12d
je 0x7ff7e14d9255
cmp dword [rbp], r12d
je 0x7ff7e14d937a
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x7ff7e14d937a
nop
lea rcx, [rax]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x7ff7e14d9240
cmp dword [rcx], r12d
jne 0x7ff7e14d937a
mov eax, dword [rbp + 8]
shr eax, 0xb
test al, 1
movzx r9d, r9b
cmovne r9d, r10d
mov dword [rsp + 0xa8], r9d
test r12d, r12d
je 0x7ff7e14d92a3
mov edx, r11d
cmp dword [r14 + 0x2fe8], 0
jle 0x7ff7e14d92a3
mov rcx, r11
mov rax, qword [r14 + 0x2ff0]
cmp qword [rcx + rax + 0x10], rbp
jne 0x7ff7e14d9294
mov dword [rcx + rax], r11d
inc edx
add rcx, 0x40
cmp edx, dword [r14 + 0x2fe8]
jl 0x7ff7e14d9282
test r13, r13
je 0x7ff7e14d92b3
mov rdx, rbp
mov rcx, r13
call fcn.7ff7e14db450
cmp esi, edi
jne 0x7ff7e14d9352
lea ebx, [rsi + 1]
test edi, edi
je 0x7ff7e14d92cd
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x7ff7e14d92d2
mov eax, 8
cmp eax, ebx
cmovg ebx, eax
cmp ebx, edi
jle 0x7ff7e14d934b
mov rax, qword [0x7ff7e17b40a8]
test rax, rax
je 0x7ff7e14d92ed
inc dword [rax + 0x3b0]
movsxd rcx, ebx
shl rcx, 3
mov rdx, qword [0x7ff7e17b40b0]
call qword [0x7ff7e16381d0]
mov rdi, rax
test r15, r15
je 0x7ff7e14d933d
movsxd r8, esi
shl r8, 3
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy_1
mov rdx, qword [0x7ff7e17b40a8]
test rdx, rdx
je 0x7ff7e14d932d
dec dword [rdx + 0x3b0]
mov rdx, qword [0x7ff7e17b40b0]
mov rcx, r15
call qword [0x7ff7e16381d8]
mov r15, rdi
mov qword [rsp + 0x40], rdi
mov edi, ebx
mov dword [rsp + 0x3c], ebx
lea rbx, [r14 + 0x2fd8]
movsxd rax, esi
mov qword [r15 + rax*8], rbp
inc esi
mov dword [rsp + 0x38], esi
mov edx, dword [rsp + 0xb0]
mov r8, qword [rsp + 0x28]
mov r9d, dword [rsp + 0xa8]
xor r11d, r11d
lea r10d, [r11 + 1]
inc edx
mov dword [rsp + 0xb0], edx
add r8, 0x10
mov qword [rsp + 0x28], r8
cmp edx, dword [rbx]
jl 0x7ff7e14d9210
mov r12d, dword [rsp + 0xb8]
mov ebp, dword [rsp + 0xa0]
test r13, r13
je 0x7ff7e14d93c9
and dword [r13 + 0xb0], 0xffffffc0
and r12d, 7
shl r12d, 3
mov eax, dword [rsp + 0x20]
and eax, 7
or r12d, eax
or dword [r13 + 0xb0], r12d
mov r10, qword [r14 + 0x3040]
test r10, r10
je 0x7ff7e14d9436
add r10, 4
je 0x7ff7e14d9436
nop dword [rax + rax]
mov r8d, dword [r10 + 0x14]
test r8d, r8d
je 0x7ff7e14d940b
mov edx, r11d
test esi, esi
jle 0x7ff7e14d940b
mov rcx, r15
mov rax, qword [rcx]
cmp dword [rax], r8d
je 0x7ff7e14d9407
inc edx
add rcx, 8
cmp edx, esi
jl 0x7ff7e14d93f3
jmp 0x7ff7e14d940b
mov dword [r10 + 0x14], ebp
movsxd r9, dword [r10 - 4]
add r9, r10
movsxd rcx, dword [r14 + 0x3038]
mov rdx, qword [r14 + 0x3040]
add rdx, 4
add rdx, rcx
mov r10, r11
cmp r9, rdx
cmovne r10, r9
test r10, r10
jne 0x7ff7e14d93e0
cmp esi, 1
jle 0x7ff7e14d9454
movsxd rdx, esi
lea r9, [0x7ff7e14db230]
mov r8d, 8
mov rcx, r15
call qword [sym.imp.ucrtbase.dll_qsort]
test esi, esi
jle 0x7ff7e14d947d
mov rbx, r15
mov edi, esi
nop dword [rax]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, r14
call fcn.7ff7e14da830
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x7ff7e14d9460
mov rbx, qword [rsp + 0x30]
test ebp, ebp
jne 0x7ff7e14d94e8
mov rcx, qword [rbx + 8]
xor edi, edi
test rcx, rcx
je 0x7ff7e14d94b2
mov qword [rbx], rdi
mov rax, qword [0x7ff7e17b40a8]
test rax, rax
je 0x7ff7e14d94a1
dec dword [rax + 0x3b0]
mov rdx, qword [0x7ff7e17b40b0]
call qword [0x7ff7e16381d8]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x7ff7e14d9501
mov qword [rbx + 0x10], 0
mov rax, qword [0x7ff7e17b40a8]
test rax, rax
je 0x7ff7e14d94d5
dec dword [rax + 0x3b0]
mov rdx, qword [0x7ff7e17b40b0]
call qword [0x7ff7e16381d8]
mov qword [rbx + 0x18], rdi
jmp 0x7ff7e14d9501
cmp byte [rsp + 0xa8], 0
je 0x7ff7e14d9501
or dword [r13 + 8], 0x800
mov qword [r13 + 0x88], r13
test r15, r15
je 0x7ff7e14d9529
mov rax, qword [0x7ff7e17b40a8]
test rax, rax
je 0x7ff7e14d9518
dec dword [rax + 0x3b0]
mov rdx, qword [0x7ff7e17b40b0]
mov rcx, r15
call qword [0x7ff7e16381d8]
nop
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret