Function at 0x438ef4
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 0x43923c
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43923c
mov edi, 0x4de92c
push str.KImportFileInstaller::ReleaseFile___begin...
mov esi, edi
call fcn.0044aa61
mov eax, dword [0x4dd4b4]
pop ecx
mov ecx, 0x4dd4b4
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.00401994
lea esi, [ebp - 4]
call fcn.00422daf
push str.InstallDK.ini
mov eax, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], ebx
call fcn.0041e2e0
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, 0x4bd6b8
mov eax, dword [0x4dd4b4]
mov ecx, 0x4dd4b4
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.0041e2cd
and word [ebp - 0x434], 0
push 0x206
lea eax, [ebp - 0x432]
push 0
push eax
call fcn.0048a3a0
add esp, 0x18
push dword [ebp - 0x14]
lea eax, [ebp - 0x434]
push 0x104
push eax
push ebx
push dword [ebp + 0xc]
push 0x4bf788
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x434]
push eax
call fcn.0048a6a1
test eax, eax
pop ecx
je 0x43915c
and word [ebp - 0x22c], 0
push 0x206
lea eax, [ebp - 0x22a]
push 0
push eax
call fcn.0048a3a0
add esp, 0xc
push dword [ebp - 0x14]
lea eax, [ebp - 0x22c]
push 0x104
push eax
push ebx
push dword [ebp + 0xc]
push 0x4bf790
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x22c]
push eax
call fcn.0048a6a1
test eax, eax
pop ecx
je 0x4390eb
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e2e0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041e2e0
pop ecx
pop ecx
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.004392e0
test eax, eax
jne 0x4390c2
test esi, esi
mov dword [ebp - 0x24], 1
je 0x4390b0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x4390b0
push dword [ebp + 8]
xor esi, esi
call fcn.00439245
push 4
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
je 0x439105
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 0x438f95
push dword [ebp + 0xc]
mov esi, edi
push str.KImportFileInstaller::ReleaseFile___GetPrivateProfileString_failed_strKey___s
call fcn.0044aa61
pop ecx
pop ecx
mov dword [ebp - 0xc], 1
jmp 0x43915c
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.0041e2cd
push dword [ebp - 0x1c]
mov esi, edi
push str.KImportFileInstaller::ReleaseFile___Rename_failed___s
call fcn.0044aa61
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 0x4391b8
cmp dword [ebp - 0xc], 0
jne 0x4391b8
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, 0x4de92c
push ecx
mov eax, esp
push ebx
call fcn.00401994
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
push 0
push 1
call fcn.0043945f
push ecx
mov eax, esp
push ebx
call fcn.00401994
mov eax, dword [ebp - 0x20]
push 0
push 2
call fcn.0043945f
mov ebx, dword [ebp - 0x1c]
push ecx
add ebx, 0xfffffff0
mov eax, ebx
mov esi, esp
call fcn.00401648
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp + 8]
push 0
push 8
xor eax, eax
call fcn.0043945f
push str.KImportFileInstaller::ReleaseFile___end...
mov esi, edi
call fcn.0044aa61
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 0x43923e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8