Function at 0x4a9870
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59466c
mov eax, dword fs:[0]
push eax
sub esp, 0x5cc
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x5b8], ebx
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x5c0], eax
mov dword [ebp - 0x5d0], esi
mov dword [ebp - 0x5cc], ebx
mov dword [ebp - 0x5c8], ebx
lea ecx, [ebp - 0x5bc]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4a9992
push eax
lea edx, [ebp - 0x540]
push edx
call fcn.004080a8
push eax
lea eax, [ebp - 0x55c]
push str.COperationsManager::GetAllUsers___Failed_to_get_key_with_error:
push eax
mov byte [ebp - 4], 1
call fcn.0040367f
add esp, 0x14
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00403bd4
mov esi, 0x10
cmp dword [ebp - 0x548], esi
jb 0x4a993c
mov ecx, dword [ebp - 0x55c]
push ecx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x548], 0xf
mov dword [ebp - 0x54c], ebx
mov byte [ebp - 0x55c], bl
cmp dword [ebp - 0x52c], esi
jb 0x4a9969
mov edx, dword [ebp - 0x540]
push edx
call fcn.0053ed60
add esp, 4
mov eax, dword [ebp - 0x5c0]
lea ecx, [ebp - 0x5d0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
cmp eax, ecx
je 0x4a9c50
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x4a9c50
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
xor edi, edi
mov byte [ebp - 0x114], bl
call fcn.005409b0
mov ecx, dword [ebp - 0x5bc]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4a9beb
lea esi, [edi + 8]
inc edi
cmp byte [ebp + 0xc], bl
jne 0x4a9a2e
lea edx, [ebp - 0x114]
push str.S_1_5_18
push edx
call fcn.00564d4d
add esp, 8
test eax, eax
je 0x4a9bc3
lea eax, [ebp - 0x114]
push str.S_1_5_19
push eax
call fcn.00564d4d
add esp, 8
test eax, eax
je 0x4a9bc3
lea ecx, [ebp - 0x114]
push str.S_1_5_20
push ecx
call fcn.00564d4d
add esp, 8
test eax, eax
je 0x4a9bc3
lea edx, [ebp - 0x5b4]
push edx
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x5b4], ebx
call sub.ADVAPI32.dll_ConvertStringSidToSidA
test eax, eax
je 0x4a9bc3
mov eax, 0x104
lea ecx, [ebp - 0x5b8]
push ecx
mov dword [ebp - 0x5d8], eax
mov dword [ebp - 0x5d4], eax
lea edx, [ebp - 0x5d4]
push edx
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [ebp - 0x5b4]
lea ecx, [ebp - 0x5d8]
push ecx
lea edx, [ebp - 0x524]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x4a9bb6
cmp dword [ebp - 0x5b8], 1
jne 0x4a9bb6
xor ecx, ecx
mov eax, 7
xor edx, edx
mov dword [ebp - 0x59c], 0xf
mov dword [ebp - 0x5a0], ebx
mov byte [ebp - 0x5b0], bl
mov dword [ebp - 0x580], eax
mov dword [ebp - 0x584], ebx
mov word [ebp - 0x594], cx
mov dword [ebp - 0x564], eax
mov dword [ebp - 0x568], ebx
mov word [ebp - 0x578], dx
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a9af8
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x5b0]
call fcn.00402a36
lea ecx, [ebp - 0x524]
push ecx
lea edx, [ebp - 0x540]
push edx
call fcn.004042eb
add esp, 8
push eax
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 4
call fcn.00403265
mov byte [ebp - 4], 3
cmp dword [ebp - 0x52c], esi
jb 0x4a9b55
mov eax, dword [ebp - 0x540]
push eax
call fcn.0053ed60
add esp, 4
lea ecx, [ebp - 0x31c]
push ecx
lea edx, [ebp - 0x540]
push edx
call fcn.004042eb
add esp, 8
push eax
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 5
call fcn.00403265
mov byte [ebp - 4], 3
cmp dword [ebp - 0x52c], esi
jb 0x4a9b96
mov eax, dword [ebp - 0x540]
push eax
call fcn.0053ed60
add esp, 4
lea ecx, [ebp - 0x5b0]
push ecx
lea ecx, [ebp - 0x5d0]
call fcn.00407fa9
lea ecx, [ebp - 0x5b0]
mov byte [ebp - 4], bl
call fcn.00402e0a
mov edx, dword [ebp - 0x5b4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x5bc]
push 0x104
lea eax, [ebp - 0x114]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4a99d4
mov esi, dword [ebp - 0x5d0]
mov edx, dword [ebp - 0x5bc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x5c0]
lea eax, [ebp - 0x5d0]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
cmp edi, eax
je 0x4a9c26
mov ecx, dword [ebp - 0x5cc]
mov edx, dword [ebp - 0x5c8]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
jmp 0x4a9c4e
cmp esi, ebx
je 0x4a9c4e
mov eax, dword [ebp - 0x5b8]
mov edx, dword [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x5c4]
push ecx
push edx
push esi
call fcn.004035e9
push esi
call fcn.0053ed60
add esp, 0x14
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 8