Function at 0x41d580
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bebc6
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 0x41d5d8
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 0x41d7d0
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 0x41d793
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 0x41d77c
xor ebx, ebx
jmp 0x41d680
cmp dword [ebx + esi + 0x14], 8
mov ecx, dword [ebx + esi + 0x10]
lea eax, [ebx + esi]
jb 0x41d690
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0049cecc
add esp, 0xc
test eax, eax
je 0x41d6e6
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 0x41d680
mov ebx, dword [ebp - 0x250]
mov esi, dword [ebp - 0x23c]
xor edi, edi
inc dword [ebp - 0x24c]
jmp 0x41d61d
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 0x41d710
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41d710
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x238]
call fcn.00415f60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x23c]
push 0x4f0adc
mov edx, esi
push edx
push eax
call fcn.0041cf50
mov byte [ebp - 4], 0
cmp dword [ebp - 0x224], 8
jb 0x41d765
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0049b30a
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 0x41d61d
cmp esi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41d7ac
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 0x41d7cc
push eax
call esi
mov dword [ebp - 0x248], edi
mov al, 1
jmp 0x41d7d9
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.0049b315
mov esp, ebp
pop ebp
ret