Function at 0x4e66f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x58d9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x60]
add ebp, 0x50
mov edi, 0x68
mov eax, ebp
call fcn.004b9500
test eax, eax
je 0x4e6858
lea eax, [esp + 0x18]
push eax
mov ecx, str.closetip
call fcn.00481430
lea ecx, [esp + 0x14]
push ecx
xor edi, edi
mov ecx, str.SoftwareKingsoftKVip
mov dword [esp + 0x5c], edi
call fcn.00481430
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, SysReAllocStringLen
mov byte [esp + 0x60], 1
call fcn.0047b9d0
push str.kybox
mov byte [esp + 0x5c], 2
mov ecx, dword [0x5f8cb8]
push 0x5aeb8c
push ecx
push 0x5aebdc
mov esi, eax
call fcn.00479130
add esp, 8
mov esi, eax
call fcn.00479130
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4e67ab
mov eax, dword [esi + 0x10]
cmp eax, edi
jne 0x4e67b3
mov dword [esi], 0xd
jmp 0x4e67d3
mov ecx, dword [esp + 0x18]
push 4
lea edx, [esp + 0x24]
push edx
push 4
push edi
push ecx
push eax
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esi], eax
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x4e67eb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4e680b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e6830
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e6858
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 1
lea edi, [ebx + 0x65]
mov eax, ebp
call fcn.004b9500
xor edi, edi
cmp eax, edi
jne 0x4e6870
lea ebx, [edi + 2]
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.closetype
call fcn.00481430
lea edx, [esp + 0x1c]
push edx
mov ecx, str.SoftwareKingsoftKVip
mov dword [esp + 0x5c], 3
call fcn.00481430
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, SysReAllocStringLen
mov byte [esp + 0x60], 4
call fcn.0047b9d0
push str.kybox
mov byte [esp + 0x5c], 5
mov edx, dword [0x5f8cb8]
push 0x5aeb8c
push edx
push 0x5aebdc
mov esi, eax
call fcn.00479130
add esp, 8
mov esi, eax
call fcn.00479130
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4e68eb
mov eax, dword [esi + 0x10]
cmp eax, edi
jne 0x4e68f3
mov dword [esi], 0xd
jmp 0x4e690f
mov edx, dword [esp + 0x20]
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push edi
push edx
push eax
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esi], eax
mov byte [esp + 0x58], 4
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x4e6927
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e6947
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e696c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4e6994
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x60]
add esi, 0x380
cmp esi, edi
je 0x4e69d1
lea eax, [esi - 0x380]
cmp eax, edi
je 0x4e69d1
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4e69d1
mov eax, 1
mov dword [esi + 0x18], eax
mov dword [esi + 4], eax
xor eax, eax
mov ecx, esi
mov dword [esi + 8], edi
call fcn.004b97f0
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4