Function at 0x4018b0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4036a0
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x14
push ebp
mov ebp, ecx
mov ecx, dword [eax]
push esi
xor esi, esi
cmp dword [ecx - 8], esi
je 0x401b52
push eax
lea ecx, [esp + 0x34]
call fcn.0040322a
push str.dword:
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], esi
call sub.MFC42.DLL_CString::CString_1
push str.hex:
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4019a8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 8]
push eax
push edx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
push 0x405060
push ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.MSVCRT.dll_sscanf]
mov edx, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov eax, dword [edx]
lea edx, [esp + 0x2c]
push 4
push edx
push 4
push esi
push eax
mov eax, dword [ebp]
push eax
mov dword [esp + 0x44], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x401b25
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x401ade
push ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov bl, 5
mov eax, dword [edx - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
push 0x2c
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Remove
mov eax, dword [esp + 0x34]
cmp dword [eax - 8], esi
je 0x401aa2
lea ecx, [esp + 0x1c]
push 2
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x39
jle 0x401a66
add al, 0xa9
jmp 0x401a68
add al, 0xd0
mov cl, byte [ecx + 1]
movsx eax, al
shl eax, 4
cmp cl, 0x39
jle 0x401a7b
add cl, 0xa9
jmp 0x401a7e
add cl, 0xd0
movsx edx, cl
add eax, edx
lea ecx, [esp + 0xc]
push eax
call fcn.00403284
push 2
push esi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::Delete
mov eax, dword [esp + 0x34]
cmp dword [eax - 8], esi
jne 0x401a2c
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax - 8]
mov edx, dword [edx]
push ecx
push eax
mov eax, dword [ebp]
push 3
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
pop ebx
jmp 0x401b25
push edi
push 1
push esi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::Delete
mov ecx, dword [esp + 0x34]
push 1
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x38]
dec eax
push eax
call sub.MFC42.DLL_CString::Delete
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push eax
mov edi, eax
mov esi, dword [edx]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [ebp]
push edi
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8