Function at 0x4035ff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, dword [ebp + 8]
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 - 0x14]
push 0x409324
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea ecx, [ebp - 0x14]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
push closesocket
call ebx
test eax, eax
jne 0x403689
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax + 2]
push eax
call 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 dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, dword [ebp + 0xc]
call esi
push eax
lea eax, [ebp - 0x10]
push 0x409324
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea ecx, [ebp - 0x10]
call esi
push eax
push closesocket
call ebx
test eax, eax
je 0x4036e3
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x10]
call esi
lea ecx, [ebp - 0x14]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
mov ecx, dword [ebp + 0x10]
lea eax, [eax + eax + 2]
push eax
call esi
push eax
push 1
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.DefaultIcon
push dword [ebp - 4]
mov dword [ebp - 0x18], edi
call ebx
test eax, eax
jne 0x403750
mov ecx, dword [ebp + 0x14]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
mov ecx, dword [ebp + 0x14]
lea eax, [eax + eax + 2]
push eax
call esi
push eax
push 1
push edi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.shell
push dword [ebp - 4]
mov dword [ebp - 0x24], edi
call ebx
test eax, eax
jne 0x403820
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.open
push dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
call ebx
test eax, eax
jne 0x403817
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.command
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], edi
call ebx
test eax, eax
jne 0x40380e
lea ecx, [ebp - 0xc]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, dword [ebp + 0x18]
call esi
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 eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0xc]
call esi
push eax
push 1
push edi
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xc]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
jmp 0x4036cc