Function at 0x4026f2
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x40763b
call fcn.004073a4
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ebx
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 - 0x20]
push 0x40a184
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
push closesocket
call edi
cmp eax, ebx
jne 0x402782
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 ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call esi
push eax
lea eax, [ebp - 0x1c]
push 0x40a184
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1c]
call esi
push eax
push closesocket
call edi
cmp eax, ebx
je 0x4027ea
xor edi, edi
mov byte [ebp - 4], bl
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1c]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call esi
mov eax, edi
call fcn.00407446
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 ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.DefaultIcon
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
call edi
test eax, eax
jne 0x402857
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 ebx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.shell
push dword [ebp - 0x10]
mov dword [ebp - 0x30], ebx
call edi
cmp eax, ebx
jne 0x402933
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.open
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], ebx
call edi
cmp eax, ebx
jne 0x40292a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.command
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
call edi
cmp eax, ebx
jne 0x402921
lea ecx, [ebp - 0x18]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov ecx, dword [ebp + 0x18]
mov byte [ebp - 4], 2
call esi
push eax
lea eax, [ebp - 0x18]
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 - 0x18]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x18]
call esi
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
jmp 0x4027cb