Function at 0x423170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47eaf8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [section..data]
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 0x4233a3
test edi, edi
je 0x4233a3
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 0x423385
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 0x42338a
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
call fcn.00452ca0
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 0x423379
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
cmp eax, 4
jne 0x4232cd
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 0x42329b
xor ecx, ecx
lea eax, [ebp - 0x68]
push ecx
push eax
mov ecx, ebx
call fcn.0040235a
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x42338a
lea ecx, [ebp - 0x68]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4232a1
sub ecx, edx
lea eax, [ebp - 0x68]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040235a
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x42338a
cmp eax, 1
je 0x42336f
cmp eax, 2
je 0x42336f
cmp eax, 7
je 0x42336f
cmp dword [ebp - 0x70], 0
jbe 0x423379
push 2
push 0x48d488
mov ecx, ebx
call fcn.0040235a
xor esi, esi
cmp dword [ebp - 0x70], esi
jbe 0x423377
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.004233d0
add esp, 0x10
cmp word [ebp - 0x18], 0
jne 0x423333
xor eax, eax
jmp 0x42334f
lea eax, [ebp - 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423340
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00402779
inc esi
cmp esi, dword [ebp - 0x70]
jb 0x423307
push edi
xor esi, esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x42338a
push edi
mov ecx, ebx
call fcn.00401e70
xor esi, esi
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x42338a
mov esi, 0x80070005
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x42339f
push eax
mov dword [ebp - 0x6c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4233a8
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.00452da4
mov esp, ebp
pop ebp
ret