Function at 0x7ff7ec57b930
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 [0x7ff7ec8704f0]
lea rbx, [r14 + 0x2fd8]
mov qword [rsp + 0x30], rbx
xor r11d, r11d
test ecx, ecx
je 0x7ff7ec57b99f
mov edx, ecx
mov rcx, rbx
call fcn.7ff7ec586480
mov r13, rax
test rax, rax
je 0x7ff7ec57bd29
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 0x7ff7ec57b9b2
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 0x7ff7ec57bba3
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 0x7ff7ec57bb7a
test r12d, r12d
je 0x7ff7ec57ba55
cmp dword [rbp], r12d
je 0x7ff7ec57bb7a
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x7ff7ec57bb7a
nop
lea rcx, [rax]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x7ff7ec57ba40
cmp dword [rcx], r12d
jne 0x7ff7ec57bb7a
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 0x7ff7ec57baa3
mov edx, r11d
cmp dword [r14 + 0x2fe8], 0
jle 0x7ff7ec57baa3
mov rcx, r11
mov rax, qword [r14 + 0x2ff0]
cmp qword [rcx + rax + 0x10], rbp
jne 0x7ff7ec57ba94
mov dword [rcx + rax], r11d
inc edx
add rcx, 0x40
cmp edx, dword [r14 + 0x2fe8]
jl 0x7ff7ec57ba82
test r13, r13
je 0x7ff7ec57bab3
mov rdx, rbp
mov rcx, r13
call fcn.7ff7ec57dc50
cmp esi, edi
jne 0x7ff7ec57bb52
lea ebx, [rsi + 1]
test edi, edi
je 0x7ff7ec57bacd
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x7ff7ec57bad2
mov eax, 8
cmp eax, ebx
cmovg ebx, eax
cmp ebx, edi
jle 0x7ff7ec57bb4b
mov rax, qword [0x7ff7ec8704f0]
test rax, rax
je 0x7ff7ec57baed
inc dword [rax + 0x3b0]
movsxd rcx, ebx
shl rcx, 3
mov rdx, qword [0x7ff7ec8704f8]
call qword [0x7ff7ec6f41f0]
mov rdi, rax
test r15, r15
je 0x7ff7ec57bb3d
movsxd r8, esi
shl r8, 3
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [0x7ff7ec8704f0]
test rdx, rdx
je 0x7ff7ec57bb2d
dec dword [rdx + 0x3b0]
mov rdx, qword [0x7ff7ec8704f8]
mov rcx, r15
call qword [0x7ff7ec6f41f8]
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 0x7ff7ec57ba10
mov r12d, dword [rsp + 0xb8]
mov ebp, dword [rsp + 0xa0]
test r13, r13
je 0x7ff7ec57bbc9
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 0x7ff7ec57bc36
add r10, 4
je 0x7ff7ec57bc36
nop dword [rax + rax]
mov r8d, dword [r10 + 0x14]
test r8d, r8d
je 0x7ff7ec57bc0b
mov edx, r11d
test esi, esi
jle 0x7ff7ec57bc0b
mov rcx, r15
mov rax, qword [rcx]
cmp dword [rax], r8d
je 0x7ff7ec57bc07
inc edx
add rcx, 8
cmp edx, esi
jl 0x7ff7ec57bbf3
jmp 0x7ff7ec57bc0b
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 0x7ff7ec57bbe0
cmp esi, 1
jle 0x7ff7ec57bc54
movsxd rdx, esi
lea r9, [0x7ff7ec57da30]
mov r8d, 8
mov rcx, r15
call qword [sym.imp.ucrtbase.dll_qsort]
test esi, esi
jle 0x7ff7ec57bc7d
mov rbx, r15
mov edi, esi
nop dword [rax]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, r14
call fcn.7ff7ec57d030
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x7ff7ec57bc60
mov rbx, qword [rsp + 0x30]
test ebp, ebp
jne 0x7ff7ec57bce8
mov rcx, qword [rbx + 8]
xor edi, edi
test rcx, rcx
je 0x7ff7ec57bcb2
mov qword [rbx], rdi
mov rax, qword [0x7ff7ec8704f0]
test rax, rax
je 0x7ff7ec57bca1
dec dword [rax + 0x3b0]
mov rdx, qword [0x7ff7ec8704f8]
call qword [0x7ff7ec6f41f8]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x7ff7ec57bd01
mov qword [rbx + 0x10], 0
mov rax, qword [0x7ff7ec8704f0]
test rax, rax
je 0x7ff7ec57bcd5
dec dword [rax + 0x3b0]
mov rdx, qword [0x7ff7ec8704f8]
call qword [0x7ff7ec6f41f8]
mov qword [rbx + 0x18], rdi
jmp 0x7ff7ec57bd01
cmp byte [rsp + 0xa8], 0
je 0x7ff7ec57bd01
or dword [r13 + 8], 0x800
mov qword [r13 + 0x88], r13
test r15, r15
je 0x7ff7ec57bd29
mov rax, qword [0x7ff7ec8704f0]
test rax, rax
je 0x7ff7ec57bd18
dec dword [rax + 0x3b0]
mov rdx, qword [0x7ff7ec8704f8]
mov rcx, r15
call qword [0x7ff7ec6f41f8]
nop
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret