Function at 0x4a0070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x61ce74]
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 [0x61b924]
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 0x4a0106
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 0x4a00fc
cmp dword [ebp - 0x34], 4
cmove edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a0106
push eax
call ebx
mov dword [ebp - 0x2c], 0
test edi, edi
jne 0x4a0169
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
push dword [0x61b924]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 4
test eax, eax
je 0x4a0162
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 0x4a0158
cmp dword [ebp - 0x34], 4
cmove edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a0162
push eax
call ebx
mov dword [ebp - 0x2c], 0
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4a045e
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 0x4a01ce
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.004e2450
add esp, 8
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x4a01c2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push 0x5c49e0
push eax
call fcn.004289d0
mov esi, dword [ebp - 0x30]
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00430d50
cmp dword [esi - 0xc], 0
jne 0x4a03bc
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a01e2
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 0x4a02c4
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x5b441c
push eax
call edi
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x4a023a
cmp eax, 2
jne 0x4a02ba
lea ecx, [ebp - 0x30]
call fcn.00426010
mov edx, dword [ebp - 0x34]
shr edx, 1
add edx, 1
js 0x4a0468
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 0x4a0270
push edx
lea ecx, [ebp - 0x30]
call fcn.00426250
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push 0x5b441c
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x4a02ba
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.0054b2c2
add esp, 8
test eax, eax
js 0x4a0468
cmp eax, dword [esi - 8]
jg 0x4a0468
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a02c4
push eax
call ebx
mov dword [ebp - 0x2c], 0
cmp dword [esi - 0xc], 0
jne 0x4a03bc
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 0x4a03b1
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x5b441c
push eax
call edi
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x4a0327
cmp eax, 2
jne 0x4a03a7
lea ecx, [ebp - 0x30]
call fcn.00426010
mov ecx, dword [ebp - 0x34]
shr ecx, 1
add ecx, 1
js 0x4a0468
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 0x4a035d
push ecx
lea ecx, [ebp - 0x30]
call fcn.00426250
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push 0x5b441c
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x4a03a7
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.0054b2c2
add esp, 8
test eax, eax
js 0x4a0468
cmp eax, dword [esi - 8]
jg 0x4a0468
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a03b1
push eax
call ebx
mov dword [ebp - 0x2c], 0
cmp dword [esi - 0xc], 0
jl 0x4a0409
push 0x5c1168
push esi
call fcn.00542853
add esp, 8
test eax, eax
je 0x4a0409
sub eax, esi
sar eax, 1
js 0x4a0409
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
push eax
push edi
call fcn.00442e60
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a03ff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a0440
push eax
jmp 0x4a043e
add esi, 0xfffffff0
push esi
call fcn.00425f70
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 0x4a0436
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4a0440
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.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
push 0x80070057
call fcn.00425f50
int3