Function at 0x4c1420
Capabilities:
Query or enumerate registry key
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a0
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x34f]
push 0
push eax
mov dword [ebp - 0x454], 0xffffffff
mov byte [ebp - 0x350], 0
call fcn.004d29c0
lea eax, [ebx - 0x80000000]
add esp, 0xc
mov dword [ebp - 0x46c], 0x104
mov dword [ebp - 0x45c], 0
cmp eax, 5
ja case.0x4c1479.2147483646
jmp dword [eax*4 + 0x4c16b4]
push str.HKEY_CLASSES_ROOT
lea ecx, [ebp - 0x48]
push ecx
jmp 0x4c14b5
push str.HKEY_CURRENT_USER
lea edx, [ebp - 0x48]
push edx
jmp 0x4c14b5
push str.HKEY_USERS
lea ecx, [ebp - 0x48]
push ecx
jmp 0x4c14b5
push str.HKEY_CURRENT_CONFIG
lea edx, [ebp - 0x48]
push edx
jmp 0x4c14b5
push str.HKEY_LOCAL_MACHINE
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x148]
push str.__s_s__r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x148]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edx, esi
mov ecx, ebx
call fcn.004c16d0
add esp, 4
lea eax, [ebp - 0x458]
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c169d
lea ecx, [ebp - 0x494]
push ecx
lea edx, [ebp - 0x480]
push edx
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x47c]
push ecx
lea edx, [ebp - 0x484]
push edx
lea eax, [ebp - 0x48c]
push eax
lea ecx, [ebp - 0x488]
push ecx
lea edx, [ebp - 0x45c]
push edx
mov edx, dword [ebp - 0x458]
push 0
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x350]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
xor eax, eax
cmp dword [ebp - 0x45c], eax
je 0x4c1690
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x464], eax
mov eax, 0xff
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x450]
push edx
mov edx, dword [ebp - 0x460]
push 0
lea eax, [ebp - 0x474]
push eax
mov eax, dword [ebp - 0x458]
lea ecx, [ebp - 0x248]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [ebp - 0x464]
inc dword [ebp - 0x460]
mov edx, ecx
inc ecx
mov dword [ebp - 0x464], ecx
cmp edx, dword [ebp - 0x45c]
ja 0x4c1690
cmp eax, 0x103
je 0x4c1690
test eax, eax
jne 0x4c159a
lea eax, [ebp - 0x248]
push eax
push esi
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x148]
push str._r_n__s_s_s__r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x148]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x248]
push eax
push esi
lea ecx, [ebp - 0x148]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea edx, [ebp - 0x148]
mov ecx, ebx
call fcn.004c16d0
add esp, 0x14
inc dword [ebp - 0x454]
jmp 0x4c159a
mov edx, dword [ebp - 0x458]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x454]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret