Function at 0x4be390
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea12c
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 0x14], 0x10
jb 0x4be3cc
mov edi, dword [edi]
test edi, edi
je 0x4be41c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4be3d5
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x184], eax
cmp eax, 0x3fffffff
jg 0x4be41c
add eax, eax
call fcn.004bf6c0
mov esi, esp
test esi, esi
je 0x4be41c
push dword [ebp - 0x184]
xor eax, eax
push esi
push 0xffffffffffffffff
push edi
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x4be41e
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x170], 0
xor eax, eax
mov dword [ebp - 0x16c], 7
mov word [ebp - 0x180], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be440
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x180]
call fcn.004033b0
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x4be46b
mov ebx, dword [ebx]
test ebx, ebx
je 0x4be4b2
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4be474
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x4be4b2
lea eax, [edi + edi]
call fcn.004bf6c0
mov esi, esp
test esi, esi
je 0x4be4b2
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x4be4b4
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x158], 0
xor eax, eax
mov dword [ebp - 0x154], 7
mov word [ebp - 0x168], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be4d6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x168]
call fcn.004033b0
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movzx eax, word [ebp - 0x132]
push eax
movzx eax, word [ebp - 0x136]
push eax
movzx eax, word [ebp - 0x138]
push eax
push str._d__d__d
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.00412150
add esp, 0x24
mov dword [ebp - 0x140], 0
xor eax, eax
mov dword [ebp - 0x13c], 7
lea ecx, [ebp - 0x110]
mov word [ebp - 0x150], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be587
sub ecx, edx
lea eax, [ebp - 0x110]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.004033b0
xor eax, eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
cmp dword [ebp - 0x13c], 8
lea eax, [ebp - 0x150]
push dword [ebp - 0x140]
cmovae eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x128]
push eax
mov byte [ebp - 4], 3
call fcn.00403230
push 1
push 0x4fda78
lea ecx, [ebp - 0x128]
call fcn.00403230
cmp dword [ebp - 0x16c], 8
lea eax, [ebp - 0x180]
push dword [ebp - 0x170]
cmovae eax, dword [ebp - 0x180]
lea ecx, [ebp - 0x128]
push eax
call fcn.00403230
push 1
push 0x4fda78
lea ecx, [ebp - 0x128]
call fcn.00403230
cmp dword [ebp - 0x154], 8
lea eax, [ebp - 0x168]
push dword [ebp - 0x158]
cmovae eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x128]
push eax
call fcn.00403230
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x128]
cmp dword [ebp - 0x114], 8
cmovae ecx, dword [ebp - 0x128]
lea eax, [eax*2 + 2]
push eax
push ecx
push 3
push str.InfoHD3Verify_C
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x114]
cmp edx, 8
jb 0x4be6da
mov ecx, dword [ebp - 0x128]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4be6d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be7a1
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x13c]
xor eax, eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
cmp edx, 8
jb 0x4be733
mov ecx, dword [ebp - 0x150]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4be729
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be7a1
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x154]
cmp edx, 8
jb 0x4be76f
mov ecx, dword [ebp - 0x168]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4be765
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4be7a1
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x16c]
cmp edx, 8
jb 0x4be7b1
mov ecx, dword [ebp - 0x180]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4be7a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4be7a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
lea esp, [ebp - 0x194]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret