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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c071
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x486850]
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 ebx, edx
mov dword [ebp - 0x474], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x46c], edx
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x45c], esi
mov dword [ebp - 4], edi
test ecx, ecx
je 0x42c97c
test edx, edx
je 0x42c97c
test ebx, ebx
jne 0x42c6aa
mov ebx, 0x468378
lea eax, [ebp - 0x454]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c97c
xor esi, esi
mov edi, edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
push dword [ebp - 0x454]
mov dword [ebp - 0x478], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x42c771
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x42c710
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c710
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004400d6
add esp, 0xc
test eax, eax
jne 0x42c771
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x450]
call fcn.00402a00
push eax
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 1
call fcn.00421630
mov byte [ebp - 4], 0
cmp dword [ebp - 0x43c], 8
jb 0x42c771
push dword [ebp - 0x450]
call fcn.0043d3af
add esp, 4
inc esi
test edi, edi
je 0x42c6d0
mov edi, dword [ebp - 0x460]
mov ebx, dword [ebp - 0x464]
push dword [ebp - 0x468]
mov ecx, edi
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
mov edx, edi
mov ecx, ebx
call fcn.0042cc40
add esp, 8
mov esi, ebx
cmp ebx, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42c96e
mov edi, edi
mov ebx, dword [ebp - 0x474]
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebx], ax
jne 0x42c7ec
xor ecx, ecx
jmp 0x42c800
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c7f1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x438]
call fcn.00402900
push esi
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call fcn.00401e00
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x42c82e
mov eax, dword [eax]
lea ecx, [ebp - 0x458]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
cmp dword [ebp - 0x43c], 8
jb 0x42c864
push dword [ebp - 0x450]
call fcn.0043d3af
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x424], 8
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
jb 0x42c89b
push dword [ebp - 0x438]
call fcn.0043d3af
add esp, 4
test bl, bl
je 0x42c95d
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push dword [ebp - 0x46c]
mov dword [ebp - 0x470], 0x104
push dword [ebp - 0x458]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c94d
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], eax
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x42c8f9
xor ecx, ecx
jmp 0x42c911
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c902
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00402900
cmp dword [ebp - 0x428], 0
setne bl
cmp dword [ebp - 0x424], 8
jb 0x42c945
push dword [ebp - 0x438]
call fcn.0043d3af
add esp, 4
test bl, bl
jne 0x42c9e7
push dword [ebp - 0x458]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x42c963
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x18
cmp esi, edi
jne 0x42c7c0
push dword [ebp - 0x454]
call ebx
mov esi, dword [ebp - 0x464]
xor bl, bl
test esi, esi
je 0x42c9c9
mov eax, dword [ebp - 0x464]
cmp eax, edi
je 0x42c9c0
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x42c9a0
push dword [esi]
call fcn.0043d3af
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x42c990
mov eax, dword [ebp - 0x464]
push eax
call fcn.0043d3af
add esp, 4
mov al, bl
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.0043d3b4
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x454]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x458]
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.00402a00
mov ebx, dword [ebp - 0x468]
mov esi, eax
cmp ebx, esi
je 0x42ca46
cmp dword [ebx + 0x14], 8
jb 0x42ca2b
push dword [ebx]
call fcn.0043d3af
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push esi
mov ecx, ebx
mov word [ebx], ax
call fcn.004022d0
cmp dword [ebp - 0x43c], 8
jb 0x42ca5d
push dword [ebp - 0x450]
call fcn.0043d3af
add esp, 4
mov esi, dword [ebp - 0x464]
mov bl, 1
jmp 0x42c97e