Function at 0x536b040
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53eca59
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x54183c4]
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 + 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
xor eax, eax
push 0x105
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.052e8e40
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x536b0b4
lea eax, [ebp + 8]
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x536b217
lea edx, [ebp - 0xe0]
push edx
call fcn.052e1430
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov dword [ebp - 0x34], 0x104
cmp dword [ebp - 0x18], esi
jae 0x536b0f6
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
je 0x536b151
mov ecx, dword [0x5419944]
cmp ecx, 0x5419944
je 0x536b1fc
test byte [ecx + 0x1c], 1
je 0x536b1fc
cmp byte [ecx + 0x19], 2
jb 0x536b1fc
push eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
push 0x53f9718
push 0xc
push eax
push ecx
call fcn.052ed6e0
add esp, 0x14
jmp 0x536b1fc
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x2c]
push edx
jae 0x536b160
lea esi, [ebp - 0x2c]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 8]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.052e53b0
mov edx, dword [ebp - 0x3c]
mov ecx, esi
call fcn.0536aa20
mov eax, dword [ebp - 0x40]
mov esi, 8
push eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x536b1a1
lea eax, [ebp - 0x2c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.052e53b0
mov ecx, dword [ebp - 0x38]
call fcn.05369f60
mov eax, dword [ebp - 0x2c]
inc edi
mov dword [ebp - 0x34], 0x104
cmp dword [ebp - 0x18], esi
jae 0x536b1e0
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x34]
push ecx
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
je 0x536b151
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 1
call fcn.052e1350
jmp 0x536b255
mov ecx, dword [0x5419944]
cmp ecx, 0x5419944
je 0x536b255
test byte [ecx + 0x1c], 1
je 0x536b255
cmp byte [ecx + 0x19], 2
jb 0x536b255
mov edx, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x536b23c
lea edx, [ebp + 8]
push eax
mov eax, dword [ecx + 0x10]
push edx
mov edx, dword [ecx + 0x14]
push 0x53f9718
push 0xd
push edx
push eax
call fcn.052ed660
add esp, 0x18
cmp dword [ebp - 0x18], esi
jb 0x536b266
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.053504e7
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp + 0x1c], esi
jb 0x536b287
mov eax, dword [ebp + 8]
push eax
call fcn.053504e7
add esp, 4
xor eax, eax
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.0534fc81
mov esp, ebp
pop ebp
ret 0x20