Function at 0x40a670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac97e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4de310]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0xac]
push eax
push str.Software_bytedanceROX_ZH
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40a7c9
cmp dword [ebx + 0x4c], 8
lea esi, [ebx + 0x38]
jb 0x40a6d2
mov eax, dword [esi]
jmp 0x40a6d4
mov eax, esi
push eax
push str.pathToReg_installPath__s
push 0x48d
push str.LDSpaceModel::pathToReg
call fcn.00411450
mov eax, dword [esi + 0x10]
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x40a6f7
mov esi, dword [esi]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.InstallDir
push dword [ebp - 0xac]
call edi
push 6
xor eax, eax
mov dword [ebp - 0x18], 7
push str.010400
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00405200
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Version
push dword [ebp - 0xac]
call edi
cmp dword [ebp - 0x18], 8
jb 0x40a76d
push dword [ebp - 0x2c]
call fcn.004781a0
add esp, 4
cmp dword [ebx + 0x140], 8
lea ecx, [ebx + 0x12c]
mov eax, dword [ecx + 0x10]
jb 0x40a781
mov ecx, dword [ecx]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Language
push dword [ebp - 0xac]
call edi
cmp dword [ebx + 0x1b8], 8
lea ecx, [ebx + 0x1a4]
mov eax, dword [ecx + 0x10]
jb 0x40a7af
mov ecx, dword [ecx]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.LanguageLong
push dword [ebp - 0xac]
call edi
push 0x39
xor eax, eax
mov dword [ebp - 0x78], 7
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallROXZH
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
call fcn.00405200
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa8]
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
push ecx
cmovae eax, dword [ebp - 0x8c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40aa46
push str.bdroxuninst.exe
lea edx, [ebx + 0x38]
lea ecx, [ebp - 0xa4]
call fcn.00407020
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x90], 8
cmovae ecx, dword [ebp - 0xa4]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.UninstallString
push dword [ebp - 0xa8]
call edi
push 3
xor eax, eax
mov dword [ebp - 0x18], 7
push 0x4ce860
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00405200
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.DisplayName
push dword [ebp - 0xa8]
call edi
push str.bdrox.exe
lea edx, [ebx + 0x38]
lea ecx, [ebp - 0x74]
call fcn.00407020
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x60], 8
cmovae ecx, dword [ebp - 0x74]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0xa8]
call edi
push 3
xor eax, eax
mov dword [ebp - 0x30], 7
push 0x4ce860
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00405200
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x30], 8
cmovae ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Publisher
push dword [ebp - 0xa8]
call edi
push 5
xor eax, eax
mov dword [ebp - 0x48], 7
push str.1.4.0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.00405200
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
cmovae ecx, dword [ebp - 0x5c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0xa8]
call edi
cmp dword [ebp - 0x48], 8
jb 0x40a9ac
push dword [ebp - 0x5c]
call fcn.004781a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x40a9d1
push dword [ebp - 0x44]
call fcn.004781a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x60], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x40a9f6
push dword [ebp - 0x74]
call fcn.004781a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
jb 0x40aa1b
push dword [ebp - 0x2c]
call fcn.004781a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x90], 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x40aa46
push dword [ebp - 0xa4]
call fcn.004781a0
add esp, 4
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x78], 8
jb 0x40aa66
push dword [ebp - 0x8c]
call fcn.004781a0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00478043
mov esp, ebp
pop ebp
ret 4