Function at 0x523860
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x13413f8]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push edi
mov edi, dword [esp + 0x120]
xor ebp, ebp
mov dword [esp + 8], ebp
mov dword [edi], ebp
call fcn.0052e860
cmp eax, 3
je 0x5238a8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00472312
add esp, 0x114
ret
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push 0x576c74
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x523927
push edi
push 0x576ca8
push dword [esp + 0x1c]
call fcn.005237c0
lea eax, [esp + 0x1c]
push eax
push 0x576cb4
push dword [esp + 0x28]
call fcn.005237c0
add esp, 0x18
test eax, eax
je 0x523921
mov esi, dword [esp + 0x10]
push esi
call fcn.00522ab0
push eax
push esi
push edi
call fcn.005231b0
push esi
call dword [0x1341f58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
mov dword [esp + 0x10], ebp
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push 0x576cbc
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x523989
lea eax, [esp + 0x10]
push eax
push 0x576ca8
push dword [esp + 0x1c]
call fcn.005237c0
add esp, 0xc
test eax, eax
je 0x523983
mov esi, dword [esp + 0x10]
push esi
call fcn.00522ab0
push eax
push esi
push edi
call fcn.005231b0
push esi
call dword [0x1341f58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
mov dword [esp + 0x10], ebp
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push 0x576cf0
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x5239eb
lea eax, [esp + 0x10]
push eax
push 0x576d20
push dword [esp + 0x1c]
call fcn.005237c0
add esp, 0xc
test eax, eax
je 0x5239e5
mov esi, dword [esp + 0x10]
push esi
call fcn.00522ab0
push eax
push esi
push edi
call fcn.005231b0
push esi
call dword [0x1341f58]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
mov dword [esp + 0x10], ebp
push dword [esp + 0x14]
call ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push 0x576d34
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x523b4b
push eax
push eax
push eax
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x523b45
lea eax, [esp + 0x18]
inc ebp
push eax
push 1
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
call esi
test eax, eax
jne 0x523b18
lea eax, [esp + 0x10]
push eax
push 0x576ca8
push dword [esp + 0x20]
call fcn.005237c0
add esp, 0xc
test eax, eax
je 0x523a90
mov esi, dword [esp + 0x10]
push esi
call fcn.00522ab0
push eax
push esi
push edi
call fcn.005231b0
push esi
call dword [0x1341f58]
add esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x576cb4
push dword [esp + 0x20]
call fcn.005237c0
add esp, 0xc
test eax, eax
je 0x523ace
mov esi, dword [esp + 0x10]
push esi
call fcn.00522ab0
push eax
push esi
push edi
call fcn.005231b0
push esi
call dword [0x1341f58]
add esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x576d74
push dword [esp + 0x20]
call fcn.005237c0
add esp, 0xc
test eax, eax
je 0x523b0c
mov esi, dword [esp + 0x10]
push esi
call fcn.00522ab0
push eax
push esi
push edi
call fcn.005231b0
push esi
call dword [0x1341f58]
add esp, 0x14
mov dword [esp + 0x10], 0
push dword [esp + 0x18]
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x34]
push eax
push ebp
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x523a35
push dword [esp + 0x14]
call ebx
mov ecx, dword [esp + 0x120]
xor eax, eax
cmp dword [edi], eax
pop esi
pop ebx
pop edi
setne al
pop ebp
xor ecx, esp
call fcn.00472312
add esp, 0x114
ret