Function at 0x6781d5ab
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x67980cf8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x6781d527
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x6781d2c4
xor ebx, ebx
jmp 0x6781d2c8
mov ebx, dword [esp + 0x44]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x90]
test eax, eax
jne 0x6781d2ed
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ebx
push ecx
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPPropExchange::CopyPropValue_unsigned_short_int__void___void_const__
jmp 0x6781d6e8
mov edi, dword [esp + 0x3c]
mov eax, edi
and eax, 0xffff
add eax, 0xfffffffe
cmp eax, 0x63
ja case.0x6781d30c.3
xor ecx, ecx
mov cl, byte [eax + 0x6781d710]
jmp dword [ecx*4 + 0x6781d700]
lea edx, [esp + 0x44]
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esi + 0x44]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x5c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6781d356
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPPropExchange::CopyPropValue_unsigned_short_int__void___void_const__
jmp 0x6781d6e8
mov eax, dword [esp + 0x40]
push ebx
push eax
push edi
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPPropExchange::CopyPropValue_unsigned_short_int__void___void_const__
jmp 0x6781d6e8
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString_4
mov edi, dword [esp + 0x38]
mov eax, dword [esi + 0x44]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push 0
push edx
push 0
push edi
push eax
mov dword [esp + 0x48], 0
call ebp
test eax, eax
jne 0x6781d4fc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ecx
call ebp
or ebp, 0xffffffff
lea ecx, [esp + 0x44]
push ebp
mov edi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
xor ecx, ecx
cmp edi, ecx
jne 0x6781d4ff
mov eax, dword [esp + 0x3c]
cmp ax, 0x65
jne 0x6781d44b
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push str._i___i
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
je 0x6781d435
mov edx, dword [esp + 0x40]
push ebx
push edx
push 0x65
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPPropExchange::CopyPropValue_unsigned_short_int__void___void_const__
lea ecx, [esp + 0x44]
mov esi, eax
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x6781d6e8
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x6781d4e5
cmp ax, 0x64
jne 0x6781d4d7
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x20]
push edx
push eax
push str._i___i___i___i
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x18
cmp eax, 4
je 0x6781d4b6
mov edx, dword [esp + 0x40]
push ebx
push edx
push 0x64
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPPropExchange::CopyPropValue_unsigned_short_int__void___void_const__
lea ecx, [esp + 0x44]
mov esi, eax
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x6781d6e8
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x6781d4e5
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x44]
push eax
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x44]
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x6781d6e8
or ebp, 0xffffffff
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ebx
push ecx
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPPropExchange::CopyPropValue_unsigned_short_int__void___void_const__
lea ecx, [esp + 0x44]
mov esi, eax
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x6781d6e8
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x6781d532
xor edi, edi
jmp 0x6781d536
mov edi, dword [esp + 0x44]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x90]
test eax, eax
jne 0x6781d54b
xor eax, eax
jmp 0x6781d6e8
mov ebp, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x44]
mov ecx, esi
push edi
push ebp
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPPropExchange::IsSamePropValue_unsigned_short_int__void_const___void_const__
test eax, eax
je 0x6781d585
mov eax, dword [esi + 0x44]
test eax, eax
je 0x6781d57b
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x6781d57b
mov ecx, dword [esp + 0x38]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, 1
jmp 0x6781d6e8
mov edx, ebp
or ebx, 0xffffffff
and edx, 0xffff
lea eax, [edx - 2]
cmp eax, 0x63
ja case.0x6781d5a4.7
xor ecx, ecx
mov cl, byte [eax + 0x6781d78c]
jmp dword [ecx*4 + 0x6781d774]
lea edx, [esp + 0x44]
push edi
push edx
push ebp
mov ecx, esi
mov dword [esp + 0x50], 0
call sym.MfcHlpr520.dll_protected:_int___thiscall_CMHPPropExchange::CopyPropValue_unsigned_short_int__void___void_const__
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0x44]
lea eax, [esp + 0x44]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
jmp case.0x6781d5a4.7
mov edi, dword [edi]
mov ecx, dword [esi + 0x44]
mov eax, dword [edi - 8]
inc eax
push eax
mov eax, dword [esp + 0x3c]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
jmp case.0x6781d5a4.7
push ebp
mov ecx, esi
call sym.MfcHlpr520.dll_protected:_unsigned_long_int___thiscall_CMHPPropExchange::GetSizeOfVarType_unsigned_short_int_
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esi + 0x44]
push edi
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
jmp case.0x6781d5a4.7
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
push edx
lea eax, [esp + 0x48]
push str._i___i
push eax
mov dword [esp + 0x40], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x50]
mov edx, dword [esi + 0x44]
add esp, 0x10
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esp + 0x3c]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x40]
jmp 0x6781d6dc
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
push str._i___i___i___i
push ecx
mov dword [esp + 0x48], 2
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
add esp, 0x18
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esi + 0x44]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
xor eax, eax
test ebx, ebx
sete al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10