Function at 0x40ccd0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a04fb
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x814], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x82c]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov ebp, 2
cmp dword [edi + 0x14], ebp
mov dword [esp + 0x24], ebx
jl 0x40ce42
push 0x1ff
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.004e5fc0
push 0x3fe
lea edx, [esp + 0x43a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x440], cx
call fcn.004e5fc0
lea esi, [edi + 0x10]
push 0x5e8ee8
push esi
call fcn.0040bda0
add esp, 0x20
test al, al
je 0x40ce49
mov eax, dword [esi]
mov edx, dword [eax - 0xc]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x40cd8c
push edx
mov ecx, esi
call fcn.0040c000
mov esi, dword [esi]
push 0x200
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.00474c30
add esp, 0xc
test eax, eax
je 0x40ce42
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40cdb0
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.0044a410
add esp, 8
test eax, eax
jle 0x40ce42
push 0x1ff
lea eax, [esp + 0x22d]
push ebx
push eax
mov dword [esp + 0x24], 0x200
mov byte [esp + 0x234], bl
call fcn.004e5fc0
lea eax, [esp + 0x34]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40cdf7
sub eax, edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x22c]
push edx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00449f80
add esp, 0x10
cmp dword [esp + 0x18], ebx
jle 0x40ce42
push 0x200
lea ecx, [esp + 0x42c]
push ecx
lea edx, [esp + 0x230]
push edx
call fcn.00474d40
add esp, 0xc
test eax, eax
jne 0x40ce49
xor eax, eax
jmp 0x40cff5
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push ebx
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], 1
call esi
test eax, eax
jne 0x40ce7d
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x40ce9b
lea edx, [esp + 0x14]
push edx
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40cea1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebx
push str.SOFTWARELiveUpdate360
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x40cff1
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x24]
push edx
push 4
push ebx
push str.proxytype
mov dword [esp + 0x34], ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
mov dword [esp + 0x34], ebx
call ebp
test eax, eax
jne 0x40cef4
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push ebx
push str.customproxytype
push edx
mov dword [esp + 0x38], ebx
call ebp
test eax, eax
jne 0x40cf16
inc dword [esp + 0x1c]
call fcn.004a581f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40cf30
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x428]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push str._s__s__s__s
push edx
mov dword [esp + 0x84c], ebx
call fcn.0040cbe0
mov esi, dword [esp + 0x30]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
add esp, 0x18
or eax, ecx
jge 0x40cf93
push edi
lea ecx, [esp + 0x1c]
call fcn.0040c000
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [edi + edi + 2]
push eax
push esi
push 1
push ebx
push 0x5bbd2c
push ecx
call ebp
test eax, eax
jne 0x40cfb0
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 3
jne 0x40cfbf
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x834], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cff1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x82c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x824
ret