Function at 0x403fd2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xc], edx
xor edi, edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, esi
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
call esi
push eax
lea eax, [ebp - 0x24]
push 0x40a30c
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0xc
lea eax, [ebp - 8]
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
call esi
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40406d
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
mov ecx, dword [ebp - 0xc]
lea esi, [eax*2 + 2]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push esi
push eax
push 1
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call ebx
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0x20]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, dword [ebp - 0xc]
call esi
push eax
lea eax, [ebp - 0x20]
push 0x40a30c
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0xc
lea eax, [ebp - 8]
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
call esi
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404216
mov ecx, dword [ebp + 8]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
mov ecx, dword [ebp + 8]
lea esi, [eax*2 + 2]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push esi
push eax
push 1
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.DefaultIcon
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40413b
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
mov ecx, dword [ebp + 0xc]
lea esi, [eax*2 + 2]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push esi
push eax
push 1
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], edi
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.shell
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40420e
lea eax, [ebp - 8]
mov dword [ebp - 0x18], edi
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.open
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x404209
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.command
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x404204
lea ecx, [ebp - 0xc]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
lea eax, [ebp - 0xc]
push str.__s_____1_
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0xc
lea ecx, [ebp - 0xc]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
lea ecx, [ebp - 0xc]
lea esi, [eax*2 + 2]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push esi
push eax
push 1
push edi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call ebx
lea ecx, [ebp - 0xc]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x1c]
call ebx
push dword [ebp - 4]
call ebx
xor edi, edi
inc edi
lea ecx, [ebp - 0x20]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x24]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret