Function at 0x4ab040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e688
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x62819c]
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 eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], edi
push eax
push dword [0x602658]
mov dword [ebp - 0x2c], edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x38], 4
test eax, eax
je 0x4ab0d6
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push edi
push str.UILanguage
push eax
call esi
test eax, eax
jne 0x4ab0cc
cmp dword [ebp - 0x34], 4
cmove edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4ab0d6
push eax
call ebx
mov dword [ebp - 0x2c], 0
test edi, edi
jne 0x4ab139
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
push dword [0x602658]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 4
test eax, eax
je 0x4ab132
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push edi
push str.UILanguage
push eax
call esi
test eax, eax
jne 0x4ab128
cmp dword [ebp - 0x34], 4
cmove edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4ab132
push eax
call ebx
mov dword [ebp - 0x2c], 0
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4ab42e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 1
test edi, edi
je 0x4ab19e
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00514ad0
add esp, 8
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x4ab192
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push 0x5bd348
push eax
call fcn.0042bf70
mov esi, dword [ebp - 0x30]
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0042a1f0
cmp dword [esi - 0xc], 0
jne 0x4ab38c
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4ab1b2
push eax
call ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push str.SoftwareKingsoftOffice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x34], 0
test eax, eax
je 0x4ab294
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x5b0750
push eax
call edi
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x4ab20a
cmp eax, 2
jne 0x4ab28a
lea ecx, [ebp - 0x30]
call fcn.00429490
mov edx, dword [ebp - 0x34]
shr edx, 1
add edx, 1
js 0x4ab438
mov esi, dword [ebp - 0x30]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4ab240
push edx
lea ecx, [ebp - 0x30]
call fcn.004296d0
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push 0x5b0750
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x4ab28a
mov eax, dword [ebp - 0x34]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.00555593
add esp, 8
test eax, eax
js 0x4ab438
cmp eax, dword [esi - 8]
jg 0x4ab438
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4ab294
push eax
call ebx
mov dword [ebp - 0x2c], 0
cmp dword [esi - 0xc], 0
jne 0x4ab38c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push str.SoftwareKingsoftOffice
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0
test eax, eax
je 0x4ab381
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x5b0750
push eax
call edi
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x4ab2f7
cmp eax, 2
jne 0x4ab377
lea ecx, [ebp - 0x30]
call fcn.00429490
mov ecx, dword [ebp - 0x34]
shr ecx, 1
add ecx, 1
js 0x4ab438
mov esi, dword [ebp - 0x30]
mov edx, 1
mov eax, dword [esi - 8]
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x4ab32d
push ecx
lea ecx, [ebp - 0x30]
call fcn.004296d0
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push 0x5b0750
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x4ab377
mov eax, dword [ebp - 0x34]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.00555593
add esp, 8
test eax, eax
js 0x4ab438
cmp eax, dword [esi - 8]
jg 0x4ab438
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4ab381
push eax
call ebx
mov dword [ebp - 0x2c], 0
cmp dword [esi - 0xc], 0
jl 0x4ab3d9
push 0x5b94f8
push esi
call fcn.0054c0c3
add esp, 8
test eax, eax
je 0x4ab3d9
sub eax, esi
sar eax, 1
js 0x4ab3d9
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
push eax
push edi
call fcn.00446f20
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4ab3cf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4ab410
push eax
jmp 0x4ab40e
add esi, 0xfffffff0
push esi
call fcn.004293f0
mov edi, dword [ebp - 0x3c]
add eax, 0x10
add esp, 4
mov byte [ebp - 4], 0
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4ab406
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4ab410
push ecx
call ebx
mov eax, edi
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
push 0x80070057
call fcn.004293d0
int3