Function at 0x401e70
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e77d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov eax, dword [0x51b640]
mov esi, dword [eax]
mov ebp, dword [0x51b628]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
mov edi, dword [0x51b640]
xor ebx, ebx
cmp ebp, ebx
je 0x401ed4
cmp ebp, dword [0x51b628]
je 0x401ed9
call fcn.004ca395
cmp esi, edi
je 0x40238c
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2d0], ebx
cmp ebp, ebx
jne 0x401f8f
call fcn.004ca395
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x401f18
call fcn.004ca395
mov ecx, dword [esi + 0x10]
push ecx
push str.SettingCenter_lu
lea edi, [esp + 0x24]
call fcn.00406e20
add esp, 8
cmp ebp, ebx
jne 0x401f97
call fcn.004ca395
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x401f42
call fcn.004ca395
mov edx, dword [esi + 0x10]
mov eax, dword [0x51b620]
mov ebx, dword [0x51b608]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
push ecx
lea edx, [esp + 0xa8]
push edx
mov edi, 0x51b608
mov dword [esp + 0x38], eax
call fcn.00420fe0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x401f7b
cmp eax, ebx
je 0x401f80
call fcn.004ca395
mov eax, dword [esp + 0x30]
cmp dword [esi + 4], eax
jne 0x401f9c
xor edi, edi
xor eax, eax
jmp 0x401faf
mov eax, dword [ebp]
jmp 0x401f0e
mov eax, dword [ebp]
jmp 0x401f38
lea ecx, [esp + 0x18]
push ecx
mov ebx, 0x51b608
call fcn.00420f30
mov eax, dword [eax]
xor edi, edi
sub eax, 1
je 0x40220d
sub eax, 1
je 0x40214c
sub eax, 1
jne 0x402308
mov dword [esp + 0x18], edi
lea esi, [esp + 0xac]
mov eax, 0x51b688
call fcn.0044b590
mov byte [esp + 0x2d0], 7
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x401ffd
mov dword [esp + 0x18], edi
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x18]
push eax
push esi
call ecx
mov bl, 6
lea ecx, [esp + 0xac]
mov esi, eax
mov byte [esp + 0x2d0], bl
call fcn.00409540
cmp esi, edi
je 0x4020cc
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x402046
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x28]
call eax
mov esi, eax
jmp 0x40204b
mov esi, 0x4f05c4
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x34]
xor ecx, ecx
push edx
mov word [esp + 0x38], cx
call ebx
mov eax, 8
push esi
mov word [esp + 0x38], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x3c], eax
cmp eax, edi
jne 0x402080
cmp esi, edi
jne 0x40234e
mov byte [esp + 0x2d0], 8
cmp ebp, edi
jne 0x4020c7
call fcn.004ca395
xor ebp, ebp
mov esi, dword [esp + 0x24]
cmp esi, dword [ebp + 0x18]
jne 0x4020a1
call fcn.004ca395
add esi, 0x18
lea ecx, [esp + 0x34]
cmp esi, ecx
je 0x4020be
mov edx, ecx
push edx
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, edi
jl 0x40236a
lea eax, [esp + 0x34]
push eax
call ebx
jmp 0x402126
mov ebp, dword [ebp]
jmp 0x402093
lea esi, [esp + 0x84]
mov eax, 0x51b688
call fcn.0044b590
mov byte [esp + 0x2d0], 9
mov esi, dword [eax]
cmp ebp, edi
jne 0x402147
call fcn.004ca395
xor ebp, ebp
mov edi, dword [esp + 0x24]
cmp edi, dword [ebp + 0x18]
jne 0x402100
call fcn.004ca395
mov edx, dword [edi + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x14]
push edx
push eax
push esi
call ecx
lea ecx, [esp + 0x84]
mov byte [esp + 0x2d0], bl
call fcn.00409540
xor edi, edi
mov byte [esp + 0x2d0], 0
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x402308
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x402308
mov ebp, dword [ebp]
jmp 0x4020f2
lea esi, [esp + 0x94]
mov eax, 0x51b688
mov dword [esp + 0x18], edi
call fcn.0044b590
mov byte [esp + 0x2d0], 1
mov eax, dword [eax]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x10]
call eax
lea ecx, [esp + 0x94]
mov esi, eax
mov byte [esp + 0x2d0], 0
call fcn.00409540
cmp esi, edi
je 0x4021c1
cmp ebp, edi
jne 0x4021bc
call fcn.004ca395
xor ebp, ebp
mov esi, dword [esp + 0x24]
cmp esi, dword [ebp + 0x18]
jne 0x4021b0
call fcn.004ca395
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x20], ecx
jmp 0x402308
mov ebp, dword [ebp]
jmp 0x4021a2
lea esi, [esp + 0x74]
mov eax, 0x51b688
call fcn.0044b590
mov byte [esp + 0x2d0], 2
mov esi, dword [eax]
cmp ebp, edi
jne 0x402208
call fcn.004ca395
xor ebp, ebp
mov edi, dword [esp + 0x24]
cmp edi, dword [ebp + 0x18]
jne 0x4021f2
call fcn.004ca395
mov eax, dword [edi + 0x20]
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
push eax
push ebx
push esi
call ecx
lea ecx, [esp + 0x74]
jmp 0x4022fb
mov ebp, dword [ebp]
jmp 0x4021e4
lea esi, [esp + 0x64]
mov eax, 0x51b688
mov dword [esp + 0x18], edi
call fcn.0044b590
mov byte [esp + 0x2d0], 3
mov eax, dword [eax]
mov ebx, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
call edx
lea ecx, [esp + 0x64]
mov esi, eax
mov byte [esp + 0x2d0], 0
call fcn.00409540
cmp esi, edi
je 0x4022b4
mov ecx, dword [esp + 0x18]
mov eax, 0x13
mov word [esp + 0x54], ax
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x2d0], 4
cmp ebp, edi
jne 0x4022af
call fcn.004ca395
xor ebp, ebp
mov esi, dword [esp + 0x24]
cmp esi, dword [ebp + 0x18]
jne 0x402285
call fcn.004ca395
add esi, 0x18
lea edx, [esp + 0x54]
cmp esi, edx
je 0x4022a2
mov eax, edx
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, edi
jl 0x40237b
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x402308
mov ebp, dword [ebp]
jmp 0x402277
lea esi, [esp + 0x44]
mov eax, 0x51b688
call fcn.0044b590
mov byte [esp + 0x2d0], 5
mov esi, dword [eax]
cmp ebp, edi
jne 0x402349
call fcn.004ca395
xor ebp, ebp
mov edi, dword [esp + 0x24]
cmp edi, dword [ebp + 0x18]
jne 0x4022e5
call fcn.004ca395
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
xor eax, eax
cmp byte [edi + 0x20], al
setne al
push eax
push ebx
push esi
call ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x2d0], 0
call fcn.00409540
mov dword [esp + 0x2d0], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402333
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x20]
call fcn.0041ed00
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
jmp 0x401ec0
mov ebp, dword [ebp]
jmp 0x4022d7
mov ecx, 0xa
push 0x8007000e
mov word [esp + 0x38], cx
mov dword [esp + 0x40], 0x8007000e
call fcn.00406e60
mov edx, 0xa
push eax
mov word [esi], dx
mov dword [esi + 8], eax
call fcn.00406e60
mov ecx, 0xa
push eax
mov word [esi], cx
mov dword [esi + 8], eax
call fcn.00406e60
lea esi, [esp + 0x44]
mov eax, 0x51b688
mov dword [esp + 0x28], ebx
call fcn.0044b590
mov dword [esp + 0x2d0], 0xa
mov eax, dword [eax]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x28]
push ecx
push str.SettingCenterWebAppInstallPathCount
push eax
call edx
mov ecx, esi
mov dword [esp + 0x2d0], 0xffffffff
call fcn.00409540
cmp dword [esp + 0x28], ebx
jne 0x4025d0
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5195ac
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0x11
push 0x51b608
mov dword [esp + 0x2dc], 0xb
call fcn.00401b70
push 0x208
lea ecx, [esp + 0xc0]
push 0
push ecx
call fcn.004cc620
mov ebp, dword [esp + 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push ebp
lea edx, [esp + 0xc0]
push edx
call esi
push str.360Apps
lea eax, [esp + 0xc0]
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, str.SettingCenterWebAppInstallPath0
call fcn.00406bd0
lea esi, [esp + 0x44]
mov eax, 0x51b688
call fcn.0044b590
mov byte [esp + 0x2d0], 0xd
mov eax, dword [eax]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push eax
call edx
mov bl, 0xc
mov ecx, esi
mov byte [esp + 0x2d0], bl
call fcn.00409540
lea esi, [esp + 0x64]
mov eax, 0x51b688
call fcn.0044b590
mov byte [esp + 0x2d0], 0xe
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 1
push str.SettingCenterWebAppInstallPathCount
push eax
call edx
mov ecx, esi
mov byte [esp + 0x2d0], bl
call fcn.00409540
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea eax, [esp + 0x24]
push eax
push 4
push str.appinstallcount
push str.SOFTWARE360desktop
push SysReAllocStringLen
mov dword [esp + 0x38], 1
call esi
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 1
push str.appinstall_d
lea edi, [esp + 0x20]
mov byte [esp + 0x2d8], 0xf
call fcn.00406e20
lea eax, [esp + 0xc4]
add esp, 8
lea ecx, [eax + 2]
jmp 0x402530
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x402530
mov edi, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0xc0]
push ecx
push 1
push edi
push str.SOFTWARE360desktop
push SysReAllocStringLen
call esi
lea eax, [edi - 0x10]
mov byte [esp + 0x2d0], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402580
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d0], 0xb
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov dword [esp + 0x2d0], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025d0
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, 1
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.004c961b
add esp, 0x2c0
ret