Function at 0x439710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578d70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x5ff1ac], 2
je 0x4397e0
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
mov dword [ebp - 4], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [str..DEFAULTSoftwareKingsoftOffice6.0Common]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x43977c
push eax
call edi
lea eax, [ebp - 0x10]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push 0x80000003
mov dword [ebp - 0x10], ebx
call esi
lea ecx, [ebp - 0x14]
push ecx
push str.infoGUID
lea ecx, [ebp - 0x10]
call fcn.00439630
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4397ac
push eax
call edi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
cmp dword [eax - 0xc], ebx
je 0x4397f4
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4397d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4397e0
push eax
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [str.SoftwareKingsoftOffice6.0Common]
lea ecx, [ebp - 0x10]
push ecx
push edx
push 0x80000001
mov dword [ebp - 0x10], ebx
call esi
lea eax, [ebp - 0x14]
push eax
push str.infoGUID
lea ecx, [ebp - 0x10]
call fcn.00439630
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x439824
push eax
call edi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
cmp dword [esi - 0xc], ebx
jne 0x439844
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4397ca
mov edx, dword [str..DEFAULTSoftwareKingsoftOffice6.0Common]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000003
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x439883
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4397ca
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
cmp edi, ebx
je 0x4398c1
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x439892
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push str.infoGUID
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x4398c1
mov dword [ebp - 0x14], 1
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4398e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4398ee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret