Function at 0x4236ec
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x458], ecx
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x448], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x423a26
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
jne 0x423874
xor esi, esi
push 0x20a
lea eax, [ebp - 0x22a]
push eax
push esi
push edi
call sub.advapi32.dll_RegEnumKeyW
mov ebx, eax
test ebx, ebx
je 0x423756
cmp ebx, 0x103
jne 0x4239fa
xor ebx, ebx
jmp 0x4239fa
cmp word [ebp - 0x22a], 0x2e
je 0x423858
lea eax, [ebp - 0x22a]
test eax, eax
je 0x42378a
lea eax, [ebp - 0x22a]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.0040685c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
jmp 0x42378f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov edx, 0x423a38
lea eax, [ebp - 0x22a]
call fcn.004179f8
mov edx, 0x423a60
lea eax, [ebp - 0x434]
call fcn.004179e4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x22a]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyW
mov ebx, eax
test ebx, ebx
jne 0x42380a
mov eax, dword [ebp - 0x10]
mov word [ebp + eax*2 - 0x22a], 0
mov dword [ebp - 0xc], 0x20a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x423aa0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
jne 0x423858
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [ebp + eax*2 - 0x436], 0
lea eax, [ebp - 0x22a]
mov dword [ebp - 0x444], eax
mov byte [ebp - 0x440], 0xa
lea eax, [ebp - 0x434]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0xa
lea edx, [ebp - 0x444]
mov eax, 0x423aa4
mov ecx, 1
call fcn.004209c0
mov eax, dword [0x432c60]
cmp dword [eax], 0
je 0x42386e
mov dword [ebp - 4], 1
jmp 0x4239fd
inc esi
jmp 0x42372a
cmp word [esi], 0x2e
jne 0x4238bb
push 0
lea edx, [ebp - 0x448]
mov eax, dword [0x432db0]
call fcn.00408e50
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x450], esi
mov byte [ebp - 0x44c], 0xa
lea ecx, [ebp - 0x450]
mov edx, 1
call fcn.00426e00
mov dword [ebp - 4], 0x7b
jmp 0x4239fd
xor edx, edx
mov eax, esi
call fcn.004275f0
mov esi, eax
mov dx, 0x20
mov eax, esi
call fcn.0041798c
test eax, eax
je 0x4238da
mov word [eax], 0
push 0
mov dword [ebp - 0x450], esi
mov byte [ebp - 0x44c], 0xa
lea ecx, [ebp - 0x450]
mov edx, 0x423ab4
lea eax, [ebp - 0x22a]
call fcn.00417ab8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x22a]
push eax
push edi
call sub.advapi32.dll_RegOpenKeyW
mov ebx, eax
test ebx, ebx
je 0x423953
push 0
lea edx, [ebp - 0x454]
mov eax, dword [0x432db0]
call fcn.00408e50
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x450], esi
mov byte [ebp - 0x44c], 0xa
lea ecx, [ebp - 0x450]
mov edx, 1
call fcn.00426e00
mov dword [ebp - 4], ebx
jmp 0x4239fd
mov dword [ebp - 0xc], 0x20a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x423aa0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x4239c5
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [ebp + eax*2 - 0x436], 0
mov dword [ebp - 0x444], esi
mov byte [ebp - 0x440], 0xa
lea eax, [ebp - 0x434]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0xa
lea edx, [ebp - 0x444]
mov eax, 0x423aa4
mov ecx, 1
call fcn.004209c0
jmp 0x4239fa
push 0
lea edx, [ebp - 0x458]
mov eax, dword [0x432db0]
call fcn.00408e50
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x450], esi
mov byte [ebp - 0x44c], 0xa
lea ecx, [ebp - 0x450]
mov edx, 1
call fcn.00426e00
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423a2d
lea eax, [ebp - 0x458]
mov edx, 2
call fcn.00406474
lea eax, [ebp - 0x448]
call fcn.00406414
ret