Function at 0x10004320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055dec
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x10076008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x870], ecx
mov dword [ebp - 0x860], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.10005620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.10005620
mov byte [ebp - 4], 1
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x86c], 0
push 0x800
push 0
lea eax, [ebp - 0x810]
push eax
call fcn.10033d10
add esp, 0xc
mov ecx, dword [ebp - 0x870]
movzx edx, byte [ecx + 0xc]
test edx, edx
je 0x10004462
lea eax, [ebp - 0x864]
push eax
push 1
push 0
push 0x10066fcc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x868], eax
cmp dword [ebp - 0x868], 0
jne 0x10004425
mov dword [ebp - 0x86c], 0x800
lea ecx, [ebp - 0x86c]
push ecx
lea edx, [ebp - 0x810]
push edx
push 0
push 0
push 0x10066fe8
mov eax, dword [ebp - 0x864]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x868], eax
mov ecx, dword [ebp - 0x864]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000445d
mov edx, dword [ebp - 0x860]
mov dword [ebp - 0x874], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.10005450
mov eax, dword [ebp - 0x874]
jmp 0x1000473b
jmp 0x100046a2
mov eax, dword [ebp - 0x870]
movsx ecx, byte [eax + 0x69de]
push ecx
push 0x10067008
lea edx, [ebp - 0x858]
push edx
call fcn.1002eaa0
add esp, 0xc
mov dword [ebp - 0x878], eax
mov eax, dword [ebp - 0x878]
push eax
lea ecx, [ebp - 0x828]
call fcn.100054a0
lea ecx, [ebp - 0x858]
call fcn.10005450
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x890], esp
lea edx, [ebp - 0x828]
push edx
call fcn.10005670
call fcn.10009b10
add esp, 0x18
mov byte [ebp - 0x859], al
movzx eax, byte [ebp - 0x859]
test eax, eax
jne 0x1000450f
mov ecx, dword [ebp - 0x860]
mov dword [ebp - 0x87c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.10005450
mov eax, dword [ebp - 0x87c]
jmp 0x1000473b
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x894], esp
lea edx, [ebp - 0x828]
push edx
call fcn.10005670
mov dword [ebp - 0x898], eax
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x89c], esp
push 0x10067050
call fcn.100055b0
push SysStringLen
mov byte [ebp - 4], 1
call fcn.1000a0f0
add esp, 0x38
mov byte [ebp - 0x85a], al
mov al, byte [ebp - 0x85a]
mov byte [ebp - 0x85b], al
movzx ecx, byte [ebp - 0x85b]
cmp ecx, 1
jne 0x1000466a
lea edx, [ebp - 0x864]
push edx
push 1
push 0
push str.SYSTEMSetup_
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x868], eax
cmp dword [ebp - 0x868], 0
jne 0x100045e7
mov dword [ebp - 0x86c], 0x800
lea eax, [ebp - 0x86c]
push eax
lea ecx, [ebp - 0x810]
push ecx
push 0
push 0
push str.SystemPartition
mov edx, dword [ebp - 0x864]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x868], eax
mov eax, dword [ebp - 0x864]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000461f
mov ecx, dword [ebp - 0x860]
mov dword [ebp - 0x880], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.10005450
mov eax, dword [ebp - 0x880]
jmp 0x1000473b
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8a0], esp
lea edx, [ebp - 0x828]
push edx
call fcn.10005670
mov dword [ebp - 0x8a4], eax
mov byte [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8a8], esp
push 0x1006709c
call fcn.100055b0
push SysStringLen
mov byte [ebp - 4], 1
call fcn.1000a0f0
add esp, 0x38
jmp 0x100046a2
mov eax, dword [ebp - 0x860]
mov dword [ebp - 0x884], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.10005450
mov eax, dword [ebp - 0x884]
jmp 0x1000473b
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x810]
test eax, eax
je 0x100046fe
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x840]
call fcn.100053c0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8ac], esp
lea edx, [ebp - 0x840]
push edx
call fcn.10005670
mov ecx, dword [ebp - 0x870]
call fcn.10004760
mov dword [ebp - 0x888], eax
mov eax, dword [ebp - 0x888]
mov dword [ebp - 0x860], eax
jmp 0x10004708
mov dword [ebp - 0x860], 0xffffffff
mov ecx, dword [ebp - 0x860]
mov dword [ebp - 0x88c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.10005450
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.10005450
mov eax, dword [ebp - 0x88c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002fa64
mov esp, ebp
pop ebp
ret 4