Function at 0x4c07c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a94c5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax + 0xa0], 0
jne 0x4c0c06
mov dword [ebp - 4], 0
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4c0c2b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
call fcn.00522410
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x4c0844
push ecx
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push str.SOFTWAREKingsoftOffice6.0Common
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x4c093e
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4c0939
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push str.DistSrc
push eax
call edi
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x4c08a7
cmp eax, 2
jne 0x4c092f
lea ecx, [ebp - 0x14]
call fcn.00429c20
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x4c0c35
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 0x4c08dd
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 - 0x20]
push eax
push 0
push str.DistSrc
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4c092f
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
test esi, esi
jne 0x4c0909
xor eax, eax
jmp 0x4c091d
push dword [esi - 8]
push esi
call fcn.0056b163
add esp, 8
test eax, eax
js 0x4c0c35
cmp eax, dword [esi - 8]
jg 0x4c0c35
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c0939
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [esi - 0xc], 0
jne 0x4c0a5d
test eax, eax
je 0x4c094f
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push str.SOFTWAREKingsoftOffice6.0Common
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c0a45
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c0a3e
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push str.DistSrc
push eax
call edi
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x4c09ac
cmp eax, 2
jne 0x4c0a34
lea ecx, [ebp - 0x14]
call fcn.00429c20
mov ecx, dword [ebp - 0x18]
shr ecx, 1
add ecx, 1
js 0x4c0c35
mov esi, dword [ebp - 0x14]
mov edx, 1
mov eax, dword [esi - 8]
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x4c09e2
push ecx
lea ecx, [ebp - 0x14]
call fcn.00429eb0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push str.DistSrc
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4c0a34
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
test esi, esi
jne 0x4c0a0e
xor eax, eax
jmp 0x4c0a22
push dword [esi - 8]
push esi
call fcn.0056b163
add esp, 8
test eax, eax
js 0x4c0c35
cmp eax, dword [esi - 8]
jg 0x4c0c35
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c0a3e
push eax
call ebx
mov dword [ebp - 0x10], 0
cmp dword [esi - 0xc], 0
jne 0x4c0a5d
push 3
push 0x5cbb8c
lea ecx, [ebp - 0x14]
call fcn.0042a060
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4c0c3f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 5
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4c0c49
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
or ebx, 0xffffffff
mov byte [ebp - 4], 6
cmp dword [esi - 0xc], 0
jl 0x4c0b7d
push 0x5b9808
push esi
call fcn.00561570
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4c0b7a
sub ebx, esi
sar ebx, 1
cmp ebx, 0xffffffff
je 0x4c0b7a
push ebx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.004487c0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004297a0
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c0b08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi - 0xc]
lea ecx, [ebx + 1]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.004488c0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x18]
call fcn.004297a0
mov edx, dword [ebp - 0x20]
or ebx, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c0b4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x18]
call fcn.0057277d
mov edi, dword [ebp - 0x24]
mov esi, eax
push edi
call fcn.0057277d
push esi
push eax
lea eax, [ebp - 0x14]
push str._d._d
push eax
call fcn.0042c720
mov esi, dword [ebp - 0x14]
add esp, 0x18
jmp 0x4c0b7d
or ebx, 0xffffffff
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0b82
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
add ecx, 0x90
call fcn.0042e330
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c0bbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c0bd2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c0be0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4c0c03
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add eax, 0x90
push eax
call fcn.0043f520
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00429b60
push 0x80070057
call fcn.00429b60
push 0x80004005
call fcn.00429b60
push 0x80004005
call fcn.00429b60
int3