Function at 0x4c07e4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffd7c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1284], ecx
mov dword [ebp - 0x1280], ecx
mov dword [ebp - 0x127c], ecx
mov dword [ebp - 0x1278], ecx
mov dword [ebp - 0x126c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call fcn.00406a64
xor eax, eax
push ebp
push 0x4c0ac4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor edx, edx
call fcn.00406a7c
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x2c], 0
je 0x4c0899
xor eax, eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
push 0x80000003
lea eax, [ebp - 0x126c]
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1274], eax
mov byte [ebp - 0x1270], 0x11
lea edx, [ebp - 0x1274]
xor ecx, ecx
mov eax, 0x4c0ae0
call fcn.00413f6c
mov eax, dword [ebp - 0x126c]
call fcn.00406b08
push eax
call sub.advapi32.dll_RegConnectRegistryW
mov edi, eax
jmp 0x4c08ab
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x80000003
call sub.advapi32.dll_RegOpenKeyW
mov edi, eax
test edi, edi
jne 0x4c0a93
xor esi, esi
mov dword [ebp - 0x38], 0x20a
jmp 0x4c0a63
lea eax, [ebp - 0x1278]
lea edx, [ebp - 0x1268]
mov ecx, 0x105
call fcn.00406c74
mov eax, dword [ebp - 0x1278]
mov edx, 0x4c0af8
call fcn.00412358
test al, al
jne 0x4c0a5b
lea eax, [ebp - 0x127c]
lea edx, [ebp - 0x1268]
mov ecx, 0x105
call fcn.00406c74
mov edx, dword [ebp - 0x127c]
mov eax, 0x4c0b18
call fcn.004074cc
test eax, eax
jne 0x4c0a5b
push ebp
lea eax, [ebp - 0x1280]
lea edx, [ebp - 0x1268]
mov ecx, 0x105
call fcn.00406c74
mov eax, dword [ebp - 0x1280]
call fcn.004c0650
pop ecx
mov ebx, eax
cmp bl, 3
jb 0x4c0a5b
sub bl, 2
cmp bl, 2
jae 0x4c0955
mov bl, 2
lea eax, [ebp - 8]
movzx eax, byte [eax]
mov byte [ebp - 0x55], al
lea eax, [ebp - 8]
inc eax
movzx eax, byte [eax]
mov byte [ebp - 0x56], al
lea eax, [ebp - 8]
add eax, 2
movzx eax, byte [eax]
mov byte [ebp - 0x57], al
lea eax, [ebp - 8]
add eax, 3
movzx eax, byte [eax]
mov byte [ebp - 0x58], al
mov byte [ebp - 0x59], 0
mov byte [ebp - 0x5a], 0
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x3c], 0x400
mov dword [ebp - 0x40], 0x400
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x5a]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x4c0a4c
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x105e]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x85c]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00406b08
push eax
call sub.advapi32.dll_LookupAccountSidW
test eax, eax
je 0x4c0a15
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x85c]
mov ecx, 0x401
call fcn.00406c74
call sub.kernel32.dll_GetLastError_1
mov edi, eax
inc dword [ebp - 0x34]
lea eax, [ebp - 0x1284]
lea edx, [ebp - 0x85c]
mov ecx, 0x401
call fcn.00406c74
cmp dword [ebp - 0x1284], 0
jne 0x4c0a4c
cmp edi, 0x534
je 0x4c0a4c
cmp dword [ebp - 0x34], 0xa
jbe 0x4c09d2
cmp dword [ebp - 0x50], 0
je 0x4c0a5b
mov eax, dword [ebp - 0x50]
push eax
call sub.advapi32.dll_FreeSid
mov dword [ebp - 0x38], 0x20a
inc esi
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1268]
push eax
push esi
mov eax, dword [ebp - 0x4c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
je 0x4c08c1
mov eax, dword [ebp - 0x4c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0acb
lea eax, [ebp - 0x1284]
mov edx, 4
call fcn.00406a74
lea eax, [ebp - 0x126c]
call fcn.00406a6c
lea eax, [ebp - 0x2c]
call fcn.00406a6c
ret