Function at 0x43b500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579050
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [str.SoftwareKingsoftOffice6.0Common]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x43b572
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x43b55e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 [ebp - 0x10]
mov dword [ebp - 0x14], ebx
cmp edx, ebx
je 0x43b5b9
mov esi, dword [0x5ff1bc]
mov eax, esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43b587
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push str.InstallRoot
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x10]
cmp eax, ebx
jne 0x43b5b9
mov dword [ebp - 0x14], 1
xor esi, esi
cmp edx, ebx
je 0x43b5fe
mov edi, dword [0x5ff1c4]
mov eax, edi
lea ebx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b5d0
sub eax, ebx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43b5fe
mov esi, 1
and esi, dword [ebp - 0x14]
push str.ProfessionalVersionNumber
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
call fcn.00422540
cmp dword [0x5f1a8c], 2
mov byte [ebp - 4], 1
jne 0x43b634
push str.Developer
lea edx, [ebp - 0x18]
push str._sVersionNumber
push edx
call fcn.004237a0
add esp, 0xc
mov edi, dword [ebp - 0x10]
xor ebx, ebx
test edi, edi
je 0x43b67d
mov edx, dword [0x5ff1c4]
mov eax, edx
lea esi, [eax + 2]
jmp 0x43b650
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b650
mov ecx, dword [ebp - 0x18]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43b67d
mov ebx, 1
and dword [ebp - 0x14], ebx
lea edx, [ebp - 0x1c]
push edx
call fcn.0043fca0
mov esi, dword [ebp - 0x10]
mov edx, dword [eax]
add esp, 4
xor ebx, ebx
test esi, esi
je 0x43b6ce
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b6a0
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push str.DisplayName
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x43b6ce
mov ebx, 1
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x14], ebx
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b6f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x10]
xor ebx, ebx
test edx, edx
je 0x43b735
mov esi, dword [0x5ff1d0]
mov eax, esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b704
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.hostprocname
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x10]
test eax, eax
jne 0x43b735
mov ebx, 1
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and edi, ebx
test edx, edx
je 0x43b747
push edx
call esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43b771
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43b77b
push eax
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret