Function at 0x4d4250
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x524
mov eax, dword [0x5fe940]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x52c], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x228]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x328]
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x1c], 0x100
call ebx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [esp + 0x12c]
push eax
call ebx
push 0x5c
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.004d2c50
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x28]
mov dl, byte [eax + ecx - 1]
dec ecx
cmp dl, 0x7e
lea edx, [esp + 0x28]
jne 0x4d4337
xor eax, eax
push 0x5c
mov ecx, 0x40
lea edi, [esp + 0x42c]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x430]
push eax
mov ecx, esi
call fcn.004d2c50
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x32c]
push edx
call ebx
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x22c]
push ecx
call ebx
mov edi, 1
jmp 0x4d4358
push edx
lea eax, [esp + 0x22c]
push eax
call ebx
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0x32c]
push edx
call ebx
mov edi, dword [esp + 0x1c]
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x234]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d4471
test edi, edi
jne 0x4d43cb
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push edx
lea eax, [esp + 0x12c]
push eax
push ecx
lea edx, [esp + 0x234]
push edx
push ebx
mov ecx, esi
call fcn.004d2f00
test eax, eax
je 0x4d43cb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x52c]
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00591195
mov edi, eax
add esp, 4
test edi, edi
je 0x4d4471
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
cmp ebx, 0x103
je 0x4d444c
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x32c]
push ecx
push edi
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x4d444c
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x12c]
push eax
push ecx
push edi
push edx
mov ecx, esi
call fcn.004d4250
test eax, eax
jne 0x4d4488
mov ecx, dword [esp + 0x18]
inc ecx
cmp ebx, 0x103
mov dword [esp + 0x18], ecx
jne 0x4d43e2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0059107d
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x52c]
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0059107d
mov ecx, dword [esp + 0x530]
add esp, 4
mov eax, 1
call fcn.005900c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14