Function at 0x406180
Capabilities:
Delete registry key
Query or enumerate registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44cdd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x134], ebx
call fcn.0044b6f4
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 1
call fcn.0044b6f4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 2
call fcn.0044b6f4
mov esi, dword [esp + 0x13c]
push 0x7c
mov ecx, esi
mov byte [esp + 0x138], 3
call sub.MFC42.DLL_CString::Find_1
mov edi, eax
cmp edi, ebx
jg 0x40623f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.004069b0
jmp 0x406635
push ebp
lea eax, [esp + 0x14]
push edi
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], 4
call fcn.0044b81a
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 3
call sub.MFC42.DLL_CString::CString
inc edi
mov ecx, esi
push edi
push ebx
call sub.MFC42.DLL_CString::Delete
mov edi, dword [esp + 0x144]
lea eax, [edi - 1]
cmp eax, 3
ja case.default.0x40628d
jmp dword [eax*4 + 0x406650]
push str.egeylmlz
lea ecx, [esp + 0x20]
call fcn.0044b82c
push str.Tqiuydsg_Nkfsqvphw_YlofrxuOV_DwusgquXhsulpp_JodhgGkof_HygfvvlppPrwjqqt
lea ecx, [esp + 0x24]
call fcn.0044b82c
lea ecx, [esp + 0x1c]
push ecx
call fcn.00406660
lea edx, [esp + 0x24]
push edx
call fcn.00406660
mov ecx, dword [esp + 0x28]
add esp, 8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push 0xf003f
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne case.default.0x40628d
lea ecx, [esp + 0x18]
call fcn.004069b0
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x18], ecx
jne case.default.0x40628d
cmp edi, 1
jne 0x406364
mov esi, dword [esi]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
push ebx
push ebx
push 0xf003f
push ebx
push ebx
push edx
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 5
call fcn.004069d0
cmp eax, ebx
jne 0x406353
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [esp + 0x138], 3
lea ecx, [esp + 0x10]
jmp 0x4065db
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov ebp, eax
push 0x2001f
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 6
call fcn.00406a40
cmp eax, ebx
je 0x40639b
mov byte [esp + 0x138], 3
lea ecx, [esp + 0x10]
jmp 0x4065db
lea ecx, [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
lea edx, [esp + 0x20]
push ebx
lea eax, [esp + 0x40]
push edx
push eax
mov edi, 0x100
push ebx
push ecx
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x4063fc
lea edx, [esp + 0x30]
lea ecx, [esp + 0x10]
push edx
call fcn.00406a90
cmp eax, ebx
jne 0x406411
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x40]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x34], edi
call esi
test eax, eax
je 0x4063c8
lea ecx, [esp + 0x10]
call fcn.004069b0
mov ecx, dword [esp + 0x18]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov byte [esp + 0x138], 3
lea ecx, [esp + 0x10]
jmp 0x4065db
push str.Ekveqrv_xTxr
lea ecx, [esp + 0x20]
call fcn.0044b82c
push str.Tqiuydsg__Oldtrtqiu_Xkqeqzt_DwusgquXhsulpp__Rrmkfjgv_Hyropths
lea ecx, [esp + 0x24]
call fcn.0044b82c
lea edx, [esp + 0x20]
push edx
call fcn.00406660
lea eax, [esp + 0x20]
push eax
call fcn.00406660
add esp, 8
lea ecx, [esp + 0x1c]
push 0x468158
push 0x4661ac
call sub.MFC42.DLL_CString::Replace
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000001
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne case.default.0x40628d
lea ecx, [esp + 0x18]
call fcn.004069b0
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x18], ecx
jne case.default.0x40628d
cmp edi, 3
jne 0x406525
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push ebx
push edx
push ecx
mov dword [esp + 0x2c], 1
call edi
mov esi, dword [esi]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push 0xf003f
push ebx
push ebx
push eax
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x154], 7
call fcn.004069d0
cmp eax, ebx
jne 0x406514
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x14]
inc eax
push eax
push esi
push 1
push ebx
push ebp
push edx
call edi
mov byte [esp + 0x138], 3
lea ecx, [esp + 0x14]
jmp 0x4065db
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov ebp, eax
push 0x2001f
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 8
call fcn.00406a40
cmp eax, ebx
jne 0x4065cf
lea eax, [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x40]
push ecx
push edx
mov edi, 0x100
push ebx
push eax
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x4065b0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call fcn.00406a90
cmp eax, ebx
jne 0x4065cf
lea edx, [esp + 0x28]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x40]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x34], edi
call esi
test eax, eax
je 0x40657c
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4065c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov byte [esp + 0x138], 3
lea ecx, [esp + 0x10]
call fcn.004069b0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je case.default.0x40628d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, ebx
je 0x406635
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 8