Function at 0x42843d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49eede
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4c3204]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
mov eax, dword [0x4c3204]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x14
pop ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x4b8ce8
lea edi, [esp + 0xf4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xd8]
mov dword [esp + 0x1c], eax
call fcn.00404c9b
xor ebx, ebx
mov dword [esp + 0x158], ebx
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0xf8]
call fcn.00404cae
mov byte [esp + 0x158], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xc4]
lea ecx, [esp + 0xe0]
call fcn.00404d40
mov byte [esp + 0x158], bl
lea ecx, [esp + 0xbc]
call fcn.00403d16
push dword [esp + 0x14]
call fcn.00477a67
pop ecx
push dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0xdc]
call fcn.00405148
lea eax, [esp + 0xbc]
push eax
mov edi, 0x4a9a00
mov eax, edi
call fcn.00404cae
mov byte [esp + 0x158], 2
mov esi, dword [esp + 0x1c]
push 0xffffffffffffffff
add esi, 0x58
push ebx
lea eax, [esp + 0xc4]
mov ecx, esi
call fcn.00404d40
mov byte [esp + 0x158], bl
lea ecx, [esp + 0xbc]
call fcn.00403d16
lea eax, [esp + 0xbc]
push eax
mov eax, edi
call fcn.00404cae
mov byte [esp + 0x158], 3
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
add ecx, 0x3c
push ebx
lea eax, [esp + 0xc4]
mov dword [esp + 0x24], ecx
call fcn.00404d40
mov byte [esp + 0x158], bl
lea ecx, [esp + 0xbc]
call fcn.00403d16
cmp dword [esp + 0xec], 8
mov eax, dword [esp + 0xd8]
jae 0x4285b5
lea eax, [esp + 0xd8]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.DLL_SysReAllocString
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
cmp eax, ebx
je 0x4286b4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea eax, [esp + 0x24]
push eax
call fcn.004090fb
mov esi, eax
mov byte [esp + 0x158], 4
push 0x4b8d38
push esi
call fcn.0040b677
push esi
lea ecx, [esp + 0xe4]
call fcn.0040b9a3
add esp, 0xc
push 0x4b63c0
push esi
call fcn.0040b677
pop ecx
pop ecx
push edi
push esi
call fcn.0040a33c
lea ebx, [esp + 0xbc]
mov ecx, esi
call fcn.00409165
mov byte [esp + 0x158], 5
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xbc]
jae 0x428648
mov eax, ebx
push eax
push 2
pop ecx
call fcn.0040d57f
pop ecx
mov byte [esp + 0x158], 4
lea ecx, [esp + 0xbc]
call fcn.00403d16
xor bl, bl
mov byte [esp + 0x158], bl
lea eax, [esp + 0x24]
call fcn.00407bad
or dword [esp + 0x158], 0xffffffff
lea ecx, [esp + 0xd8]
call fcn.00403d16
mov al, bl
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00475a38
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push 0x4ad254
push dword [esp + 0x34]
mov dword [esp + 0x30], ebx
call edi
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x428749
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
shr eax, 1
inc eax
push eax
lea eax, [esp + 0xc4]
mov dword [esp + 0x1c], ebx
call fcn.0040cddb
mov byte [esp + 0x158], 6
lea eax, [esp + 0x18]
push eax
push dword [esp + 0xc0]
push ebx
push ebx
push 0x4ad254
push dword [esp + 0x34]
call edi
push dword [esp + 0xbc]
mov dword [esp + 0x18], eax
call fcn.00477a67
pop ecx
mov ecx, dword [esp + 0xbc]
call fcn.004051e0
mov byte [esp + 0x158], bl
lea esi, [esp + 0xbc]
call fcn.00419335
jmp 0x428759
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x428754
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
cmp dword [esp + 0x14], ebx
je 0x428808
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
lea eax, [esp + 0x24]
push eax
call fcn.004090fb
mov esi, eax
mov byte [esp + 0x158], 7
push 0x4b8d74
push esi
call fcn.0040b677
push esi
lea ecx, [esp + 0xe4]
call fcn.0040b9a3
add esp, 0xc
push 0x4b8d88
push esi
call fcn.0040b677
pop ecx
pop ecx
push ebx
push esi
call fcn.0040a33c
lea ebx, [esp + 0xbc]
mov ecx, esi
call fcn.00409165
mov byte [esp + 0x158], 8
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xbc]
jae 0x4287d7
mov eax, ebx
push eax
push 2
pop ecx
call fcn.0040d57f
pop ecx
mov byte [esp + 0x158], 7
lea ecx, [esp + 0xbc]
call fcn.00403d16
mov byte [esp + 0x158], 0
lea eax, [esp + 0x24]
call fcn.00407bad
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
mov esi, 0x4b8dc4
push esi
push dword [esp + 0x34]
mov dword [esp + 0x30], ebx
call edi
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x428898
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
shr eax, 1
inc eax
push eax
lea eax, [esp + 0xc4]
mov dword [esp + 0x1c], ebx
call fcn.0040cddb
mov byte [esp + 0x158], 9
lea eax, [esp + 0x18]
push eax
push dword [esp + 0xc0]
push ebx
push ebx
push esi
push dword [esp + 0x34]
call edi
push dword [esp + 0xbc]
mov dword [esp + 0x18], eax
call fcn.00477a67
mov esi, dword [esp + 0x20]
pop ecx
mov ecx, dword [esp + 0xbc]
call fcn.004051e0
mov byte [esp + 0x158], bl
lea esi, [esp + 0xbc]
call fcn.00419335
jmp 0x4288ac
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x4288a7
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x14], ebx
je 0x4288c0
push 0x4b8de0
push 2
pop ecx
call fcn.0040d57f
pop ecx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov bl, 1
jmp 0x428678