Function at 0x59a400
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3f26
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x639354]
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 eax, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov edi, 7
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2b4], eax
xor eax, eax
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x278], edi
mov word [ebp - 0x28c], ax
mov dword [ebp - 4], eax
cmp byte [ebp + 0x14], al
je 0x59a59e
push 0x208
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00560a80
add esp, 0xc
mov dword [ebp - 0x2ac], 0x208
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
push str.InfoHD2
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x59a4d0
mov dword [ebp - 0x2ac], esi
jmp 0x59a522
mov eax, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x274]
shr eax, 1
dec eax
mov dword [ebp - 0x274], 0
push eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x264], 0
push eax
mov dword [ebp - 0x260], 7
call fcn.0042e330
mov eax, dword [ebp - 0x274]
mov edi, dword [ebp - 0x260]
mov esi, dword [ebp - 0x264]
mov dword [ebp - 0x2ac], eax
mov edx, dword [ebp - 0x278]
cmp edx, 8
jb 0x59a562
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x59a558
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59a8bc
push edx
push ecx
call fcn.0055c524
add esp, 8
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x278], edi
mov byte [ebp - 0x2a5], 1
test esi, esi
jne 0x59a7fc
push 0x42
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00560a80
mov ecx, dword [ebp - 0x2b0]
mov eax, 0x7fffffff
add esp, 0xc
mov ebx, dword [ecx + 0x10]
sub eax, ebx
cmp eax, 1
jb 0x59a8b2
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 0x2ac], ecx
jb 0x59a5e9
mov eax, dword [ecx]
mov dword [ebp - 0x2ac], eax
lea eax, [ebx + 1]
mov dword [ebp - 0x274], 0
mov esi, 0xf
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
lea edi, [ebp - 0x274]
cmp eax, esi
jbe 0x59a651
mov esi, eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x59a62d
mov esi, 0x7fffffff
jmp 0x59a637
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x274]
call fcn.004385d0
mov edi, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x274], edi
push ebx
push dword [ebp - 0x2ac]
mov dword [ebp - 0x264], eax
push edi
mov dword [ebp - 0x260], esi
call fcn.00560500
add esp, 0xc
mov word [edi + ebx], 0x7c
mov eax, dword [ebp - 0x2b4]
mov ecx, eax
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x59a687
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x274]
call fcn.00449b90
mov ecx, eax
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov eax, dword [ecx]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x29c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x298], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x294], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x290], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
cmp dword [ebp - 0x290], 0x10
lea ecx, [ebp - 0x54]
push 0
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x2a4]
push ecx
push eax
call fcn.0052a350
mov edx, dword [ebp - 0x290]
add esp, 0xc
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x59a761
mov ecx, dword [ebp - 0x2a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59a757
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59a8b7
push edx
push ecx
call fcn.0055c524
add esp, 8
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0xf
mov byte [ebp - 0x2a4], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x59a7ba
mov ecx, dword [ebp - 0x274]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x59a7b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59a8b7
push edx
push ecx
call fcn.0055c524
add esp, 8
lea ecx, [ebp - 0x54]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x59a7c0
sub ecx, edx
lea eax, [ebp - 0x54]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.0042e330
mov esi, dword [ebp - 0x27c]
mov ebx, dword [ebp - 0x2b0]
mov byte [ebp - 0x2a5], 0
test esi, esi
je 0x59a82c
mov edi, dword [ebp - 0x278]
cmp edi, 8
lea ecx, [esi*2 + 2]
push ecx
lea eax, [ebp - 0x28c]
cmovae eax, dword [ebp - 0x28c]
push eax
push 1
push str.InfoHD3_C
push str.SoftwareKingsoftOffice6.0Common
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x2b4]
push ebx
call fcn.0059ace0
mov esi, dword [ebp - 0x2b8]
lea eax, [ebp - 0x28c]
add esp, 8
mov ecx, esi
push eax
call fcn.0043f520
mov al, byte [ebp - 0x2a5]
mov edx, dword [ebp - 0x278]
mov byte [esi + 0x18], al
cmp edx, 8
jb 0x59a894
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x59a88a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x59a8bc
push edx
push ecx
call fcn.0055c524
add esp, 8
mov eax, 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.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0042e260
call fcn.0056af64
call fcn.0056af64
int3