Function at 0x100229f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d599
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x100a6204]
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 0x10022a79
push str.RtlGetNtVersionNumbers
push esi
call edi
test eax, eax
je 0x10022a72
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 [0x100a5038], 0
je 0x10022b3b
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x10083f94
call esi
push eax
call edi
test eax, eax
je 0x10022b31
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 0x10022b27
cmp ax, 6
je 0x10022b27
cmp ax, 0xc
je 0x10022b27
push str.IsWow64Process2
push 0x100840cc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
call esi
push eax
call edi
mov esi, eax
test esi, esi
je 0x10022b1e
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 0x10022b1e
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x14], cx
sete al
mov dword [0x100a797c], eax
jmp 0x10022b31
xor eax, eax
mov dword [0x100a797c], eax
jmp 0x10022b31
mov dword [0x100a797c], 1
mov dword [0x100a5038], 0
mov eax, dword [0x100a797c]
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 0x10022b6d
push 0x20119
jmp 0x10022b72
push 0x20019
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call fcn.10017580
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x10022bc9
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 0x100870d4
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x10022bc2
push esi
call edi
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10022c49
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, 0x100870e4
mov eax, 0x100870dc
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.10007b40
add esp, 0x1c
mov byte [ebp - 4], 0
test esi, esi
je 0x10022c2c
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.100074c0
int3