Function at 0x430000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4643b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x430042
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x482e8c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00407020
test al, al
jne 0x430074
push 0
push 0x482e8c
lea ecx, [ebp - 0x10]
call fcn.004076f0
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0x20019
push 0x482f18
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0040e570
mov ebx, dword [ebp - 0x30]
test eax, eax
jne 0x43024e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push str.svcVersion
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430152
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4300e6
cmp eax, 2
jne 0x430152
mov eax, dword [ebp - 0x14]
shr eax, 1
mov dword [ebp - 0x14], eax
lea eax, [eax*2 + 2]
push eax
mov dword [ebp - 0x18], eax
call fcn.00445a72
mov esi, eax
add esp, 4
test esi, esi
je 0x430152
push dword [ebp - 0x18]
push 0
push esi
call fcn.0043e860
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x30]
push eax
push esi
push 0x482f64
call fcn.0040e620
test eax, eax
jne 0x430149
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430130
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004076f0
push esi
call fcn.00445a6d
add esp, 4
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x430208
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push str.Version
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430208
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x430193
cmp eax, 2
jne 0x430208
mov eax, dword [ebp - 0x18]
shr eax, 1
mov dword [ebp - 0x14], eax
lea eax, [eax*2 + 2]
push eax
mov dword [ebp - 0x24], eax
call fcn.00445a72
mov edi, eax
add esp, 4
test edi, edi
je 0x430205
push dword [ebp - 0x24]
push 0
push edi
call fcn.0043e860
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x30]
push eax
push edi
push 0x482f94
call fcn.0040e620
test eax, eax
jne 0x4301fc
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4301e0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004076f0
mov esi, dword [ebp - 0x10]
push edi
call fcn.00445a6d
add esp, 4
mov edi, dword [ebp - 0x1c]
add esi, 0xfffffff0
mov ecx, esi
call fcn.00407630
add eax, 0x10
mov dword [edi], eax
test ebx, ebx
je 0x430222
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43023a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10]
jmp 0x430208