Function at 0x523746
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22124
call fcn.0054c740
push esi
mov dword [ebp - 0x22124], ecx
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x22010], 0xffffffff
mov dword [ebp - 0x22018], 0xff
lea eax, [ebp - 0x22008]
push eax
push 0x578a00
mov ecx, dword [ebp - 0x22124]
call fcn.00522f40
mov dword [ebp - 0x22014], eax
mov dword [ebp - 0x2200c], 0
jmp 0x5237ba
mov ecx, dword [ebp - 0x2200c]
add ecx, 1
mov dword [ebp - 0x2200c], ecx
mov edx, dword [ebp - 0x2200c]
cmp edx, dword [ebp - 0x22014]
jge 0x523af2
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0x2200c]
shl eax, 8
lea ecx, [ebp + eax - 0x22008]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x22010], eax
cmp dword [ebp - 0x22010], 0xffffffff
je 0x523aed
mov edx, dword [ebp - 0x2200c]
shl edx, 8
lea eax, [ebp + edx - 0x22008]
push eax
lea ecx, [ebp - 0x508]
push ecx
call fcn.0054be90
add esp, 8
push str.SYSTEMCurrentControlSetEnum_
lea edx, [ebp - 0x308]
push edx
call fcn.0054be90
add esp, 8
push 1
push 0x23
lea eax, [ebp - 0x508]
push eax
mov ecx, dword [ebp - 0x22124]
call fcn.0052325e
mov byte [ebp + eax - 0x508], 0x5c
push 1
push 0x23
lea ecx, [ebp - 0x508]
push ecx
mov ecx, dword [ebp - 0x22124]
call fcn.0052325e
mov byte [ebp + eax - 0x508], 0x5c
push 1
push 0x23
lea edx, [ebp - 0x508]
push edx
mov ecx, dword [ebp - 0x22124]
call fcn.0052325e
mov byte [ebp + eax - 0x508], 0
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0x308]
push ecx
call fcn.0054bea0
add esp, 8
push 0x5cad98
lea edx, [ebp - 0x308]
push edx
call fcn.0054bea0
add esp, 8
lea eax, [ebp - 0x2201c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x308]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x22020], eax
cmp dword [ebp - 0x22020], 0
jne 0x523ac8
mov dword [ebp - 0x22018], 0xff
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x22120]
push edx
call fcn.0054bf90
add esp, 0xc
lea eax, [ebp - 0x22018]
push eax
lea ecx, [ebp - 0x22120]
push ecx
push 0
push 0
push 0x5cad9c
mov edx, dword [ebp - 0x2201c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x22020], eax
push 3
push 0x23
mov eax, dword [ebp - 0x2200c]
shl eax, 8
lea ecx, [ebp + eax - 0x22008]
push ecx
mov ecx, dword [ebp - 0x22124]
call fcn.0052325e
mov esi, eax
push 2
push 0x23
mov edx, dword [ebp - 0x2200c]
shl edx, 8
lea eax, [ebp + edx - 0x22008]
push eax
mov ecx, dword [ebp - 0x22124]
call fcn.0052325e
sub esi, eax
sub esi, 1
mov dword [ebp - 0x108], esi
push pe_nt_image_headers32
push 0xff
lea ecx, [ebp - 0x608]
push ecx
call fcn.0054bf90
add esp, 0xc
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x2200c]
shl eax, 8
lea esi, [ebp + eax - 0x22008]
push 2
push 0x23
mov ecx, dword [ebp - 0x2200c]
shl ecx, 8
lea edx, [ebp + ecx - 0x22008]
push edx
mov ecx, dword [ebp - 0x22124]
call fcn.0052325e
lea eax, [esi + eax + 1]
push eax
lea ecx, [ebp - 0x608]
push ecx
call fcn.0054c7e0
add esp, 0xc
mov edx, dword [ebp - 0x108]
mov byte [ebp + edx - 0x608], 0
lea eax, [ebp - 0x22120]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0054cf00
add esp, 8
test eax, eax
je 0x523a3b
lea edx, [ebp - 0x608]
push edx
call fcn.0054ce70
add esp, 4
push eax
lea eax, [ebp - 0x608]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0054e060
add esp, 0xc
test eax, eax
jne 0x523ac8
mov edx, dword [ebp - 0x2200c]
shl edx, 8
lea eax, [ebp + edx - 0x22008]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0054be90
add esp, 8
mov dword [ebp - 0x22018], 0xff
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x100]
push edx
call fcn.0054bf90
add esp, 0xc
lea eax, [ebp - 0x22018]
push eax
lea ecx, [ebp - 0x100]
push ecx
push 0
push 0
push 0x5cadac
mov edx, dword [ebp - 0x2201c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x22020], eax
cmp dword [ebp - 0x22020], 0
jne 0x523ac8
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0054be90
add esp, 8
mov dword [ebp - 0x104], 1
mov edx, dword [ebp - 0x2201c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22010]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x104], 0
je 0x523aed
jmp 0x523af2
jmp 0x5237ab
mov eax, dword [ebp - 0x104]
pop esi
mov esp, ebp
pop ebp
ret 0xc