Function at 0x411570
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41de59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa20
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0xa38], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0xa38], 4
call sub.MFC42.DLL_CString::CString_2
mov bl, 5
push 0
push 0x429044
lea ecx, [esp + 0xa48]
mov byte [esp + 0xa40], bl
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
lea eax, [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0xa48]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xa3c], 6
call fcn.0041b82a
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa38], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xa40]
lea edx, [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0xa40]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa3c], 7
call fcn.0041b82a
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa38], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.HKEY_LOCAL_MACHINE
push eax
call esi
test eax, eax
mov edi, 0x80000002
je 0x411666
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push str.HKEY_CLASSES_ROOT
push ecx
call esi
test eax, eax
jne 0x41167b
mov edi, 0x80000000
mov edx, dword [esp + 0x14]
push str.HKEY_CURRENT_USER
push edx
call esi
test eax, eax
jne 0x411690
mov edi, 0x80000001
mov eax, dword [esp + 0x14]
push str.HKEY_CURRENT_CONFIG
push eax
call esi
test eax, eax
jne 0x4116a5
mov edi, 0x80000005
mov ecx, dword [esp + 0x14]
push str.HKEY_USERS
push ecx
call esi
test eax, eax
jne 0x4116ba
mov edi, 0x80000003
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
push 2
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4119f1
mov edi, dword [esp + 0xa48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.REG_SZ
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xa50]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push ecx
call edi
add esp, 8
test eax, eax
jne 0x411742
mov esi, dword [esp + 0xa44]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x2c]
inc eax
push eax
lea eax, [esp + 0x34]
push eax
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xa4c]
push str.REG_BINARY
push edx
call edi
add esp, 8
test eax, eax
jne 0x411821
mov eax, dword [esp + 0xa48]
mov ebp, dword [sym.imp.MSVCRT.dll_sscanf]
xor esi, esi
mov eax, dword [eax - 8]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
lea ecx, [esp + 0x10]
push 2
push ecx
lea ecx, [esp + 0xa50]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
lea edx, [esp + 0x1b]
push edx
push 0x429f14
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0xa48]
mov byte [esp + esi + 0x530], al
lea edx, [esp + 0x24]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0xa48]
add eax, 0xfffffffe
inc esi
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0xa4c]
mov byte [esp + 0xa3c], 8
call fcn.0041b82a
lea ecx, [esp + 0x24]
mov byte [esp + 0xa38], bl
call sub.MFC42.DLL_CString::CString
cmp esi, edi
jl 0x411775
mov ecx, dword [esp + 0xa44]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x530]
push edi
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov eax, dword [esp + 0xa4c]
push str.REG_DWORD
push eax
call edi
add esp, 8
test eax, eax
jne 0x4118f3
push 0x429f04
lea ecx, [esp + 0xa4c]
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0xa48]
lea edx, [esp + 0x10]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0xa50]
call sub.MFC42.DLL_CString::Right
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov byte [esp + 0xa38], 9
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xa4c]
mov byte [esp + 0xa3c], 0xa
call fcn.0041b82a
lea ecx, [esp + 0x24]
mov byte [esp + 0xa38], 9
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xa48]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0xa48]
mov edx, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
mov byte [esp + 0xa38], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xa44]
lea edx, [esp + 0x20]
push ecx
push 0x429ef4
push edx
call sub.MFC42.DLL_operator_1
push 0x429a50
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0xa40], 0xb
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x20]
mov byte [esp + 0xa38], 0xd
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xa50]
test eax, eax
je 0x411962
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0041b7f4
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa38], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0xa38], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xa38], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa40]
mov byte [esp + 0xa38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa44]
mov byte [esp + 0xa38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa48]
mov byte [esp + 0xa38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa4c]
mov dword [esp + 0xa38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x411adc
lea eax, [esp + 0xa44]
lea ecx, [esp + 0x20]
push eax
push 0x429ef4
push ecx
call sub.MFC42.DLL_operator_1
push 0x429a6c
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0xa44], 0xe
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x20]
mov byte [esp + 0xa38], 0x10
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xa50]
test eax, eax
je 0x411a55
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0041b7f4
call fcn.00416710
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0xa38], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0xa38], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xa38], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa40]
mov byte [esp + 0xa38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa44]
mov byte [esp + 0xa38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa48]
mov byte [esp + 0xa38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa4c]
mov dword [esp + 0xa38], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xa30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa2c
ret 0x14