Function at 0x43c850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48efbb
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4b74b0]
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
test ebx, ebx
je 0x43ca7e
push 0x2a
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, ebx
add esp, 0xc
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43c8a6
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 0xd]
xor ecx, ecx
test eax, eax
cmovns ecx, eax
movzx eax, word [ebx + ecx*2]
lea edi, [ebx + ecx*2]
test ax, ax
je 0x43c904
mov ecx, eax
lea ecx, [ecx]
movzx ecx, cx
lea edi, [edi + 2]
lea eax, [ecx - 0x41]
cmp eax, 0x19
lea edx, [ecx + 0x20]
movzx eax, word [edi]
cmova edx, ecx
shl esi, 4
add edx, esi
mov ecx, eax
mov esi, edx
shr esi, 0x17
and esi, 0x1e0
xor esi, edx
and esi, 0xfffffff
test ax, ax
jne 0x43c8d0
push esi
push 0x4979bc
lea eax, [ebp - 0x3c]
push 0x14
push eax
call fcn.0041bdc0
push 0
lea eax, [ebp - 0x3c]
push eax
push str.SoftwareKingsoftOffice6.0CommonResourceManagerImages
push 0x80000001
call fcn.0043c6b0
add esp, 0x20
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push 0
mov dword [ebp - 0x58], eax
call edi
push 0
push esi
push edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__difftime64]
fld qword [0x49a9b8]
add esp, 0x14
fcompi st(1)
jbe 0x43c987
mov eax, 0x10624dd3
mul dword [ebp - 0x58]
shr edx, 6
mov dword [ebp - 0x64], edx
fild dword [ebp - 0x64]
test edx, edx
jns 0x43c975
fadd qword [0x49a6a0]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
fcompi st(1)
fstp st(0)
ja 0x43ca7e
jmp 0x43c989
fstp st(0)
call fcn.0043c540
test al, al
jne 0x43ca1d
lea ecx, [ebp - 0x98]
call fcn.0043ba00
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 4], 0
test esi, esi
je 0x43c9d4
cmp dword [esi + 4], 0
je 0x43c9d4
push ebx
lea ecx, [ebp - 0x54]
call fcn.00401970
push esi
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x98]
call fcn.0043c490
jmp 0x43c9f0
push ebx
lea ecx, [ebp - 0x54]
call fcn.00401970
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0043c0c0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00401b10
lea ecx, [ebp - 0x98]
call fcn.0043c4e0
lea ecx, [ebp - 0x98]
call fcn.0043caa0
lea ecx, [ebp - 0x98]
call fcn.0043bb50
push 0
call edi
add esp, 4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareKingsoftOffice6.0CommonResourceManagerImages
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43ca7e
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00487877
mov esp, ebp
pop ebp
ret