Function at 0x439a84
Capabilities:
Check if file exists
Move file
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x439dcc
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439dcc
mov edi, 0x52a8fc
push str.KImportFileInstaller::ReleaseFile___begin...
mov esi, edi
call fcn.0044cbdd
mov eax, dword [0x5289f4]
pop ecx
mov ecx, 0x5289f4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], ebx
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
call fcn.004019c5
lea esi, [ebp - 4]
call fcn.0042360a
push str.InstallDK.ini
mov eax, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], ebx
call fcn.0041e85e
pop ecx
push dword [ebp - 0x14]
push ebx
push str.Switch
push str.General
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov esi, eax
dec esi
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x18], 1
mov ebx, 0x504420
mov eax, dword [0x5289f4]
mov ecx, 0x5289f4
call dword [eax + 0xc]
push dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push str.FileName_d
push eax
call fcn.0041e84b
and word [ebp - 0x434], 0
push 0x206
lea eax, [ebp - 0x432]
push 0
push eax
call fcn.00497490
add esp, 0x18
push dword [ebp - 0x14]
lea eax, [ebp - 0x434]
push 0x104
push eax
push ebx
push dword [ebp + 0xc]
push 0x50659c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x434]
push eax
call fcn.00497791
test eax, eax
pop ecx
je 0x439cec
and word [ebp - 0x22c], 0
push 0x206
lea eax, [ebp - 0x22a]
push 0
push eax
call fcn.00497490
add esp, 0xc
push dword [ebp - 0x14]
lea eax, [ebp - 0x22c]
push 0x104
push eax
push ebx
push dword [ebp + 0xc]
push 0x5065a4
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x22c]
push eax
call fcn.00497791
test eax, eax
pop ecx
je 0x439c7b
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e85e
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041e85e
pop ecx
pop ecx
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.00439e70
test eax, eax
jne 0x439c52
test esi, esi
mov dword [ebp - 0x24], 1
je 0x439c40
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x439c40
push dword [ebp + 8]
xor esi, esi
call fcn.00439dd5
push 4
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
je 0x439c95
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040151c
inc dword [ebp - 0x18]
jmp 0x439b25
push dword [ebp + 0xc]
mov esi, edi
push str.KImportFileInstaller::ReleaseFile___GetPrivateProfileString_failed_strKey___s
call fcn.0044cbdd
pop ecx
pop ecx
mov dword [ebp - 0xc], 1
jmp 0x439cec
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 1
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x1c]
push str.BakFile:_s__OriFile:_s__ErrCode:_d__DuiKang:_d
push eax
mov dword [ebp - 0xc], 3
call fcn.0041e84b
push dword [ebp - 0x1c]
mov esi, edi
push str.KImportFileInstaller::ReleaseFile___Rename_failed___s
call fcn.0044cbdd
mov eax, dword [ebp - 8]
add esp, 0x20
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040151c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x24]
push eax
mov dword [eax + 0x18], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test esi, esi
je 0x439d48
cmp dword [ebp - 0xc], 0
jne 0x439d48
and word [ebp + 0xc], 0
xor eax, eax
push 4
lea edi, [ebp + 0xe]
stosw word es:[edi], ax
lea eax, [ebp + 0xc]
push eax
push 1
push str.KisInstallReboot
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edi, 0x52a8fc
push ecx
mov eax, esp
push ebx
call fcn.004019c5
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
push 0
push 1
call fcn.00439fef
push ecx
mov eax, esp
push ebx
call fcn.004019c5
mov eax, dword [ebp - 0x20]
push 0
push 2
call fcn.00439fef
mov ebx, dword [ebp - 0x1c]
push ecx
add ebx, 0xfffffff0
mov eax, ebx
mov esi, esp
call fcn.0040164e
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp + 8]
push 0
push 8
xor eax, eax
call fcn.00439fef
push str.KImportFileInstaller::ReleaseFile___end...
mov esi, edi
call fcn.0044cbdd
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040151c
mov eax, ebx
call fcn.0040151c
xor eax, eax
cmp dword [ebp - 0xc], eax
sete al
jmp 0x439dce
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8