Function at 0x140086f50
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x118
xor edx, edx
xor ecx, ecx
call fcn.14000f5a0
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.140002e20
lea rcx, [rsp + 0xe0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xd0]
lea rcx, [rsp + 0xe0]
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 + 0x80], eax
mov eax, dword [rsp + 0x80]
and rax, 4
test rax, rax
je 0x140086fd5
mov dword [rsp + 0x58], 1
jmp 0x140086fdd
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x34], 0x10001f
cmp dword [rsp + 0x5c], 0
je 0x140087008
mov eax, dword [rsp + 0x34]
or eax, 0x40
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, dword [rsp + 0x34]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeContext]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140087094
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0xb0], rax
mov ecx, dword [rsp + 0x30]
mov edx, ecx
mov rcx, qword [rsp + 0xd0]
call fcn.140002cc0
mov rcx, qword [rsp + 0xb0]
mov r8, rcx
xor edx, edx
mov rcx, rax
call fcn.140226b00
mov qword [rsp + 0xb8], rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x20]
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_InitializeContext]
test eax, eax
jne 0x140087094
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x44], 0
cmp qword [rsp + 0x20], 0
je 0x1400870f7
cmp dword [rsp + 0x5c], 0
je 0x1400870bb
mov edx, 4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetXStateFeaturesMask]
mov qword [rsp + 0xa8], 0
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetXStateFeaturesMask]
test eax, eax
je 0x1400870f7
mov rax, qword [rsp + 0xa8]
and rax, 4
test rax, rax
je 0x1400870f7
mov dword [rsp + 0x44], 1
mov rcx, qword [rsp + 0x130]
call fcn.140088380
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x14008713f
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x68], 0
cmp qword [rsp + 0x20], 0
je 0x140087792
mov dword [rsp + 0x68], 1
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x80]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x88]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x90]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x98]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xa0]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xa8]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xb0]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xb8]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xc0]
mov qword [rax + 0x48], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xc8]
mov qword [rax + 0x50], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xd0]
mov qword [rax + 0x58], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xd8]
mov qword [rax + 0x60], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xe0]
mov qword [rax + 0x68], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xe8]
mov qword [rax + 0x70], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xf0]
mov qword [rax + 0x78], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0xf8]
mov qword [rax + 0x90], rcx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx + 0x38]
mov word [rax + 0x17e], cx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx + 0x3a]
mov word [rax + 0x180], cx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx + 0x3c]
mov word [rax + 0x182], cx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx + 0x3e]
mov word [rax + 0x184], cx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx + 0x40]
mov word [rax + 0x186], cx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx + 0x42]
mov word [rax + 0x17c], cx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x48]
mov dword [rax + 0xa0], ecx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x50]
mov dword [rax + 0xa4], ecx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x58]
mov dword [rax + 0xa8], ecx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x60]
mov dword [rax + 0xac], ecx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x68]
mov dword [rax + 0xb8], ecx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0xbc], ecx
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x44]
or eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x138]
mov qword [rcx + 0x98], rax
mov rax, qword [rsp + 0x20]
add rax, 0x100
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx]
mov word [rax + 0x160], cx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 2]
mov word [rax + 0x162], cx
mov rcx, qword [rsp + 0x28]
call fcn.140088dc0
mov rcx, qword [rsp + 0x138]
mov word [rcx + 0x164], ax
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 6]
mov word [rax + 0x166], cx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 0xc]
mov word [rax + 0x168], cx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 0x14]
mov word [rax + 0x16a], cx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 8]
mov dword [rax + 0x16c], ecx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x10]
mov dword [rax + 0x170], ecx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x18]
mov dword [rax + 0x174], ecx
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x1c]
mov dword [rax + 0x178], ecx
mov rax, qword [rsp + 0x28]
add rax, 0x20
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x138]
add rax, 0xc0
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x3c], 0
jmp 0x14008757d
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x88]
add rax, 0x10
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x90]
add rax, 0xa
mov qword [rsp + 0x90], rax
cmp dword [rsp + 0x3c], 8
jae 0x1400875a1
mov r8d, 0xa
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.140226460
jmp 0x14008754b
cmp dword [rsp + 0x44], 0
jne 0x140087635
mov rax, qword [rsp + 0x28]
add rax, 0xa0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x138]
add rax, 0x188
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x40], 0
jmp 0x140087611
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x98]
add rax, 0x10
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xa0]
add rax, 0x20
mov qword [rsp + 0xa0], rax
cmp dword [rsp + 0x40], 0x10
jae 0x140087635
mov r8d, 0x10
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.140226460
jmp 0x1400875df
cmp dword [rsp + 0x44], 0
je 0x140087792
mov dword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocateXStateFeature]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 0
lea r8, [rsp + 0x60]
mov edx, 2
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocateXStateFeature]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x48], eax
je 0x14008768f
int3
xor eax, eax
test eax, eax
jne 0x140087684
mov eax, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x10
div rcx
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x10
jae 0x1400876b8
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x64], eax
jmp 0x1400876c0
mov dword [rsp + 0x64], 0x10
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x138]
add rax, 0x188
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x4c], 0
jmp 0x140087719
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x70]
add rax, 0x10
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x78]
add rax, 0x10
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
add rax, 0x20
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x4c], eax
jae 0x140087792
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx]
mov qword [rcx + rax], rdx
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 8]
mov qword [rcx + rax], rdx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
mov rdx, qword [rdx]
mov qword [rcx + rax], rdx
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
mov rdx, qword [rdx + 8]
mov qword [rcx + rax], rdx
jmp 0x1400876e5
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0xd0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xf0]
call fcn.140002e80
mov eax, dword [rsp + 0x68]
add rsp, 0x118
pop rdi
pop rsi
ret