Function at 0x51c640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60af60
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x51ca4f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x51ca59
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push 1
push 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0
push eax
push ecx
mov edi, esp
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x2c], edi
mov ecx, dword [ebx + 0x910]
sub ecx, 0x10
call fcn.0040c950
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
push ecx
mov edi, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x38], edi
mov ecx, dword [ebx + 0x90c]
sub ecx, 0x10
call fcn.0040c950
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 7
push 0
mov byte [ebp - 4], 3
call fcn.00557b60
mov edi, dword [ebp - 0x14]
or ebx, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x51c9f5
cmp dword [ebp - 0x18], 0
jne 0x51c7a1
mov edx, dword [eax + 4]
mov ecx, str.PassIsError
push 0
push 0x10
call fcn.00495040
add esp, 8
mov byte [ebp - 4], 1
or ebx, ebx
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51c77e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x51ca3d
mov ecx, dword [edx]
push edx
jmp 0x51ca38
cmp dword [ebp - 0x1c], 3
jbe 0x51c7db
mov edx, dword [eax + 4]
mov ecx, str.UIdOverflow
push 0
push 0x10
call fcn.00495040
add esp, 8
mov byte [ebp - 4], 1
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51c7d9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51c77e
mov edx, dword [eax + 0x90c]
lea ecx, [eax + 0x900]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ecx]
sub ecx, 0x10
lea edi, [edx - 0x10]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x18], edi
cmp edi, ecx
mov edi, dword [ebp - 0x14]
je 0x51c852
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x2c], eax
jl 0x51c843
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x51c843
mov ecx, dword [ebp - 0x18]
call fcn.0040c950
mov edx, dword [ebp - 0x2c]
mov ecx, ebx
mov dword [ebp - 0x18], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51c839
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x51c84f
push dword [edx - 0xc]
mov ecx, dword [ebp - 0x1c]
push edx
call fcn.0040c9d0
mov eax, dword [ebp - 0x10]
push 0
push dword [eax + 0x908]
push dword [eax + 0x910]
push dword [eax + 0x90c]
call fcn.0055a800
cmp dword [ebp - 0x20], 0
je 0x51c937
push 4
lea eax, [ebp - 0x30]
mov byte [0x6b6c1b], 1
push eax
push 4
push str.CheckNet
push 0x650fc8
push SysReAllocString
mov dword [ebp - 0x30], 0x50
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x90c]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x30], ecx
lea eax, [edx - 0x10]
mov ecx, dword [0x6b9698]
add ecx, 0xfffffff0
mov dword [ebp - 0x20], ecx
cmp eax, ecx
je 0x51c916
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
jl 0x51c908
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x51c908
mov ecx, dword [ebp - 0x30]
call fcn.0040c950
mov dword [ebp - 0x30], eax
mov ecx, ebx
mov eax, dword [ebp - 0x2c]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c8fb
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [0x6b9698], eax
jmp 0x51c916
push dword [edx - 0xc]
mov ecx, 0x6b9698
push edx
call fcn.0040c9d0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x924]
test eax, eax
je 0x51c9ca
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 0x409
jmp 0x51c9c3
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x90c]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x30], ecx
lea eax, [edx - 0x10]
mov ecx, dword [0x6b9698]
add ecx, 0xfffffff0
mov dword [ebp - 0x28], ecx
cmp eax, ecx
je 0x51c9ad
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
jl 0x51c99f
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x51c99f
mov ecx, dword [ebp - 0x30]
call fcn.0040c950
mov dword [ebp - 0x30], eax
mov ecx, ebx
mov eax, dword [ebp - 0x2c]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51c992
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [0x6b9698], eax
jmp 0x51c9ad
push dword [edx - 0xc]
mov ecx, 0x6b9698
push edx
call fcn.0040c9d0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x924]
test eax, eax
je 0x51c9ca
push 0
push 0
push 0x406
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push 0x6b6c1b
push 4
push str.memid
push 0x650fc8
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 0x10]
push 1
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWindowWnd::Close_unsigned_int_]
jmp 0x51ca06
mov edx, dword [eax + 4]
mov ecx, edi
push 0
push 0x10
call fcn.00495040
add esp, 8
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51ca21
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x51ca3d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b250
push 0x80004005
call fcn.0040b250
int3