Function at 0x43d940
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59df7d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 2
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x43dbdb
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [str..DEFAULTSoftwareKingsoftOffice6.0Common]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 3
test eax, eax
je 0x43d9b3
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [ebp - 0x1c]
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x43daa4
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.infoGUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x43da0e
cmp eax, 2
jne 0x43da9a
lea ecx, [ebp - 0x14]
call fcn.00429c20
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x43dbd1
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x43da44
push edx
lea ecx, [ebp - 0x14]
call fcn.00429eb0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.infoGUID
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43da9a
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
test esi, esi
jne 0x43da74
xor eax, eax
jmp 0x43da88
push dword [esi - 8]
push esi
call fcn.0056b163
add esp, 8
test eax, eax
js 0x43dbd1
cmp eax, dword [esi - 8]
jg 0x43dbd1
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43daa4
push eax
call ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x2001f
push 0
push dword [0x613068]
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43daf8
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push 0x5bbef0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
call fcn.0043a090
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x43daf8
push edi
call ebx
xor edi, edi
cmp dword [esi - 0xc], 0
je 0x43db8a
mov eax, dword [str..DEFAULTSoftwareKingsoftOffice6.0Common]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43db14
push eax
call ebx
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp - 0x20]
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43db83
mov edx, esi
lea ecx, [edx + 2]
mov dword [ebp - 0x20], ecx
jmp 0x43db50
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x43db50
sub edx, dword [ebp - 0x20]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push esi
push 1
push 0
push str.infoGUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43db83
push eax
call ebx
mov dword [ebp - 0x10], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43dba2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43dbac
push eax
call ebx
mov dword [ebp - 0x10], 0
test edi, edi
je 0x43dbba
push edi
call ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00429b60
push 0x80004005
call fcn.00429b60
int3