Function at 0x41856c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
mov eax, 0x5673bc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.00528424
xor esi, esi
lea eax, [ebp - 0x70]
push eax
push 8
push 0
push edi
mov edx, dword [ebp + 8]
push edx
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov ebx, eax
test eax, eax
je 0x4186d0
mov word [ebp - 0x5c], 8
xor edx, edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push ecx
inc dword [ebp - 0x50]
mov edx, edi
lea eax, [ebp - 8]
call fcn.00537758
inc dword [ebp - 0x50]
mov edx, dword [eax]
lea eax, [ebp - 0x7c]
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 dword [ebp - 0x10], eax
add esp, 0x1c
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x7c]
mov dword [esi], eax
lea eax, [ebp - 0x10]
mov dl, byte [ebp - 0x78]
mov byte [esi + 4], dl
inc dword [ebp - 0x50]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
xor eax, eax
mov ecx, dword [edx]
lea edx, [ebp - 4]
push ecx
mov dword [ebp - 4], eax
inc dword [ebp - 0x50]
mov eax, 0x1775
call fcn.0051100c
lea edx, [ebp - 4]
lea eax, [ebp - 0x14]
mov ecx, dword [edx]
mov edx, edi
push ecx
call fcn.00537758
inc dword [ebp - 0x50]
mov edx, dword [eax]
lea eax, [ebp - 0x84]
call fcn.00406a44
mov ecx, 1
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp - 0x88]
dec ecx
pop eax
pop edx
call fcn.00511db4
cmp dword [ebp - 0x18], 0
je 0x418665
mov eax, dword [ebp - 0x18]
jmp 0x41866a
mov eax, 0x566f4b
mov edx, ebx
call fcn.0044a7e0
dec dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x50]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00526184
pop ecx
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x50]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005378b8
or eax, 0xffffffff
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x418a32
mov dword [ebp - 0x8c], 0x80
lea ecx, [ebp - 0x94]
lea eax, [ebp - 0x8c]
push ecx
push 0
push 0
push 0
push eax
lea edx, [ebp - 0x140]
push edx
push esi
mov ecx, dword [ebp - 0x70]
push ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4189e5
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x140]
push eax
push 0x40000
push 0
push edx
mov ecx, dword [ebp - 0x70]
inc esi
push ecx
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov ebx, eax
test eax, eax
je 0x418873
mov word [ebp - 0x5c], 0x20
xor edx, edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edx
push ecx
inc dword [ebp - 0x50]
lea edx, [ebp - 0x140]
lea eax, [ebp - 0x20]
call fcn.00537758
inc dword [ebp - 0x50]
mov edx, dword [eax]
lea eax, [ebp - 0xa0]
call fcn.00406a44
push 0
push 0
push 0x406aa0
mov ecx, 1
push 3
mov dword [ebp - 0x24], ecx
push ecx
push 8
push 0
call fcn.005265ac
mov dword [ebp - 0x28], eax
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0xa0]
add esp, 0x1c
mov dword [esi], eax
mov dl, byte [ebp - 0x9c]
mov byte [esi + 4], dl
xor edx, edx
inc dword [ebp - 0x50]
mov eax, dword [edi]
push eax
mov dword [ebp - 0x1c], edx
inc dword [ebp - 0x50]
lea edx, [ebp - 0x1c]
mov eax, 0x1776
call fcn.0051100c
lea ecx, [ebp - 0x1c]
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x140]
lea eax, [ebp - 0x2c]
call fcn.00537758
inc dword [ebp - 0x50]
mov edx, dword [eax]
lea eax, [ebp - 0xa8]
call fcn.00406a44
mov edx, 1
mov dword [ebp - 0xac], edx
mov ecx, dword [ebp - 0xac]
dec ecx
pop eax
pop edx
call fcn.00511db4
cmp dword [ebp - 0x30], 0
je 0x4187ff
mov eax, dword [ebp - 0x30]
jmp 0x418804
mov eax, 0x566f4c
mov edx, ebx
call fcn.0044a7e0
dec dword [ebp - 0x50]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x50]
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00526184
pop ecx
dec dword [ebp - 0x50]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005378b8
mov ecx, dword [ebp - 0x70]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x418a32
mov ecx, dword [ebp + 0x10]
push ecx
push 4
mov eax, dword [ebp - 0x98]
push eax
call sub.ADVAPI32.DLL_RegSetKeySecurity
mov ebx, eax
test eax, eax
je 0x4189d9
mov word [ebp - 0x5c], 0x38
xor edx, edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], edx
push ecx
inc dword [ebp - 0x50]
lea edx, [ebp - 0x140]
lea eax, [ebp - 0x38]
call fcn.00537758
inc dword [ebp - 0x50]
mov edx, dword [eax]
lea eax, [ebp - 0xb4]
call fcn.00406a44
push 0
push 0
push 0x406aa0
mov ecx, 1
push 3
mov dword [ebp - 0x3c], ecx
push ecx
push 8
push 0
call fcn.005265ac
mov dword [ebp - 0x40], eax
lea edi, [ebp - 0x40]
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0xb4]
add esp, 0x1c
mov dword [esi], eax
mov dl, byte [ebp - 0xb0]
mov byte [esi + 4], dl
xor edx, edx
inc dword [ebp - 0x50]
mov eax, dword [edi]
push eax
mov dword [ebp - 0x34], edx
inc dword [ebp - 0x50]
lea edx, [ebp - 0x34]
mov eax, 0x1777
call fcn.0051100c
lea ecx, [ebp - 0x34]
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x140]
lea eax, [ebp - 0x44]
call fcn.00537758
inc dword [ebp - 0x50]
mov edx, dword [eax]
lea eax, [ebp - 0xbc]
call fcn.00406a44
mov edx, 1
mov dword [ebp - 0xc0], edx
mov ecx, dword [ebp - 0xc0]
dec ecx
pop eax
pop edx
call fcn.00511db4
cmp dword [ebp - 0x48], 0
je 0x41895c
mov eax, dword [ebp - 0x48]
jmp 0x418961
mov eax, 0x566f4d
mov edx, ebx
call fcn.0044a7e0
dec dword [ebp - 0x50]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x50]
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00526184
pop ecx
dec dword [ebp - 0x50]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.005378b8
dec dword [ebp - 0x50]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.005378b8
mov ecx, dword [ebp - 0x98]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x70]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x418a32
mov ecx, dword [ebp - 0x98]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
test ebx, ebx
je 0x4186d0
cmp ebx, 0x103
je 0x418a0d
mov eax, dword [ebp - 0x70]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
or eax, 0xffffffff
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x418a32
cmp dword [ebp + 0x14], 0
jne 0x418a1e
mov ecx, dword [ebp - 0x70]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x418a26
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x70]
mov dword [eax], edx
xor eax, eax
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret