Function at 0x4b5470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a835d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x639354]
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 [0x61363c]
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 0x4b550c
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 0x4b5502
cmp dword [ebp - 0x34], 4
cmove edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b550c
push eax
call ebx
mov dword [ebp - 0x2c], 0
test edi, edi
jne 0x4b5575
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
push 0x20019
push edi
push dword [0x61363c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 4
test eax, eax
je 0x4b556e
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 0x4b5564
cmp dword [ebp - 0x34], 4
cmove edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b556e
push eax
call ebx
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4b5874
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 0x4b55de
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0051b1c0
add esp, 8
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
je 0x4b55d2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push 0x5bcaf0
push eax
call fcn.0042c720
mov esi, dword [ebp - 0x30]
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0042ab30
cmp dword [esi - 0xc], 0
jne 0x4b57da
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b55f2
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 0x4b56dd
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x5bc304
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x4b5653
cmp eax, 2
jne 0x4b56d3
lea ecx, [ebp - 0x30]
call fcn.00429c20
mov edx, dword [ebp - 0x34]
shr edx, 1
add edx, edi
js 0x4b587e
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 0x4b5685
push edx
lea ecx, [ebp - 0x30]
call fcn.00429eb0
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push 0x5bc304
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b56d3
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.0056b163
add esp, 8
test eax, eax
js 0x4b587e
cmp eax, dword [esi - 8]
jg 0x4b587e
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b56dd
push eax
call ebx
mov dword [ebp - 0x2c], 0
cmp dword [esi - 0xc], 0
jne 0x4b57da
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 0x4b57cf
lea ecx, [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x5bc304
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x4b5747
cmp eax, 2
jne 0x4b57c5
lea ecx, [ebp - 0x30]
call fcn.00429c20
mov ecx, dword [ebp - 0x34]
shr ecx, 1
add ecx, edi
js 0x4b587e
mov esi, dword [ebp - 0x30]
mov eax, dword [esi - 8]
sub edi, dword [esi - 4]
sub eax, ecx
or edi, eax
jge 0x4b5777
push ecx
lea ecx, [ebp - 0x30]
call fcn.00429eb0
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push 0x5bc304
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b57c5
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.0056b163
add esp, 8
test eax, eax
js 0x4b587e
cmp eax, dword [esi - 8]
jg 0x4b587e
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b57cf
push eax
call ebx
mov dword [ebp - 0x2c], 0
cmp dword [esi - 0xc], 0
jl 0x4b5823
push 0x5bcda0
push esi
call fcn.00561570
add esp, 8
test eax, eax
je 0x4b5823
sub eax, esi
sar eax, 1
js 0x4b5823
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
push eax
push edi
call fcn.004487c0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b5819
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4b5856
push eax
jmp 0x4b5854
add esi, 0xfffffff0
push esi
call fcn.00429b80
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 0x4b584c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4b5856
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
push 0x80070057
call fcn.00429b60
int3