Function at 0x40f390
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cc98
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x45d01c]
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, ecx
mov dword [ebp - 0x38], edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x40f62f
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20006
push 0
push str.Software2345Pinyin
push SysReAllocString
mov dword [ebp - 0x30], SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f428
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.Software2345Pinyin
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40f628
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov esi, dword [edi + 0x60]
mov ecx, esi
mov edi, dword [edi + 0x5c]
sub ecx, edi
mov dword [ebp - 0x34], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f592
xor ebx, ebx
xor ecx, ecx
sub esi, edi
mov eax, 0x2aaaaaab
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jbe 0x40f650
cmp dword [ebx + edi + 0x14], 8
lea eax, [ebx + edi]
mov ecx, eax
jb 0x40f4a9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040fe80
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jae 0x40f4d8
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0x20
jmp 0x40f4ea
push 0x20
mov byte [ebp - 0x3c], 0
push dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004100b0
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
mov ecx, dword [eax + 0x60]
mov esi, dword [eax + 0x5c]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x40f650
cmp dword [ebx + esi + 0x2c], 8
lea eax, [ebx + esi]
lea ecx, [eax + 0x18]
jb 0x40f521
mov ecx, dword [eax + 0x18]
push dword [eax + 0x28]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040fe80
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jae 0x40f550
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 9
jmp 0x40f562
push 9
mov byte [ebp - 0x40], 0
push dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004100b0
mov eax, dword [ebp - 0x38]
inc edi
mov dword [ebp - 0x34], edi
add ebx, 0x30
mov esi, dword [eax + 0x60]
mov ecx, esi
mov edi, dword [eax + 0x5c]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 0x34]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x40f480
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40f5b3
cmp dword [ebp - 0x14], 8
lea ecx, [eax - 1]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push 1
push 0
push str.RecentlyUseSymbol
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40f611
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f607
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f64b
push edx
push ecx
call fcn.00428145
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00427d5e
mov esp, ebp
pop ebp
ret
call fcn.0042d453
call fcn.0040cb30
int3