Function at 0x4b49e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3d8d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x63434c]
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 0x20019
push edi
push dword [0x60e63c]
mov dword [ebp - 0x2c], edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
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 0x4b4a7c
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 0x4b4a72
cmp dword [ebp - 0x34], 4
cmove edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b4a7c
push eax
call ebx
mov dword [ebp - 0x2c], 0
test edi, edi
jne 0x4b4ae5
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
push 0x20019
push edi
push dword [0x60e63c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 4
test eax, eax
je 0x4b4ade
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 0x4b4ad4
cmp dword [ebp - 0x34], 4
cmove edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b4ade
push eax
call ebx
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4b4de4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 2
test edi, edi
je 0x4b4b4e
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0051a220
add esp, 8
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
je 0x4b4b42
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push 0x5b7b58
push eax
call fcn.0042c6c0
mov esi, dword [ebp - 0x30]
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0042aad0
cmp dword [esi - 0xc], 0
jne 0x4b4d4a
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b4b62
push eax
call ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x20019
push 0
push str.SoftwareKingsoftOffice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x2c]
mov edi, 1
mov dword [ebp - 0x34], 0
test eax, eax
je 0x4b4c4d
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x5b7370
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x4b4bc3
cmp eax, 2
jne 0x4b4c43
lea ecx, [ebp - 0x30]
call fcn.00429bc0
mov edx, dword [ebp - 0x34]
shr edx, 1
add edx, edi
js 0x4b4dee
mov esi, dword [ebp - 0x30]
mov ecx, edi
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4b4bf5
push edx
lea ecx, [ebp - 0x30]
call fcn.00429e50
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push 0x5b7370
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b4c43
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.00566c13
add esp, 8
test eax, eax
js 0x4b4dee
cmp eax, dword [esi - 8]
jg 0x4b4dee
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b4c4d
push eax
call ebx
mov dword [ebp - 0x2c], 0
cmp dword [esi - 0xc], 0
jne 0x4b4d4a
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x20019
push 0
push str.SoftwareKingsoftOffice
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0
test eax, eax
je 0x4b4d3f
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x5b7370
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x4b4cb7
cmp eax, 2
jne 0x4b4d35
lea ecx, [ebp - 0x30]
call fcn.00429bc0
mov ecx, dword [ebp - 0x34]
shr ecx, 1
add ecx, edi
js 0x4b4dee
mov esi, dword [ebp - 0x30]
mov eax, dword [esi - 8]
sub edi, dword [esi - 4]
sub eax, ecx
or edi, eax
jge 0x4b4ce7
push ecx
lea ecx, [ebp - 0x30]
call fcn.00429e50
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push 0x5b7370
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b4d35
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.00566c13
add esp, 8
test eax, eax
js 0x4b4dee
cmp eax, dword [esi - 8]
jg 0x4b4dee
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b4d3f
push eax
call ebx
mov dword [ebp - 0x2c], 0
cmp dword [esi - 0xc], 0
jl 0x4b4d93
push 0x5b7e38
push esi
call fcn.0055d020
add esp, 8
test eax, eax
je 0x4b4d93
sub eax, esi
sar eax, 1
js 0x4b4d93
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
push eax
push edi
call fcn.00448c60
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b4d89
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b4dc6
push eax
jmp 0x4b4dc4
add esi, 0xfffffff0
push esi
call fcn.00429b20
mov edi, dword [ebp - 0x3c]
add eax, 0x10
add esp, 4
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b4dbc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4b4dc6
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.00557e89
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
push 0x80070057
call fcn.00429b00
int3