Function at 0x4d84c0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x59b28c
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x4f8]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x14], ebx
call fcn.0047f920
cmp eax, esi
mov dword [esp + 0x500], esi
lea ebp, [esi + 1]
je 0x4d8543
cmp dword [eax + 0x24], ebp
jg 0x4d8543
push ebp
push str.KAccountMgrWnd::_DeleteSmallAcc
push 0x367
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckyboxkaccountmgrwnd.h
lea eax, [esp + 0x3c]
push eax
call fcn.0047f220
push 0x5b7ca0
mov byte [esp + 0x504], 1
push eax
mov dword [esp + 0x1c], ebp
call fcn.0047f6e0
add esp, 8
mov ebx, ebp
test bl, 1
mov dword [esp + 0x500], esi
je 0x4d8560
lea ecx, [esp + 0x2c]
and ebx, 0xfffffffe
push ecx
mov dword [esp + 0x18], ebx
call fcn.0047eb40
mov dword [esp + 0x500], 0xffffffff
mov eax, dword [0x5f9180]
cmp eax, esi
je 0x4d857b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [esp + 0x508]
lea eax, [esi + 0x25]
mov edi, 0x186a0
call fcn.004fe940
test eax, eax
je 0x4d859b
cmp dword [eax + 0xbc], ebp
jge 0x4d861a
call fcn.0047f920
test eax, eax
mov esi, 2
mov dword [esp + 0x500], esi
je 0x4d85eb
cmp dword [eax + 0x24], esi
jg 0x4d85eb
push esi
push str.KAccountMgrWnd::_DeleteSmallAcc
push 0x36b
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckyboxkaccountmgrwnd.h
lea edx, [esp + 0x3c]
push edx
call fcn.0047f220
push 0x5b7cf0
mov byte [esp + 0x504], 3
or ebx, esi
push eax
mov dword [esp + 0x1c], ebx
call fcn.0047f6e0
add esp, 8
test bl, 2
mov dword [esp + 0x500], esi
je 0x4d8601
lea eax, [esp + 0x2c]
push eax
call fcn.0047eb40
mov eax, dword [0x5f9180]
test eax, eax
je 0x4d8930
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4d8930
mov eax, dword [esp + 0x50c]
lea edx, [esi + 0x398]
lea esi, [esp + 0x18]
call fcn.004d7280
lea ecx, [esp + 0x12c]
push ecx
mov dword [esp + 0x504], 4
call fcn.004f6b30
mov eax, esi
lea edi, [esp + 0x4e8]
mov byte [esp + 0x500], 5
call fcn.00480f90
mov esi, dword [esp + 0x508]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0x12c]
push ecx
call fcn.004f5e00
cmp eax, ebp
jne 0x4d88f0
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], 0
je 0x4d87c2
mov dword [esp + 0x1c], 0
mov byte [esp + 0x500], 6
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 + 0x24]
push eax
mov ecx, 0x5adcfc
mov byte [esp + 0x504], 7
call fcn.00481430
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
mov bl, 8
push edx
mov byte [esp + 0x508], bl
call fcn.0047a2f0
mov byte [esp + 0x508], 9
mov eax, dword [eax]
push eax
push str.SoftwareKingsoftKVip10001kybox_subp
push str._s_s
lea edi, [esp + 0x34]
call fcn.00481690
mov byte [esp + 0x514], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d872f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x500], 7
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d8757
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
push SysReAllocStringLen
mov ecx, 0xf003f
mov edx, edi
lea esi, [esp + 0x20]
call fcn.00481840
test eax, eax
mov esi, dword [esp + 0x1c]
jne 0x4d8784
mov ecx, dword [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [edi - 0x10]
mov byte [esp + 0x500], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d87a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
mov byte [esp + 0x500], 5
je 0x4d87bb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x508]
lea ebp, [esi + 0x25]
mov edi, 0x186a0
mov eax, ebp
call fcn.004fe940
test eax, eax
je 0x4d88b0
mov edx, dword [esp + 0x50c]
mov ecx, eax
call fcn.004c3ad0
test eax, eax
je 0x4d88b0
call fcn.0047f920
test eax, eax
mov ebx, 0xa
mov byte [esp + 0x500], bl
je 0x4d8845
mov eax, dword [eax + 0x24]
cmp eax, 2
jg 0x4d8845
push 2
push str.KAccountMgrWnd::_DeleteSmallAcc
push 0x383
push str.e:kingsoft_duba_build_build_srckisenginekis_2016_released_sp5.5_1339_fbkis_srckvip_srckyboxkaccountmgrwnd.h
lea ecx, [esp + 0xbc]
push ecx
call fcn.0047f220
push 0x5b7d50
mov byte [esp + 0x504], 0xb
or dword [esp + 0x18], 4
push eax
call fcn.0047f6e0
add esp, 8
mov dword [esp + 0x500], ebx
test byte [esp + 0x14], 4
je 0x4d8860
lea edx, [esp + 0xac]
push edx
call fcn.0047eb40
mov byte [esp + 0x500], 5
mov eax, dword [0x5f9180]
test eax, eax
je 0x4d8878
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x50c]
test ecx, ecx
jl 0x4d889d
mov eax, dword [esi + 0x39c]
cmp ecx, eax
lea edx, [esi + 0x398]
jae 0x4d889d
test eax, eax
je 0x4d889d
push edx
call fcn.0050a770
mov edi, 0x186a0
mov eax, ebp
call fcn.004f6810
mov ecx, esi
call fcn.004d8df0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
jne 0x4d88ca
call fcn.00473e70
mov eax, dword [esp + 0x508]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [esp + 0x50c]
push esi
push edx
push 0x408
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esp + 0x12c]
push eax
mov byte [esp + 0x504], 4
call fcn.004f6bc0
mov dword [esp + 0x500], 0xffffffff
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 0x4d8930
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4f0
ret 8