Function at 0x40eb00
Capabilities:
Set registry value

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
call fcn.0040e8c0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40eb49
push str._SaveWin7ProxySetting__GetCurrentUserSid_failed.
call fcn.00411930
lea ecx, [esp + 0x14]
push ecx
call fcn.0040eae0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, str.SoftwareMicrosoftInternet_ExplorerInternetRegistryREGISTRYUSER_
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4491a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SOFTWARESangforSSLSangforCSClient
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040eae0
add esp, 4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push 0xf003f
push ebx
push edx
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40ec70
push eax
lea eax, [esp + 0x20]
push eax
push str._SaveWin7ProxySetting__RegOpenKeyEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x224]
push 4
push ecx
push 4
push ebx
push str.EnableProxy
push edx
call ebp
cmp eax, ebx
je 0x40ecab
push eax
push str.EnableProxy
push str._SaveWin7ProxySetting__RegSetValueEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
jmp 0x40ed3c
mov edi, dword [esp + 0x228]
cmp edi, ebx
je 0x40ed34
mov esi, dword [esp + 0x22c]
lea eax, [esp + 0x11c]
push eax
push esi
push edi
call fcn.004094e0
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40ece6
push str._SaveWin7ProxySetting__EncryptUserInfo_failed_
call fcn.00411930
add esp, 4
jmp 0x40ed3c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
inc edx
cmp esi, ebx
je 0x40ed03
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
lea ecx, [esp + 0x11c]
push edx
mov edx, dword [esp + 0x18]
push ecx
push 3
push ebx
push str.ProxyUserInfo
push edx
call ebp
cmp eax, ebx
je 0x40ed34
push eax
push str.ProxyUserInfo
push str._SaveWin7ProxySetting__RegSetValueEx_failed__key___s__err___d
call fcn.00411930
add esp, 0xc
jmp 0x40ed3c
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ed4b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret