Function at 0x429160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5568
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4e50cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x74], eax
test edx, edx
je 0x429393
test edi, edi
je 0x429393
mov esi, 0x8000ffff
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429375
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 0
push dword [ebp - 0x74]
push 0
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42937a
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
call fcn.004a594a
mov edi, eax
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
push edi
push dword [ebp - 0x74]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429369
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
cmp eax, 4
jne 0x4292bd
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
call sub.MSVCR120.dll_memset
push 0xa
push 0x28
lea eax, [ebp - 0x68]
push eax
push dword [edi]
call dword [sym.imp.MSVCR120.dll__ultow_s]
add esp, 0x1c
cmp word [ebp - 0x68], 0
jne 0x42928b
xor ecx, ecx
lea eax, [ebp - 0x68]
push ecx
push eax
mov ecx, ebx
call fcn.00402ddd
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x42937a
lea ecx, [ebp - 0x68]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429291
sub ecx, edx
lea eax, [ebp - 0x68]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00402ddd
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x42937a
cmp eax, 1
je 0x42935f
cmp eax, 2
je 0x42935f
cmp eax, 7
je 0x42935f
cmp dword [ebp - 0x70], 0
jbe 0x429369
push 2
push 0x4c79c8
mov ecx, ebx
call fcn.00402ddd
xor esi, esi
cmp dword [ebp - 0x70], esi
jbe 0x429367
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
movzx eax, byte [esi + edi]
push eax
push str._02x
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.00429450
add esp, 0x10
cmp word [ebp - 0x18], 0
jne 0x429323
xor eax, eax
jmp 0x42933f
lea eax, [ebp - 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429330
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00404056
inc esi
cmp esi, dword [ebp - 0x70]
jb 0x4292f7
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x42937a
push edi
mov ecx, ebx
call fcn.0040317d
xor esi, esi
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x42937a
mov esi, 0x80070005
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x42938f
push eax
mov dword [ebp - 0x6c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x429398
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret