Function at 0x10022d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100838b9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x100ac1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
push str.ntdll.dll
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10022e09
push str.RtlGetNtVersionNumbers
push esi
call edi
test eax, eax
je 0x10022e02
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
call eax
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100ab01c], 0
je 0x10022ecb
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x10089d34
call esi
push eax
call edi
test eax, eax
je 0x10022ec1
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x5c]
push ecx
movups xmmword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x4c], xmm0
call eax
mov ax, word [ebp - 0x5c]
cmp ax, 9
je 0x10022eb7
cmp ax, 6
je 0x10022eb7
cmp ax, 0xc
je 0x10022eb7
push str.IsWow64Process2
push 0x10089e64
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
call esi
push eax
call edi
mov esi, eax
test esi, esi
je 0x10022eae
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x10022eae
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x14], cx
sete al
mov dword [0x100ad988], eax
jmp 0x10022ec1
xor eax, eax
mov dword [0x100ad988], eax
jmp 0x10022ec1
mov dword [0x100ad988], 1
mov dword [0x100ab01c], 0
mov eax, dword [0x100ad988]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x38]
test eax, eax
je 0x10022efd
push 0x20119
jmp 0x10022f02
push 0x20019
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call fcn.10017e40
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x10022f59
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x1008b9a4
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x10022f52
push esi
call edi
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0
call fcn.100085e0
mov ecx, eax
test ecx, ecx
je 0x10022fd9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
mov edx, 0x1008b9b4
mov eax, 0x1008b9ac
mov dword [ebp - 0x28], 1
cmove eax, edx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str._d__d__d__d__s
push ecx
call fcn.10007e90
add esp, 0x1c
mov byte [ebp - 4], 0
test esi, esi
je 0x10022fbc
push esi
call edi
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100079c0
int3