Function at 0x100126b0
Capabilities:
Check if file exists
Get file attributes
Get number of processors
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10050516
mov eax, dword fs:[0]
push eax
sub esp, 0xde4
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0xde0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0xdf8]
mov dword fs:[0], eax
mov ebp, 7
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], ax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0xe04], ebx
call fcn.100122f0
add esp, 4
lea edi, [ebp + 1]
cmp dword [esp + 0x40], ebx
jbe 0x1001275d
push 9
push str.livep.dat
lea ecx, [esp + 0x34]
call fcn.1000b310
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x1001273c
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001274c
test al, 0x10
je 0x1001277b
lea ecx, [esp + 0x2c]
call fcn.10010e60
push ebx
lea edx, [esp + 0x30]
push edx
jmp 0x10012763
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.100121c0
add esp, 8
push 9
push str.livep.dat
lea ecx, [esp + 0x34]
call fcn.1000b310
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x10012789
lea eax, [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push ebx
push str.TrafLogDebug
push str.LimitControl
call esi
mov dword [0x10069680], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x100127b0
lea eax, [esp + 0x30]
push eax
push 0x64
push str.TrafLogRate
push str.LimitControl
call esi
mov dword [0x1006967c], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x100127d2
lea eax, [esp + 0x30]
push eax
push 3
push str.TrafLogDays
push str.LimitControl
call esi
mov dword [0x10062e54], eax
cmp eax, 1
jae 0x100127f7
mov dword [0x10062e54], 1
jmp 0x10012806
cmp eax, 0xe
jbe 0x10012806
mov dword [0x10062e54], 0xe
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x10012814
lea eax, [esp + 0x30]
push eax
push ebx
push str.Skip360net
push str.LimitControl
call esi
mov dword [0x10066058], eax
cmp eax, 0x64
jbe 0x10012836
mov dword [0x10066058], 0x64
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x10012844
lea eax, [esp + 0x30]
push eax
push 0xffff
push str.logrand
push str.softmanager
call esi
push str.softmanager
push 0x100657f8
lea ecx, [esp + 0x6c]
push str._s__s
push ecx
mov dword [0x100690a0], eax
call fcn.10009cc0
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp dword [esp + 0x44], edi
jae 0x10012885
lea eax, [esp + 0x30]
push eax
push 0xffff
push str.logrand
lea edx, [esp + 0x70]
push edx
call esi
cmp eax, 0xffff
je 0x100128a3
mov dword [0x100690a0], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x100128b1
lea eax, [esp + 0x30]
push eax
push 0xffff
push str.logrand
push str.hotfix
call esi
push str.hotfix
push 0x100657f8
mov dword [0x100690cc], eax
lea eax, [esp + 0x6c]
push str._s__s
push eax
call fcn.10009cc0
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp dword [esp + 0x44], edi
jae 0x100128f2
lea eax, [esp + 0x30]
push eax
push 0xffff
push str.logrand
lea ecx, [esp + 0x70]
push ecx
call esi
cmp eax, 0xffff
je 0x10012910
mov dword [0x100690cc], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x1001291e
lea eax, [esp + 0x30]
push eax
push 0xffff
push str.logrand
push 0x100546c8
call esi
push 0x100546c8
push 0x100657f8
lea edx, [esp + 0x6c]
push str._s__s
push edx
mov dword [0x100690f8], eax
call fcn.10009cc0
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp dword [esp + 0x44], edi
jae 0x1001295f
lea eax, [esp + 0x30]
push eax
push 0xffff
push str.logrand
lea eax, [esp + 0x70]
push eax
call esi
cmp eax, 0xffff
je 0x1001297d
mov dword [0x100690f8], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x1001298b
lea eax, [esp + 0x30]
push eax
push 0xffff
push str.logrand
push str.install
call esi
push str.install
push 0x100657f8
lea ecx, [esp + 0x6c]
push str._s__s
push ecx
mov dword [0x10069124], eax
call fcn.10009cc0
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp dword [esp + 0x44], edi
jae 0x100129cc
lea eax, [esp + 0x30]
push eax
push 0xffff
push str.logrand
lea edx, [esp + 0x70]
push edx
call esi
cmp eax, 0xffff
je 0x100129ea
mov dword [0x10069124], eax
push 0x7fe
lea ecx, [esp + 0x5fa]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x600], ax
call fcn.10038ae0
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp dword [esp + 0x44], edi
jae 0x10012a18
lea eax, [esp + 0x30]
push eax
push 0x400
lea edx, [esp + 0x5fc]
push edx
push str._360sdUpd_360tray_360leakfixer_360safe_SoftManager_360netcfg_seup_360EntClient_
push str.UseEntModuleList
push str.Network
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x5f4]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10012a54
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x5f8]
push ecx
lea ecx, [esp + 0x50]
call fcn.10009330
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
mov byte [esp + 0xe00], 1
cmp ecx, edi
jb 0x10012db2
mov esi, edx
mov dword [esp + 0x14], esi
cmp edx, ebx
je 0x10012aba
mov eax, edx
cmp ecx, edi
jae 0x10012aa1
lea eax, [esp + 0x4c]
cmp eax, esi
ja 0x10012aba
mov eax, edx
cmp ecx, edi
jae 0x10012aaf
lea eax, [esp + 0x4c]
mov ebp, dword [esp + 0x5c]
lea eax, [eax + ebp*2]
cmp esi, eax
jbe 0x10012acb
call fcn.10039cd0
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x4c]
lea ebx, [esp + 0x48]
mov eax, edx
cmp ecx, edi
jae 0x10012ad9
lea eax, [esp + 0x4c]
lea edi, [eax + ebp*2]
test edi, edi
je 0x10012b01
mov eax, edx
cmp ecx, 8
jae 0x10012aeb
lea eax, [esp + 0x4c]
cmp eax, edi
ja 0x10012b01
mov eax, edx
cmp ecx, 8
jae 0x10012afa
lea eax, [esp + 0x4c]
lea eax, [eax + ebp*2]
cmp edi, eax
jbe 0x10012b12
call fcn.10039cd0
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x4c]
cmp ecx, 8
jb 0x10012dbf
mov esi, edx
test edx, edx
je 0x10012b42
mov eax, edx
cmp ecx, 8
jae 0x10012b2c
lea eax, [esp + 0x4c]
cmp eax, esi
ja 0x10012b42
mov eax, edx
cmp ecx, 8
jae 0x10012b3b
lea eax, [esp + 0x4c]
lea ecx, [eax + ebp*2]
cmp esi, ecx
jbe 0x10012b47
call fcn.10039cd0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x24], 0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
push edx
push eax
push fcn.1003ab3e
push ecx
push ebx
push edi
lea edx, [esp + 0x3c]
push esi
push edx
call fcn.100112a0
mov eax, dword [esp + 0x6c]
mov edi, 8
add esp, 0x20
cmp dword [esp + 0x60], edi
jae 0x10012b83
lea eax, [esp + 0x4c]
push 0x3ff
push eax
push 0x10065858
call fcn.1003a25b
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp dword [esp + 0x44], edi
jae 0x10012ba4
lea eax, [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x800
push 0x10066068
push str._softmanager_360leakfixer_
push str.type_safe
push str.plan
call esi
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x10012bd4
lea eax, [esp + 0x30]
push eax
push 0x800
push 0x10067068
push str._360sdupd_
push str.type_sd
push str.plan
call esi
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x10012bfe
lea eax, [esp + 0x30]
push eax
push 0x800
push 0x10068068
push str._360appcore_360appcenter_
push str.type_dt
push str.plan
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push str.EnableUE
push str.Software360Safe
mov edi, 4
push closesocket
mov dword [esp + 0x38], edi
call esi
test eax, eax
jne 0x10012c59
cmp dword [esp + 0x18], edi
jne 0x10012c63
cmp dword [esp + 0x1c], eax
je 0x10012c63
mov dword [0x1006605c], 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push str.JoinUserExperience
push str.Software360desktop
push closesocket
mov dword [esp + 0x38], edi
call esi
test eax, eax
jne 0x10012c97
cmp dword [esp + 0x18], edi
jne 0x10012ca1
cmp dword [esp + 0x1c], eax
je 0x10012ca1
mov dword [0x10066064], 1
call fcn.1000f420
mov ebp, eax
test ebp, ebp
je 0x10012d48
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x1fe]
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x30], 0x400
mov word [esp + 0x200], ax
call fcn.10038ae0
add esp, 0xc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1f8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.UseEntModuleList
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10012d41
lea eax, [esp + 0x1f4]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10012d10
mov edi, 0x10065858
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10012d25
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
cmp dword [esp + 0x60], esi
jb 0x10012d60
mov edx, dword [esp + 0x4c]
push edx
call fcn.100386ec
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
cmp dword [esp + 0x44], esi
jb 0x10012d8a
mov ecx, dword [esp + 0x30]
push ecx
call fcn.100386ec
add esp, 4
mov ecx, dword [esp + 0xdf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xde0]
xor ecx, esp
call fcn.10038723
add esp, 0xdf0
ret
lea esi, [esp + 0x4c]
mov dword [esp + 0x14], esi
jmp 0x10012a97
lea esi, [esp + 0x4c]
jmp 0x10012b21