Function at 0x426160
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf736
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], 8
jb 0x4261b8
mov eax, dword [eax]
lea ecx, [ebp - 0x23c]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x23c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4263b0
mov esi, dword [ebp - 0x23c]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x24c], edi
lea edx, [ebp - 0x25c]
push edx
mov edx, dword [ebp - 0x24c]
push edi
push edi
push edi
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push edx
push esi
mov dword [ebp - 0x254], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x426373
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x42635c
xor ebx, ebx
jmp 0x426260
cmp dword [ebx + esi + 0x14], 8
mov ecx, dword [ebx + esi + 0x10]
lea eax, [ebx + esi]
jb 0x426270
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0049f1e4
add esp, 0xc
test eax, eax
je 0x4262c6
mov eax, dword [ebp - 0x250]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x1c
cmp edi, eax
jb 0x426260
mov ebx, dword [ebp - 0x250]
mov esi, dword [ebp - 0x23c]
xor edi, edi
inc dword [ebp - 0x24c]
jmp 0x4261fd
xor edi, edi
mov ebx, 7
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], cx
lea edx, [eax + 2]
jmp 0x4262f0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4262f0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x238]
call fcn.00419690
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x23c]
push 0x4f0cc0
mov edx, esi
push edx
push eax
call fcn.00425b30
mov byte [ebp - 4], 0
cmp dword [ebp - 0x224], 8
jb 0x426345
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0049ca60
add esp, 4
xor edx, edx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x238], dx
xor edi, edi
inc dword [ebp - 0x24c]
mov ebx, dword [ebp - 0x250]
mov esi, dword [ebp - 0x23c]
jmp 0x4261fd
cmp esi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x42638c
mov eax, dword [ebp - 0x23c]
push eax
call esi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x248]
cmp eax, edi
je 0x4263ac
push eax
call esi
mov dword [ebp - 0x248], edi
mov al, 1
jmp 0x4263b9
mov dword [ebp - 4], 0xffffffff
xor al, al
mov dword [ebp - 0x244], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret