Function at 0x419fb8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov eax, 0x56777c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00528424
xor esi, esi
push 0x56704e
mov eax, dword [ebp + 0xc]
push eax
call fcn.0052a49c
add esp, 8
mov dword [0x59ca68], eax
test eax, eax
jne 0x41a150
push 0x30
xor edx, edx
mov word [ebp - 0x48], 8
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 8]
inc dword [ebp - 0x3c]
mov edx, dword [ebp + 0xc]
call fcn.00537758
inc dword [ebp - 0x3c]
mov edx, dword [eax]
lea eax, [ebp - 0x60]
call fcn.00406a44
push 0
push 0
push 0x406aa0
mov ecx, 1
push 3
mov dword [ebp - 0xc], ecx
push ecx
push 8
push 0
call fcn.005265ac
mov edi, eax
lea esi, [ebp - 0x10]
mov ebx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x60]
add esp, 0x1c
mov dword [ebx], eax
mov dl, byte [ebp - 0x5c]
mov byte [ebx + 4], dl
xor edx, edx
inc dword [ebp - 0x3c]
mov eax, dword [esi]
push eax
mov dword [ebp - 4], edx
inc dword [ebp - 0x3c]
lea edx, [ebp - 4]
mov eax, 0x1780
call fcn.0051100c
lea ecx, [ebp - 4]
mov eax, dword [ecx]
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00537758
inc dword [ebp - 0x3c]
mov edx, dword [eax]
lea eax, [ebp - 0x68]
call fcn.00406a44
mov ecx, 1
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x6c]
dec ecx
pop eax
pop edx
call fcn.00511db4
cmp dword [ebp - 0x18], 0
je 0x41a0a9
mov eax, dword [ebp - 0x18]
jmp 0x41a0ae
mov eax, 0x567050
push eax
xor edx, edx
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x1c]
inc dword [ebp - 0x3c]
mov eax, 0x5dd
call fcn.0051100c
cmp dword [ebp - 0x1c], 0
je 0x41a0cf
mov ecx, dword [ebp - 0x1c]
jmp 0x41a0d4
mov ecx, 0x567051
mov eax, dword [0x59bf1c]
pop edx
mov eax, dword [eax]
call fcn.005376a4
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00526184
pop ecx
dec dword [ebp - 0x3c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005378b8
or eax, 0xffffffff
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
jmp 0x41a36f
mov dword [ebp - 0x70], 0x80
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x70]
push ecx
push 0
push 0
push 0
push eax
lea edx, [ebp - 0x114]
push edx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x41a332
inc esi
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
lea edx, [ebp - 0x114]
push edx
push edi
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov ebx, eax
test eax, eax
je 0x41a2e1
mov word [ebp - 0x48], 0x20
xor edx, edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edx
push ecx
inc dword [ebp - 0x3c]
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x24]
call fcn.00537758
inc dword [ebp - 0x3c]
mov edx, dword [eax]
lea eax, [ebp - 0x88]
call fcn.00406a44
push 0
push 0
push 0x406aa0
mov ecx, 1
push 3
mov dword [ebp - 0x28], ecx
push ecx
push 8
push 0
call fcn.005265ac
mov dword [ebp - 0x2c], eax
add esp, 0x1c
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x88]
mov dword [esi], eax
lea eax, [ebp - 0x2c]
mov dl, byte [ebp - 0x84]
mov byte [esi + 4], dl
inc dword [ebp - 0x3c]
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
xor eax, eax
mov ecx, dword [edx]
lea edx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], eax
inc dword [ebp - 0x3c]
mov eax, 0x1781
call fcn.0051100c
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x30]
mov ecx, dword [edx]
lea edx, [ebp - 0x114]
push ecx
call fcn.00537758
inc dword [ebp - 0x3c]
mov edx, dword [eax]
lea eax, [ebp - 0x90]
call fcn.00406a44
mov ecx, 1
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp - 0x94]
dec ecx
pop eax
pop edx
call fcn.00511db4
cmp dword [ebp - 0x34], 0
je 0x41a270
mov eax, dword [ebp - 0x34]
jmp 0x41a275
mov eax, 0x567052
mov edx, ebx
call fcn.0044a7e0
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00526184
pop ecx
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.005378b8
push edi
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
jmp 0x41a36f
push 0x10
push 0
lea ecx, [ebp - 0x114]
push ecx
call fcn.005316c8
add esp, 0xc
test eax, eax
je 0x41a329
mov edx, dword [ebp + 0x14]
push edx
mov cl, byte [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00419a24
add esp, 0x10
test eax, eax
je 0x41a329
mov eax, dword [ebp - 0x7c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
jmp 0x41a36f
mov ecx, dword [ebp - 0x7c]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
test ebx, ebx
je 0x41a150
mov eax, dword [0x59ca68]
push eax
call fcn.00529fd4
pop ecx
cmp ebx, 0x103
je 0x41a363
push edi
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
jmp 0x41a36f
xor eax, eax
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret