Function at 0x4d3fb0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x314
mov eax, dword [0x5fe940]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x320], eax
mov eax, dword [esp + 0x32c]
mov ebp, ecx
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x18], 0x100
xor ebx, ebx
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00591195
mov esi, eax
add esp, 4
test esi, esi
je 0x4d4166
cmp word [esp + 0x334], bx
jle 0x4d413a
mov eax, dword [esp + 0x338]
push eax
lea ecx, [esp + 0x224]
push ecx
call edi
push 0x5c
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.004d2c50
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x20]
mov cl, byte [eax + edx - 1]
dec edx
cmp cl, 0x7e
jne 0x4d413a
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
push 0x5c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x128]
push ecx
mov ecx, ebp
call fcn.004d2c50
mov ecx, dword [esp + 0x328]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x12c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d415d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push ecx
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
cmp edi, 0x103
je 0x4d40e3
mov edx, dword [ebp]
push 0
lea eax, [esp + 0x24]
push eax
push esi
mov ecx, ebp
call dword [edx + 8]
test eax, eax
jne 0x4d40fc
inc ebx
cmp edi, 0x103
jne 0x4d40a0
push esi
call fcn.0059107d
add esp, 4
xor eax, eax
jmp 0x4d4208
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x5b8714
lea ecx, [esp + 0x124]
push ecx
call edi
push esi
lea edx, [esp + 0x124]
push edx
call edi
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x328]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4d4170
push esi
call fcn.0059107d
add esp, 4
xor eax, eax
jmp 0x4d4208
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push ebx
push edx
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
cmp edi, 0x103
je 0x4d4235
mov eax, dword [esp + 0x338]
test eax, eax
je 0x4d4221
cmp word [esp + 0x334], 0
je 0x4d4221
mov eax, dword [ebp]
push 0
lea ecx, [esp + 0x224]
push ecx
push esi
mov ecx, ebp
call dword [eax + 8]
test eax, eax
je 0x4d4221
cmp word [esp + 0x334], 1
je 0x4d4235
mov eax, dword [esp + 0x330]
inc dword [eax]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0059107d
mov ecx, dword [esp + 0x334]
mov edx, dword [ecx]
xor eax, eax
add esp, 4
test edx, edx
setg al
mov ecx, dword [esp + 0x320]
pop edi
pop esi
pop ebp
pop ebx
call fcn.005900c7
add esp, 0x314
ret 0x14
cmp word [esp + 0x334], 2
je 0x4d4235
mov eax, dword [esp + 0x330]
inc dword [eax]
inc ebx
cmp edi, 0x103
jne 0x4d4170
jmp 0x4d41e4