Function at 0x5236d0
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.0052e6f0
cmp eax, 3
je 0x523718
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00472272
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 0x576bc4
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x523797
push edi
push 0x576bf8
push dword [esp + 0x1c]
call fcn.00523630
lea eax, [esp + 0x1c]
push eax
push 0x576c04
push dword [esp + 0x28]
call fcn.00523630
add esp, 0x18
test eax, eax
je 0x523791
mov esi, dword [esp + 0x10]
push esi
call fcn.00522920
push eax
push esi
push edi
call fcn.00523020
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 0x576c0c
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x5237f9
lea eax, [esp + 0x10]
push eax
push 0x576bf8
push dword [esp + 0x1c]
call fcn.00523630
add esp, 0xc
test eax, eax
je 0x5237f3
mov esi, dword [esp + 0x10]
push esi
call fcn.00522920
push eax
push esi
push edi
call fcn.00523020
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 0x576c40
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x52385b
lea eax, [esp + 0x10]
push eax
push 0x576c70
push dword [esp + 0x1c]
call fcn.00523630
add esp, 0xc
test eax, eax
je 0x523855
mov esi, dword [esp + 0x10]
push esi
call fcn.00522920
push eax
push esi
push edi
call fcn.00523020
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 0x576c84
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x5239bb
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 0x5239b5
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 0x523988
lea eax, [esp + 0x10]
push eax
push 0x576bf8
push dword [esp + 0x20]
call fcn.00523630
add esp, 0xc
test eax, eax
je 0x523900
mov esi, dword [esp + 0x10]
push esi
call fcn.00522920
push eax
push esi
push edi
call fcn.00523020
push esi
call dword [0x1341f58]
add esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x576c04
push dword [esp + 0x20]
call fcn.00523630
add esp, 0xc
test eax, eax
je 0x52393e
mov esi, dword [esp + 0x10]
push esi
call fcn.00522920
push eax
push esi
push edi
call fcn.00523020
push esi
call dword [0x1341f58]
add esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x576cc4
push dword [esp + 0x20]
call fcn.00523630
add esp, 0xc
test eax, eax
je 0x52397c
mov esi, dword [esp + 0x10]
push esi
call fcn.00522920
push eax
push esi
push edi
call fcn.00523020
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 0x5238a5
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.00472272
add esp, 0x114
ret