Function at 0x10018a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058008
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x10079214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x648], edi
mov dword [ebp - 0x640], 0
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x10018e07
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x640], 1
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov dword [ebp - 4], 2
cmp dword [0x1007801c], 0
je 0x10018bf0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x1005b810
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018be6
xorps xmm0, xmm0
mov dword [ebp - 0x64c], 0
lea ecx, [ebp - 0x66c]
push ecx
movups xmmword [ebp - 0x66c], xmm0
movups xmmword [ebp - 0x65c], xmm0
call eax
mov ax, word [ebp - 0x66c]
cmp ax, 9
je 0x10018bdc
cmp ax, 6
je 0x10018bdc
cmp ax, 0xc
je 0x10018bdc
push str.IsWow64Process2
push 0x1005b94c
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10018bd3
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x10018bd3
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x62c], cx
sete al
mov dword [0x1007a490], eax
jmp 0x10018be6
xor eax, eax
mov dword [0x1007a490], eax
jmp 0x10018be6
mov dword [0x1007a490], 1
mov dword [0x1007801c], 0
mov eax, dword [0x1007a490]
lea ecx, [ebp - 0x63c]
mov dword [ebp - 0x644], eax
test eax, eax
je 0x10018c0c
push 0x20119
jmp 0x10018c11
push 0x20019
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call fcn.1000d170
test eax, eax
jne 0x10018dbf
push 0x208
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.10031950
mov esi, dword [ebp - 0x63c]
lea eax, [ebp - 0x62c]
add esp, 0xc
mov dword [ebp - 0x62c], 0x208
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
push 0x1005ef04
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10018c96
mov eax, dword [ebp - 0x630]
cmp eax, 1
je 0x10018c84
cmp eax, 2
jne 0x10018c96
cmp dword [ebp - 0x62c], 0
jne 0x10018c96
xor eax, eax
mov word [ebp - 0x628], ax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10031950
add esp, 0xc
mov dword [ebp - 0x62c], 0x208
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
push str.CSDVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10018cff
mov eax, dword [ebp - 0x630]
cmp eax, 1
je 0x10018ced
cmp eax, 2
jne 0x10018cff
cmp dword [ebp - 0x62c], 0
jne 0x10018cff
xor eax, eax
mov word [ebp - 0x420], ax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10031950
add esp, 0xc
mov dword [ebp - 0x62c], 0x208
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
push str.ReleaseId
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10018d68
mov eax, dword [ebp - 0x630]
cmp eax, 1
je 0x10018d56
cmp eax, 2
jne 0x10018d68
cmp dword [ebp - 0x62c], 0
jne 0x10018d68
xor eax, eax
mov word [ebp - 0x218], ax
cmp dword [ebp - 0x644], 0
mov ecx, 0x1005ef50
mov eax, 0x1005ef48
cmove eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
push str._s_s_s_s
push edi
call fcn.10004e90
add esp, 0x18
test esi, esi
je 0x10018db3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x638], 0
jmp 0x10018dc5
mov esi, dword [ebp - 0x63c]
mov byte [ebp - 4], 0
test esi, esi
je 0x10018dde
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002deb9
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10004830
int3