Function at 0x401860
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x48a77b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x814
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], ebx
cmp eax, 2
jge 0x401896
xor eax, eax
jmp 0x401b04
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
rep stosd dword es:[edi], eax
lea esi, [ebp + 0x10]
push 0x4b9760
stosw word es:[edi], ax
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebx
je 0x4019aa
mov ecx, dword [esi]
lea edx, [esp + 0x24]
push 0x200
push edx
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call fcn.0041e0a0
add esp, 0xc
test eax, eax
je 0x401b04
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x24]
push ecx
push eax
call fcn.0041a400
add esp, 8
test eax, eax
jle 0x4019a3
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x224]
stosb byte es:[edi], al
push ecx
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x2c], 0x200
call fcn.0041a500
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ebx
jg 0x401982
xor eax, eax
jmp 0x401b04
lea ecx, [esp + 0x424]
push 0x200
lea edx, [esp + 0x228]
push ecx
push edx
call fcn.0041e160
add esp, 0xc
test eax, eax
jne 0x4019aa
xor eax, eax
jmp 0x401b04
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
call esi
test eax, eax
jne 0x4019de
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4019fc
lea edx, [esp + 0x10]
push edx
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401a02
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push 0x2001f
push ebx
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x401b00
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push ebx
push str.proxytype
push eax
xor edi, edi
mov dword [esp + 0x2c], 2
call esi
test eax, eax
jne 0x401a54
mov edi, 1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push ebx
push str.customproxytype
push edx
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x401a73
inc edi
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [esp + 0x424]
mov dword [esp + 0x82c], ebx
push eax
mov eax, dword [ebp + 4]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push str._s__s__s__s
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x30]
add esp, 0x18
mov eax, dword [edx - 8]
lea ecx, [eax + eax + 2]
push ecx
push eax
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::GetBuffer
mov edx, dword [esp + 0x14]
push eax
push 1
push ebx
push str.customhttp
push edx
call esi
test eax, eax
jne 0x401ad4
inc edi
cmp edi, 3
jne 0x401ae1
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov dword [esp + 0x82c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x820
ret