Function at 0x404de0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4158a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov edi, ecx
push ecx
lea eax, [esp + 0x138]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov dword [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString_1
push 0x80000000
mov ecx, edi
call fcn.00405290
mov esi, eax
test esi, esi
je 0x404f59
push ecx
lea edx, [esp + 0x138]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00405190
push 0x421388
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov bl, 4
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x41f8a8
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x140]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x13c], 5
call sub.MFC42.DLL_CString::CString_1
push 0x80000000
mov ecx, edi
mov byte [esp + 0x13c], bl
call fcn.004055c0
mov eax, dword [esp + 0x10]
push 0x41f894
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x404edf
push 0x421388
lea ecx, [esp + 0x14]
call fcn.00414c26
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x404f9f
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push 0x41f070
push eax
call ebp
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push 0x41f8a8
push esi
call ebx
test eax, eax
je 0x404f9f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 3
call fcn.00414af4
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 2
call fcn.00414af4
lea ecx, [esp + 0x134]
mov byte [esp + 0x12c], 1
call fcn.00414af4
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 0
call fcn.00414af4
lea ecx, [esp + 0x13c]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00414af4
xor eax, eax
jmp 0x4050a8
push 0x41f894
lea edx, [esp + 0x24]
push 0x41f070
push edx
call ebp
or ebp, 0xffffffff
lea edi, [esp + 0x2c]
mov ecx, ebp
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x20]
push ecx
push eax
push 1
push 0
push 0x421388
push esi
call ebx
test eax, eax
push esi
je 0x405040
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 3
call fcn.00414af4
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 2
call fcn.00414af4
lea ecx, [esp + 0x134]
mov byte [esp + 0x12c], 1
call fcn.00414af4
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 0
call fcn.00414af4
lea ecx, [esp + 0x13c]
mov dword [esp + 0x12c], ebp
call fcn.00414af4
xor eax, eax
jmp 0x4050a8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 3
call fcn.00414af4
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 2
call fcn.00414af4
lea ecx, [esp + 0x134]
mov byte [esp + 0x12c], 1
call fcn.00414af4
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 0
call fcn.00414af4
lea ecx, [esp + 0x13c]
mov dword [esp + 0x12c], ebp
call fcn.00414af4
mov eax, 1
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret 0xc