Function at 0x596770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af4e5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x63434c]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 0x14], 0x10
jb 0x5967a9
mov edi, dword [edi]
test edi, edi
je 0x5967f3
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5967b2
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x74], eax
cmp eax, 0x3fffffff
jg 0x5967f3
add eax, eax
call fcn.00558670
mov esi, esp
test esi, esi
je 0x5967f3
push dword [ebp - 0x74]
xor eax, eax
push esi
push 0xffffffffffffffff
push edi
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x5967f5
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x596815
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.0042e2d0
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x59683d
mov ebx, dword [ebx]
test ebx, ebx
je 0x596884
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x596846
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x596884
lea eax, [edi + edi]
call fcn.00558670
mov esi, esp
test esi, esi
je 0x596884
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x596886
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5968a6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.0042e2d0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
call fcn.00595080
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0043ee20
push 1
push 0x5bd8c0
lea ecx, [ebp - 0x28]
call fcn.0043ee20
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
push eax
call fcn.0043ee20
push 1
push 0x5bd8c0
lea ecx, [ebp - 0x28]
call fcn.0043ee20
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0043ee20
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 3
push str.InfoHD3Verify_C
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x5969b9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5969af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x596a95
push edx
push ecx
call fcn.00558004
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x596a07
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5969fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x596a95
push edx
push ecx
call fcn.00558004
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x596a3d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x596a33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x596a95
push edx
push ecx
call fcn.00558004
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x596a73
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x596a69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x596a95
push edx
push ecx
call fcn.00558004
add esp, 8
lea esp, [ebp - 0x84]
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.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3