Function at 0x439ce7
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 0x43a02f
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a02f
mov edi, 0x51b95c
push str.KImportFileInstaller::ReleaseFile___begin...
mov esi, edi
call fcn.0044cc8c
mov eax, dword [0x519a54]
pop ecx
mov ecx, 0x519a54
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.004019de
lea esi, [ebp - 4]
call fcn.00423728
push str.InstallDK.ini
mov eax, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], ebx
call fcn.0041e7cc
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, 0x4f6898
mov eax, dword [0x519a54]
mov ecx, 0x519a54
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.0041e7b9
and word [ebp - 0x434], 0
push 0x206
lea eax, [ebp - 0x432]
push 0
push eax
call fcn.004923b0
add esp, 0x18
push dword [ebp - 0x14]
lea eax, [ebp - 0x434]
push 0x104
push eax
push ebx
push dword [ebp + 0xc]
push 0x4f8a14
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x434]
push eax
call fcn.004926b1
test eax, eax
pop ecx
je 0x439f4f
and word [ebp - 0x22c], 0
push 0x206
lea eax, [ebp - 0x22a]
push 0
push eax
call fcn.004923b0
add esp, 0xc
push dword [ebp - 0x14]
lea eax, [ebp - 0x22c]
push 0x104
push eax
push ebx
push dword [ebp + 0xc]
push 0x4f8a1c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x22c]
push eax
call fcn.004926b1
test eax, eax
pop ecx
je 0x439ede
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e7cc
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041e7cc
pop ecx
pop ecx
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.0043a0d3
test eax, eax
jne 0x439eb5
test esi, esi
mov dword [ebp - 0x24], 1
je 0x439ea3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x439ea3
push dword [ebp + 8]
xor esi, esi
call fcn.0043a038
push 4
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
je 0x439ef8
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040153b
inc dword [ebp - 0x18]
jmp 0x439d88
push dword [ebp + 0xc]
mov esi, edi
push str.KImportFileInstaller::ReleaseFile___GetPrivateProfileString_failed_strKey___s
call fcn.0044cc8c
pop ecx
pop ecx
mov dword [ebp - 0xc], 1
jmp 0x439f4f
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.0041e7b9
push dword [ebp - 0x1c]
mov esi, edi
push str.KImportFileInstaller::ReleaseFile___Rename_failed___s
call fcn.0044cc8c
mov eax, dword [ebp - 8]
add esp, 0x20
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040153b
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 0x439fab
cmp dword [ebp - 0xc], 0
jne 0x439fab
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, 0x51b95c
push ecx
mov eax, esp
push ebx
call fcn.004019de
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
push 0
push 1
call fcn.0043a252
push ecx
mov eax, esp
push ebx
call fcn.004019de
mov eax, dword [ebp - 0x20]
push 0
push 2
call fcn.0043a252
mov ebx, dword [ebp - 0x1c]
push ecx
add ebx, 0xfffffff0
mov eax, ebx
mov esi, esp
call fcn.00401667
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp + 8]
push 0
push 8
xor eax, eax
call fcn.0043a252
push str.KImportFileInstaller::ReleaseFile___end...
mov esi, edi
call fcn.0044cc8c
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, ebx
call fcn.0040153b
xor eax, eax
cmp dword [ebp - 0xc], eax
sete al
jmp 0x43a031
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8