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

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r10, qword [rcx + 0x30]
mov r12d, 1
xor ecx, ecx
mov dword [rdx], r12d
mov rdi, rdx
mov qword [rbp + 0x40], r10
mov r11d, r8d
mov eax, r12d
cpuid
mov r8d, ebx
xor esi, esi
shr r8d, 0x18
mov r13d, r9d
mov dword [rdi + 4], r8d
mov r14d, ecx
mov r9d, eax
bt edx, 0x1c
jae 0x180023066
shr ebx, 0x10
movzx eax, bl
sub eax, r12d
jne 0x18002301f
mov eax, esi
mov ecx, eax
mov eax, r12d
shl eax, cl
mov dword [rdi + 8], eax
jmp 0x18002306a
mov ecx, r12d
test eax, 0xffff0000
je 0x180023031
shr eax, 0x10
mov ecx, 0x11
test eax, 0xff00
je 0x18002303e
shr eax, 8
add ecx, 8
test al, 0xf0
je 0x180023048
shr eax, 4
add ecx, 4
test al, 0xc
je 0x180023052
shr eax, 2
add ecx, 2
test al, 2
lea eax, [rcx + 1]
cmove eax, ecx
mov ecx, eax
mov eax, r12d
shl eax, cl
mov dword [rdi + 8], eax
jmp 0x18002306a
mov dword [rdi + 8], r12d
mov r15d, dword [rbp + 0x68]
xor edx, edx
mov eax, r8d
mov ebx, r9d
div dword [rdi + 8]
shr ebx, 4
mov ecx, r9d
mov dword [rdi + 0x20], edx
and ebx, 0xf
mov dword [rdi + 0x14], eax
mov edx, r9d
shr edx, 0x10
mov eax, r9d
shr ecx, 8
and edx, 0xf
shr eax, 0x14
and ecx, 0xf
movzx eax, al
cmp r15d, r12d
ja 0x1800230b4
cmp ecx, 0xf
jne 0x1800230b4
add eax, ecx
mov dword [rdi + 0x90], eax
jmp 0x1800230ba
mov dword [rdi + 0x90], ecx
test r15d, r15d
jne 0x1800231c1
cmp ecx, 6
je 0x1800231d3
cmp ecx, 0xf
je 0x1800231d3
mov dword [rdi + 0x8c], ebx
and r9d, 0xf
mov dword [rdi + 0x88], r9d
test r15d, r15d
jne 0x18002310a
cmp dword [rdi + 0x90], 6
jne 0x18002310a
mov eax, dword [rdi + 0x8c]
cmp eax, 0x57
je 0x180023106
cmp eax, 0x85
jne 0x18002310a
mov dword [r10 + 0x14], r12d
xor eax, eax
mov qword [rbp - 0x18], rax
mov ecx, dword [rbp - 0x14]
mov qword [rbp - 0x20], rax
cpuid
mov dword [rbp - 0x1c], ebx
mov dword [rbp - 0x18], edx
movsd xmm0, qword [rbp - 0x1c]
movsd qword [rdi + 0x48], xmm0
mov dword [rdi + 0x50], ecx
cmp r13d, 0x80000004
jb 0x180023193
xor eax, eax
mov qword [rbp - 0x18], rax
mov ecx, dword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov eax, 0x80000002
cpuid
mov dword [rbp - 0x20], eax
mov eax, 0x80000003
mov dword [rbp - 0x1c], ebx
mov dword [rbp - 0x18], ecx
mov dword [rbp - 0x14], edx
movaps xmm0, xmmword [rbp - 0x20]
cpuid
mov dword [rbp - 0x20], eax
mov eax, 0x80000004
mov dword [rbp - 0x1c], ebx
mov dword [rbp - 0x18], ecx
mov dword [rbp - 0x14], edx
cpuid
movups xmmword [rdi + 0x55], xmm0
movaps xmm0, xmmword [rbp - 0x20]
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], ebx
mov dword [rbp - 0x18], ecx
mov dword [rbp - 0x14], edx
movups xmmword [rdi + 0x65], xmm0
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdi + 0x75], xmm0
test r15d, r15d
je 0x180023203
cmp r13d, 0x80000008
jb 0x180023203
mov ecx, r14d
mov eax, 0x80000008
cpuid
mov r14d, ecx
mov dword [rbp - 0x14], edx
shr ecx, 0xc
and ecx, 0xf
jne 0x1800231e3
movzx eax, r14b
inc eax
jmp 0x1800231e8
cmp r15d, r12d
jne 0x1800230d5
cmp ecx, 0xf
jne 0x1800230d5
shl edx, 4
add edx, ebx
mov dword [rdi + 0x8c], edx
jmp 0x1800230db
mov eax, r12d
shl eax, cl
mov dword [rdi + 0xc], eax
xor edx, edx
mov eax, dword [rdi + 4]
div dword [rdi + 0xc]
mov dword [rdi + 0x10], r12d
mov dword [rdi + 0x14], eax
mov dword [rdi + 0x20], edx
mov dword [rdi + 0x28], edx
mov dword [rdi + 0x24], esi
mov dword [rdi + 0x3c], esi
mov qword [rdi + 0x40], rsi
test r15d, r15d
je 0x180023370
mov rax, qword [rbp + 0x60]
test dword [rax + 0x18], 0x400000
je 0x18002352b
mov eax, 0x8000001e
mov ecx, r14d
cpuid
mov edx, dword [rdi + 0x90]
mov dword [rdi + 4], eax
mov eax, esi
cmp edx, 0x16
je 0x180023241
movzx eax, cl
mov dword [rdi + 0x18], eax
movzx eax, bl
cmp edx, 0x16
ja 0x180023251
mov dword [rdi + 0x1c], eax
jmp 0x180023254
mov dword [rdi + 0x28], eax
xor ecx, ecx
mov eax, 0x8000001d
cpuid
mov r8d, esi
test al, 0x1f
je 0x180023288
mov r9d, esi
nop word [rax + rax]
inc r8d
mov eax, 0x8000001d
mov ecx, r8d
inc r9d
cpuid
test al, 0x1f
jne 0x180023270
mov dword [rdi + 0x3c], r9d
mov eax, dword [rdi + 0x3c]
lea rcx, [rax + rax*4]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x40], rax
xor ecx, ecx
mov r8, rax
mov r11d, esi
mov eax, 0x8000001d
cpuid
mov r9d, eax
mov r14d, edx
mov r15d, ecx
mov r10d, eax
and r9d, 0x1f
je 0x180023368
or r13d, 0xffffffff
nop word [rax + rax]
mov edx, ebx
mov dword [r8], r9d
and edx, 0xfff
lea r8, [r8 + 0x28]
inc edx
mov ecx, r10d
shr ecx, 5
mov eax, r10d
shr eax, 0xe
and ecx, 7
and eax, 0xfff
mov dword [r8 - 0x24], ecx
inc eax
mov dword [r8 - 0x18], edx
mov dword [r8 - 0x20], eax
mov ecx, ebx
shr ecx, 0xc
and ecx, 0x3ff
shr ebx, 0x16
inc ecx
inc ebx
bt r10d, 9
mov dword [r8 - 0x14], ecx
mov eax, ebx
cmovb eax, r13d
and r14d, 2
mov dword [r8 - 0xc], eax
inc r11d
lea eax, [r15 + 1]
mov dword [r8 - 0x10], r14d
mov dword [r8 - 8], eax
imul eax, ebx
imul eax, ecx
mov ecx, r11d
imul eax, edx
mov dword [r8 - 4], eax
mov eax, 0x8000001d
cpuid
mov r9d, eax
mov r14d, edx
mov r15d, ecx
mov r10d, eax
and r9d, 0x1f
jne 0x1800232d0
mov r10, qword [rbp + 0x40]
mov r11d, dword [rbp + 0x50]
mov r13d, dword [rbp + 0x68]
cmp r13d, r12d
je 0x1800234d7
cmp r11d, 4
jb 0x1800234d7
xor ecx, ecx
mov eax, 4
cpuid
mov r9d, esi
mov r8d, eax
test al, 0x1f
je 0x1800233f2
nop word [rax + rax]
cmp dword [r10 + 0x14], esi
je 0x1800233b2
mov eax, r8d
and eax, 0xe0
cmp al, 0x60
je 0x1800233f2
inc dword [rdi + 0x3c]
test r9d, r9d
jne 0x1800233de
mov eax, dword [rdi + 8]
xor edx, edx
shr r8d, 0x1a
lea ecx, [r8 + 1]
div ecx
mov dword [rdi + 0xc], ecx
xor edx, edx
mov ecx, eax
mov dword [rdi + 0x10], eax
mov eax, dword [rdi + 0x20]
div ecx
mov dword [rdi + 0x24], edx
mov dword [rdi + 0x28], eax
inc r9d
mov eax, 4
mov ecx, r9d
cpuid
mov r8d, eax
test al, 0x1f
jne 0x1800233a0
mov eax, dword [rdi + 0x3c]
lea rcx, [rax + rax*4]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x40], rax
xor ecx, ecx
mov r9, rax
mov r10d, esi
mov eax, 4
cpuid
mov r8d, eax
mov r11d, edx
mov r14d, ecx
and eax, 0x1f
je 0x1800234d7
mov r15, qword [rbp + 0x40]
or r13d, 0xffffffff
mov ecx, r8d
shr ecx, 5
and ecx, 7
cmp dword [r15 + 0x14], esi
je 0x180023448
cmp ecx, 3
je 0x1800234d3
mov dword [r9], eax
mov edx, ebx
mov dword [r9 + 4], ecx
and edx, 0xfff
inc edx
mov ecx, ebx
shr ecx, 0xc
mov eax, r8d
shr eax, 0xe
and ecx, 0x3ff
and eax, 0xfff
shr ebx, 0x16
inc eax
mov dword [r9 + 0x10], edx
mov dword [r9 + 8], eax
inc ecx
inc ebx
mov dword [r9 + 0x14], ecx
bt r8d, 9
mov eax, ebx
cmovb eax, r13d
and r11d, 2
mov dword [r9 + 0x1c], eax
inc r10d
lea eax, [r14 + 1]
mov dword [r9 + 0x18], r11d
mov dword [r9 + 0x20], eax
imul eax, ebx
imul eax, ecx
mov ecx, r10d
imul eax, edx
mov dword [r9 + 0x24], eax
mov eax, 4
cpuid
add r9, 0x28
mov r8d, eax
mov r11d, edx
mov r14d, ecx
and eax, 0x1f
jne 0x180023430
mov r13d, dword [rbp + 0x68]
test r13d, r13d
jne 0x18002385b
cmp dword [rbp + 0x50], 0xb
jb 0x18002385b
mov rax, qword [rbp + 0x60]
test dword [rax + 0x10], 0x200000
je 0x18002385b
mov r15d, esi
mov r14d, esi
mov r8d, esi
nop dword [rax]
nop dword [rax + rax]
mov eax, 0xb
mov ecx, r8d
cpuid
test eax, eax
jne 0x180023526
test ebx, ebx
je 0x180023790
inc r8d
jmp 0x180023510
cmp r13d, 0x80000005
jb 0x18002363e
mov ecx, r14d
mov eax, 0x80000005
cpuid
mov ebx, ecx
mov r15d, edx
shr ebx, 0xe
mov r14d, ecx
and ebx, 0x3fc00
je 0x1800235bd
mov edx, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r8, rax
test rax, rax
je 0x1800235bd
mov edx, dword [rdi + 0x3c]
mov qword [rdi + 0x40], rax
lea ecx, [rdx + 1]
mov dword [rdi + 0x3c], ecx
lea rdx, [rdx + rdx*4]
mov dword [rax + rdx*8], r12d
mov dword [rax + rdx*8 + 4], r12d
mov dword [rax + rdx*8 + 8], r12d
movzx eax, r14b
mov dword [r8 + rdx*8 + 0x10], eax
mov eax, r14d
shr eax, 0x10
movzx ecx, al
mov eax, 0xffffffff
cmp ecx, 0xff
mov qword [r8 + rdx*8 + 0x14], rsi
mov dword [r8 + rdx*8 + 0x24], ebx
cmove ecx, eax
mov dword [r8 + rdx*8 + 0x20], esi
mov dword [r8 + rdx*8 + 0x1c], ecx
mov ebx, r15d
shr ebx, 0xe
and ebx, 0x3fc00
je 0x18002363e
mov eax, dword [rdi + 0x3c]
mov rcx, qword [rdi + 0x40]
inc eax
lea rdx, [rax + rax*4]
shl rdx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r8, rax
test rax, rax
je 0x18002363e
mov edx, dword [rdi + 0x3c]
mov qword [rdi + 0x40], rax
lea ecx, [rdx + 1]
mov dword [rdi + 0x3c], ecx
lea rdx, [rdx + rdx*4]
mov dword [rax + rdx*8], 2
mov ecx, 0xffffffff
mov dword [rax + rdx*8 + 4], r12d
mov dword [rax + rdx*8 + 8], r12d
movzx eax, r15b
shr r15d, 0x10
mov dword [r8 + rdx*8 + 0x10], eax
movzx eax, r15b
cmp eax, 0xff
mov qword [r8 + rdx*8 + 0x14], rsi
mov dword [r8 + rdx*8 + 0x24], ebx
cmove eax, ecx
mov dword [r8 + rdx*8 + 0x20], esi
mov dword [r8 + rdx*8 + 0x1c], eax
cmp r13d, 0x80000006
jb 0x180023368
mov ecx, r14d
lea r13, [0x180063ca0]
mov eax, 0x80000006
cpuid
mov dword [rbp - 0x18], ecx
mov r14d, edx
mov dword [rbp - 0x14], edx
mov r15d, ecx
test ecx, 0xf000
je 0x1800236ee
mov ebx, ecx
shr ebx, 6
and ebx, 0x3fffc00
je 0x1800236ee
mov eax, dword [rdi + 0x3c]
mov rcx, qword [rdi + 0x40]
inc eax
lea rdx, [rax + rax*4]
shl rdx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r8, rax
test rax, rax
je 0x1800236ee
mov edx, dword [rdi + 0x3c]
mov qword [rdi + 0x40], rax
lea ecx, [rdx + 1]
lea rdx, [rdx + rdx*4]
mov dword [rdi + 0x3c], ecx
mov dword [rax + rdx*8], 3
mov dword [rax + rdx*8 + 4], 2
mov dword [rax + rdx*8 + 8], r12d
movzx eax, r15b
mov dword [r8 + rdx*8 + 0x10], eax
mov rax, qword [rbp - 0x18]
shr rax, 0xc
and eax, 0xf
mov qword [r8 + rdx*8 + 0x14], rsi
mov dword [r8 + rdx*8 + 0x24], ebx
mov dword [r8 + rdx*8 + 0x20], esi
mov eax, dword [r13 + rax*4]
mov dword [r8 + rdx*8 + 0x1c], eax
test r14d, 0xf000
je 0x180023368
mov ebx, r14d
and ebx, 0xfffc0000
add ebx, ebx
je 0x180023368
mov eax, dword [rdi + 0x3c]
mov rcx, qword [rdi + 0x40]
inc eax
lea rdx, [rax + rax*4]
shl rdx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r10, qword [rbp + 0x40]
mov r8, rax
mov r11d, dword [rbp + 0x50]
test rax, rax
je 0x180023370
mov edx, dword [rdi + 0x3c]
mov qword [rdi + 0x40], rax
lea ecx, [rdx + 1]
lea rdx, [rdx + rdx*4]
mov dword [rdi + 0x3c], ecx
mov dword [rax + rdx*8], 3
mov dword [rax + rdx*8 + 4], 3
mov eax, dword [rdi + 8]
mov dword [r8 + rdx*8 + 8], eax
movzx eax, r14b
mov dword [r8 + rdx*8 + 0x10], eax
mov eax, r14d
shr rax, 0xc
and eax, 0xf
mov qword [r8 + rdx*8 + 0x14], rsi
mov dword [r8 + rdx*8 + 0x24], ebx
mov dword [r8 + rdx*8 + 0x20], esi
mov eax, dword [r13 + rax*4]
mov dword [r8 + rdx*8 + 0x1c], eax
jmp 0x180023370
test r8d, r8d
je 0x18002385b
mov ecx, r8d
shl rcx, 2
mov dword [rdi + 0x38], r8d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x30], rax
mov r9d, esi
nop dword [rax]
nop word [rax + rax]
mov eax, 0xb
mov ecx, r9d
cpuid
mov r11d, edx
mov r10d, ecx
mov r8d, eax
test eax, eax
jne 0x1800237db
test ebx, ebx
je 0x18002384d
mov ecx, r14d
mov eax, r9d
and r8d, 0x1f
shr r10d, 8
mov ebx, r11d
mov dword [rdi + 4], r11d
shr ebx, cl
mov edx, r12d
mov ecx, r8d
mov r15d, r11d
sub ecx, r14d
shl edx, cl
lea rcx, [rax*4]
mov rax, qword [rdi + 0x30]
dec edx
and edx, ebx
mov dword [rcx + rax], 0xffffffff
movzx eax, r10b
sub eax, r12d
je 0x18002383f
cmp eax, r12d
je 0x180023834
mov rax, qword [rdi + 0x30]
mov r14d, r8d
inc r9d
mov dword [rcx + rax], ebx
jmp 0x1800237c0
mov dword [rdi + 0x28], edx
mov r14d, r8d
inc r9d
jmp 0x1800237c0
mov dword [rdi + 0x24], edx
mov r14d, r8d
inc r9d
jmp 0x1800237c0
mov ecx, r14d
mov dword [rdi + 4], r15d
shr r15d, cl
mov dword [rdi + 0x14], r15d
mov r9d, esi
cmp dword [rdi + 0x3c], esi
jbe 0x18002394b
nop word [rax + rax]
mov eax, r9d
xor edx, edx
lea rcx, [rax + rax*4]
mov rax, qword [rdi + 0x40]
lea r8, [rax + rcx*8]
mov eax, dword [rdi + 4]
mov ecx, dword [r8 + 8]
div ecx
mov dword [r8 + 0xc], eax
cmp r13d, r12d
jne 0x18002393e
mov edx, dword [rdi + 0x90]
cmp edx, 0x10
jne 0x180023905
cmp dword [rdi + 0x8c], 9
jne 0x180023905
cmp dword [r8 + 4], 3
jne 0x180023905
mov eax, dword [r8 + 0x1c]
cmp eax, 0xffffffff
je 0x1800238c0
test r12b, al
jne 0x180023905
cmp ecx, 8
jb 0x180023905
cmp ecx, 0x10
jne 0x1800238d2
mov dword [r8 + 8], 0xc
shr dword [r8 + 8], 1
shr dword [r8 + 0x24], 1
cmp eax, 0xffffffff
je 0x1800238e8
cdq
sub eax, edx
sar eax, 1
mov dword [r8 + 0x1c], eax
mov eax, dword [rdi + 4]
xor edx, edx
div dword [rdi + 8]
mov ecx, edx
mov ebx, eax
mov eax, ecx
xor edx, edx
div dword [r8 + 8]
lea ecx, [rax + rbx*2]
mov dword [r8 + 0xc], ecx
jmp 0x18002393e
cmp edx, 0x15
jne 0x18002393e
mov eax, dword [rdi + 0x8c]
dec eax
cmp eax, r12d
ja 0x18002393e
cmp dword [r8 + 4], 3
jne 0x18002393e
cmp ecx, 6
jne 0x18002393e
mov eax, dword [rdi + 4]
xor edx, edx
div dword [rdi + 8]
mov ecx, eax
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
lea eax, [rdx + rcx*2]
mov dword [r8 + 0xc], eax
inc r9d
cmp r9d, dword [rdi + 0x3c]
jb 0x180023870
mov r8, qword [rbp + 0x40]
mov edi, dword [rdi + 4]
mov eax, edi
shr eax, 5
mov rbx, qword [r8 + 8]
cmp eax, dword [rbx]
jae 0x18002396a
mov ecx, eax
mov rax, qword [rbx + 8]
mov edx, dword [rax + rcx*4]
jmp 0x180023971
mov eax, dword [rbx + 0x10]
neg eax
sbb edx, edx
mov eax, edi
and eax, 0x1f
bt edx, eax
jae 0x180023984
mov dword [r8 + 0x10], esi
jmp 0x180023a60
mov r14d, edi
shr r14d, 5
cmp dword [rbx + 0x10], esi
je 0x18002399d
mov eax, dword [rbx]
shl eax, 5
cmp edi, eax
jae 0x180023a60
lea r15d, [r14 + 1]
cmp r15d, dword [rbx]
jbe 0x180023a4c
mov eax, r14d
test r14d, r14d
je 0x1800239ed
mov ecx, r12d
test eax, 0xffff0000
je 0x1800239c4
shr eax, 0x10
mov ecx, 0x11
test eax, 0xff00
je 0x1800239d1
shr eax, 8
add ecx, 8
test al, 0xf0
je 0x1800239db
shr eax, 4
add ecx, 4
test al, 0xc
je 0x1800239e5
shr eax, 2
add ecx, 2
test al, 2
lea esi, [rcx + 1]
cmove esi, ecx
mov ecx, esi
shl r12d, cl
cmp r12d, dword [rbx + 4]
jbe 0x180023a11
mov rcx, qword [rbx + 8]
mov edx, r12d
shl rdx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rbx + 8], rax
mov dword [rbx + 4], r12d
mov ecx, dword [rbx]
cmp ecx, r15d
jae 0x180023a49
mov r8d, r15d
lea rdx, [rcx*4]
sub r8d, ecx
nop word [rax + rax]
mov eax, dword [rbx + 0x10]
lea rdx, [rdx + 4]
neg eax
mov rax, qword [rbx + 8]
sbb ecx, ecx
mov dword [rdx + rax - 4], ecx
sub r8, 1
jne 0x180023a30
mov dword [rbx], r15d
mov rax, qword [rbx + 8]
and edi, 0x1f
lea rdx, [rax + r14*4]
mov eax, dword [rax + r14*4]
bts eax, edi
mov dword [rdx], eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret