Function at 0x4051a0
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x428100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], ebx
mov eax, dword [0x4346e4]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 1
push ecx
call fcn.0041e5f5
mov edx, dword [eax]
lea eax, [esp + 0x24]
push eax
push 0xf003f
push ebx
push str.SOFTWAREKingsaft
push 0x80000002
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x405221
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], edi
jmp 0x40525a
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x24]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREKingsaft
push 0x80000002
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4053db
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov edi, eax
push 0x100
lea ecx, [esp + 0x18]
call fcn.0041f383
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
push ebx
push str.NextUpdateTime
push edi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0041f3d2
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
je 0x405376
cmp esi, ebx
jne 0x405376
lea ecx, [esp + 0x24]
push 4
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041e0de
mov eax, dword [eax]
push eax
call fcn.0040f6ef
add esp, 4
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.0041ef53
lea edx, [esp + 0x24]
push 4
push edx
lea ecx, [esp + 0x1c]
call fcn.0041e062
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 3
call fcn.0041f08c
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 1
call fcn.0041ef53
lea eax, [esp + 0x24]
push 2
push eax
lea ecx, [esp + 0x1c]
call fcn.0041e0de
mov eax, dword [eax]
push eax
call fcn.0040f6ef
add esp, 4
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.0041ef53
lea ecx, [esp + 0x24]
push 2
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041e062
mov eax, dword [eax]
push eax
call fcn.0040f6ef
add esp, 4
lea ecx, [esp + 0x24]
mov ebp, eax
call fcn.0041ef53
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push ebp
push edi
push esi
lea ecx, [esp + 0x48]
call fcn.0041e511
mov edx, dword [esp + 0x2c]
push ecx
mov eax, esp
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], esp
mov dword [eax], edx
call fcn.004054d0
cmp eax, ebx
je 0x4053db
mov dword [esp + 0x1c], ebx
jmp 0x4053db
push ecx
lea ecx, [esp + 0x24]
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], 0x15180
call fcn.004043e0
lea eax, [esp + 0x2c]
push str._Y_m_d
push eax
lea ecx, [esp + 0x28]
call fcn.0041e608
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 2
call fcn.0041f08c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 1
call fcn.0041ef53
mov eax, dword [esp + 0x14]
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push str.NextUpdateTime
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x30]
call fcn.0040dcaa
push 0x100
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 4
call fcn.0041f383
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041f3d2
lea ecx, [esp + 0x14]
push str.iconsICO
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.0041f1e8
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 5
call fcn.0040dd6d
test eax, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 4
sete byte [esp + 0x13]
call fcn.0041ef53
cmp byte [esp + 0x13], bl
je 0x40548c
lea eax, [esp + 0x14]
push str.icons_ver.ini
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.0041f1e8
mov eax, dword [eax]
push eax
push 0x432244
push 0x432a40
push str.main
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x2c]
call fcn.0041ef53
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.0040dce7
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], bl
call fcn.0041ef53
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4054b6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret