Function at 0x4d8950
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x594110
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov ecx, 0x5adcfc
mov dword [esp + 0x48], ebx
call fcn.00481430
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x4c], 1
call fcn.0047a2f0
add esp, 8
lea edi, [esp + 0x20]
mov byte [esp + 0x44], 2
call fcn.00480f90
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d89ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8a10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
cmp dword [esi - 0xc], ebx
jne 0x4d8a55
lea eax, [esi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8a3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
mov ebp, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x398]
add ebp, 0x398
cmp ecx, ebx
je 0x4d8a80
mov eax, dword [ebp + 4]
call fcn.0050d480
mov ecx, dword [ebp]
push ecx
call fcn.00566eaf
add esp, 4
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
push str.SoftwareKingsoftKVip10001kybox_subp
push str._s_s
lea edi, [esp + 0x28]
mov byte [esp + 0x50], 3
call fcn.00481690
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
mov byte [esp + 0x4c], 4
mov edi, dword [esp + 0x24]
push ebx
push edi
push SysReAllocStringLen
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4d8b67
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
xor edi, edi
mov dword [esp + 0x24], ebx
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x44], 5
nop
mov dword [esp + 0x24], 0x104
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4d8b3e
mov ecx, 0x104
lea eax, [esp + 0x14]
call fcn.00481530
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add edi, 1
cmp esi, ebx
mov dword [esp + 0x28], edi
jne 0x4d8bb5
xor ecx, ecx
jmp 0x4d8bd9
lea eax, [edi - 0x10]
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8b87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8bab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4d8a3f
mov ecx, esi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4d8bc0
sub ecx, edi
sar ecx, 1
js 0x4d8cb6
mov edi, dword [esp + 0x28]
cmp ecx, dword [esi - 8]
jg 0x4d8cb6
cmp eax, ebx
mov dword [esi - 0xc], ecx
mov word [esi + ecx*2], bx
jne 0x4d8c4e
cmp dword [esi - 0xc], ebx
je 0x4d8b10
mov ecx, dword [esp + 0x20]
push esi
push ecx
call fcn.005645c3
add esp, 8
test eax, eax
je 0x4d8b10
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004d8cd0
test eax, eax
je 0x4d8b10
mov eax, dword [esp + 0x4c]
add dword [eax + 0x38c], 1
mov eax, dword [eax + 0x38c]
lea ecx, [eax + eax*4 + 0x1388]
add ecx, ecx
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
call fcn.004d71d0
jmp 0x4d8b10
lea eax, [esi - 0x10]
mov byte [esp + 0x44], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8c6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4d8c7e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8ca2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
jmp 0x4d8b92
push 0x80070057
call fcn.00473d10
int3