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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x128
xor edx, edx
xor ecx, ecx
call fcn.14000f5a0
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.140002e20
lea rcx, [rsp + 0xe8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xd8]
lea rcx, [rsp + 0xe8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetEnabledXStateFeatures]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
and rax, 4
test rax, rax
je 0x140087855
mov dword [rsp + 0x60], 1
jmp 0x14008785d
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x10001f
cmp dword [rsp + 0x64], 0
je 0x140087888
mov eax, dword [rsp + 0x28]
or eax, 0x40
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, dword [rsp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeContext]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140087914
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0xb8], rax
mov ecx, dword [rsp + 0x38]
mov edx, ecx
mov rcx, qword [rsp + 0xd8]
call fcn.140002cc0
mov rcx, qword [rsp + 0xb8]
mov r8, rcx
xor edx, edx
mov rcx, rax
call fcn.140226b00
mov qword [rsp + 0xc0], rax
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x20]
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_InitializeContext]
test eax, eax
jne 0x140087914
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x20], 0
je 0x140087977
cmp dword [rsp + 0x64], 0
je 0x14008793b
mov edx, 4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetXStateFeaturesMask]
mov qword [rsp + 0xb0], 0
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetXStateFeaturesMask]
test eax, eax
je 0x140087977
mov rax, qword [rsp + 0xb0]
and rax, 4
test rax, rax
je 0x140087977
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x70], 0
cmp qword [rsp + 0x20], 0
je 0x140088021
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x148]
mov ecx, dword [rcx + 0x178]
mov eax, dword [rax + 0x174]
and eax, ecx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x34], eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx]
mov qword [rax + 0x78], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 8]
mov qword [rax + 0x80], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x10]
mov qword [rax + 0x88], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x18]
mov qword [rax + 0x90], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x20]
mov qword [rax + 0x98], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x28]
mov qword [rax + 0xa0], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x30]
mov qword [rax + 0xa8], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x38]
mov qword [rax + 0xb0], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x40]
mov qword [rax + 0xb8], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0xc0], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x50]
mov qword [rax + 0xc8], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x58]
mov qword [rax + 0xd0], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x60]
mov qword [rax + 0xd8], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x68]
mov qword [rax + 0xe0], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x70]
mov qword [rax + 0xe8], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x78]
mov qword [rax + 0xf0], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov rcx, qword [rcx + 0x90]
mov qword [rax + 0xf8], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x17e]
mov word [rax + 0x38], cx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x180]
mov word [rax + 0x3a], cx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x182]
mov word [rax + 0x3c], cx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x184]
mov word [rax + 0x3e], cx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x186]
mov word [rax + 0x40], cx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x17c]
mov word [rax + 0x42], cx
mov rax, qword [rsp + 0x148]
mov eax, dword [rax + 0xa0]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x48], rax
mov rax, qword [rsp + 0x148]
mov eax, dword [rax + 0xa4]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x50], rax
mov rax, qword [rsp + 0x148]
mov eax, dword [rax + 0xa8]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x58], rax
mov rax, qword [rsp + 0x148]
mov eax, dword [rax + 0xac]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x60], rax
mov rax, qword [rsp + 0x148]
mov eax, dword [rax + 0xb8]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x68], rax
mov rax, qword [rsp + 0x148]
mov eax, dword [rax + 0xbc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x70], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x148]
mov ecx, dword [rcx + 0x98]
mov dword [rax + 0x44], ecx
mov rax, qword [rsp + 0x20]
add rax, 0x100
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x160]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x162]
mov word [rax + 2], cx
mov rax, qword [rsp + 0x148]
movzx ecx, word [rax + 0x164]
call fcn.140088f10
mov rcx, qword [rsp + 0x30]
mov byte [rcx + 4], al
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x166]
mov word [rax + 6], cx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x168]
mov word [rax + 0xc], cx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x148]
movzx ecx, word [rcx + 0x16a]
mov word [rax + 0x14], cx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x148]
mov ecx, dword [rcx + 0x16c]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x148]
mov ecx, dword [rcx + 0x170]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x30]
add rax, 0x20
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x148]
add rax, 0xc0
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x40], 0
jmp 0x140087db6
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x90]
add rax, 0xa
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x98]
add rax, 0x10
mov qword [rsp + 0x98], rax
cmp dword [rsp + 0x40], 8
jae 0x140087dda
mov r8d, 0xa
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140226460
jmp 0x140087d84
cmp dword [rsp + 0x48], 0
jne 0x140087e6e
mov rax, qword [rsp + 0x30]
add rax, 0xa0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x148]
add rax, 0x188
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x44], 0
jmp 0x140087e4a
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xa8]
add rax, 0x10
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa0]
add rax, 0x20
mov qword [rsp + 0xa0], rax
cmp dword [rsp + 0x44], 8
jae 0x140087e6e
mov r8d, 0x10
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
call fcn.140226460
jmp 0x140087e18
cmp dword [rsp + 0x48], 0
je 0x140087fda
mov dword [rsp + 0x4c], 0
lea r8, [rsp + 0x4c]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocateXStateFeature]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x68], 0
lea r8, [rsp + 0x68]
mov edx, 2
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocateXStateFeature]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x4c], eax
je 0x140087ecb
int3
xor eax, eax
test eax, eax
jne 0x140087ec0
mov eax, dword [rsp + 0x4c]
xor edx, edx
mov ecx, 0x10
div rcx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x10
jae 0x140087ef4
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x6c], eax
jmp 0x140087efc
mov dword [rsp + 0x6c], 0x10
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x148]
add rax, 0x188
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 0
jmp 0x140087f5b
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x78]
add rax, 0x10
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x80]
add rax, 0x10
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x58]
add rax, 0x20
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x50], eax
jae 0x140087fda
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rdx + rax]
mov qword [rcx], rax
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rdx + rax]
mov qword [rcx + 8], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rdx + rax]
mov qword [rcx], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rdx + rax]
mov qword [rcx + 8], rax
jmp 0x140087f21
mov rcx, qword [rsp + 0x140]
call fcn.140088380
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x140088021
mov dword [rsp + 0x70], 1
lea rax, [rsp + 0x100]
lea rcx, [rsp + 0xd8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x100]
call fcn.140002e80
mov eax, dword [rsp + 0x70]
add rsp, 0x128
pop rdi
pop rsi
ret