Function at 0x412510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b681c
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4ee318]
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 ebx, ecx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x18
push str.Softwareleidianldcloud
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404ef0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xc0]
push ecx
push 0
push 0x2001f
push 0
push 0x4d5677
push 0
push eax
push closesocket
mov dword [ebp - 0xc8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
push eax
push str.create_reg__lastError___d
push 0x7f
push str.utility::RegKey::RegCreate
call fcn.0040aaf0
add esp, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x4125ef
push dword [ebp - 0x28]
call fcn.0047e7c0
add esp, 4
test esi, esi
jne 0x41277f
push 0xa
push str.InstallDir
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x28], 0
call fcn.00404ef0
lea edx, [ebx + 0x20]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.004092e0
mov esi, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xc0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test ecx, ecx
je 0x412674
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x412647
mov esi, dword [esi]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
inc eax
push eax
push esi
push 1
push 0
push edx
push ecx
call ebx
call edi
push eax
push str.write_reg_1_lastError___d
push 0x64
push str.utility::RegKey::RegWrite
call fcn.0040aaf0
add esp, 0x10
cmp dword [ebp - 0x74], 0x10
jb 0x412688
push dword [ebp - 0x88]
call fcn.0047e7c0
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
jb 0x4126b2
push dword [ebp - 0x28]
call fcn.0047e7c0
add esp, 4
push 5
push str.1.0.0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.00404ef0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
push 7
push str.Version
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00404ef0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x412741
cmp dword [ebp - 0x44], 0x10
lea esi, [ebp - 0x58]
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmovae esi, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], 0x10
cmovae edx, dword [ebp - 0x40]
inc ecx
push ecx
push esi
push 1
push 0
push edx
push eax
call ebx
call edi
push eax
push str.write_reg_1_lastError___d
push 0x64
push str.utility::RegKey::RegWrite
call fcn.0040aaf0
add esp, 0x10
cmp dword [ebp - 0x2c], 0x10
jb 0x412752
push dword [ebp - 0x40]
call fcn.0047e7c0
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x412779
push dword [ebp - 0x58]
call fcn.0047e7c0
add esp, 4
mov ebx, dword [ebp - 0xc4]
push 0x3b
xor eax, eax
mov dword [ebp - 0xa4], 7
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallldcloud
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
call fcn.004049d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
push ecx
cmovae eax, dword [ebp - 0xb8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412a9a
push 0x4d6540
lea edx, [ebx + 0x20]
lea ecx, [ebp - 0x88]
call fcn.00403d40
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x74], 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmovae ecx, dword [ebp - 0x88]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.UninstallString
push dword [ebp - 0xbc]
call edi
push 7
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.LDCloud
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004049d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.DisplayName
push dword [ebp - 0xbc]
call edi
push 0x4d6400
lea edx, [ebx + 0x20]
lea ecx, [ebp - 0x28]
call fcn.00403d40
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0xbc]
call edi
push 0x11
xor eax, eax
mov dword [ebp - 0x44], 7
push str.ChangZhi_Co._Ltd.
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.004049d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 8
cmovae ecx, dword [ebp - 0x58]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Publisher
push dword [ebp - 0xbc]
call edi
push 0x17
xor eax, eax
mov dword [ebp - 0x5c], 7
push str.https:__www.ldcloud.net
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.004049d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x5c], 8
cmovae ecx, dword [ebp - 0x70]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.URLInfoAbout
push dword [ebp - 0xbc]
call edi
push 7
xor eax, eax
mov dword [ebp - 0x8c], 7
push str.2.14.15
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
call fcn.004049d0
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 8
cmovae ecx, dword [ebp - 0xa0]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0xbc]
call edi
cmp dword [ebp - 0x8c], 8
jb 0x4129d5
push dword [ebp - 0xa0]
call fcn.0047e7c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
jb 0x412a03
push dword [ebp - 0x70]
call fcn.0047e7c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x412a28
push dword [ebp - 0x58]
call fcn.0047e7c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x412a4d
push dword [ebp - 0x28]
call fcn.0047e7c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x412a72
push dword [ebp - 0x40]
call fcn.0047e7c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x412a9a
push dword [ebp - 0x88]
call fcn.0047e7c0
add esp, 4
push dword [ebp - 0xbc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0xa4], 8
jb 0x412abf
push dword [ebp - 0xb8]
call fcn.0047e7c0
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], 0
test eax, eax
je 0x412ae9
push eax
call esi
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.0047e7a3
mov esp, ebp
pop ebp
ret