Function at 0x438b36
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 0x438e7e
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438e7e
mov edi, 0x4df93c
push str.KImportFileInstaller::ReleaseFile___begin...
mov esi, edi
call fcn.0044a8d7
mov eax, dword [0x4de4b4]
pop ecx
mov ecx, 0x4de4b4
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.00422b09
push str.InstallDK.ini
mov eax, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], ebx
call fcn.0041e0dd
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, 0x4be818
mov eax, dword [0x4de4b4]
mov ecx, 0x4de4b4
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.0041e0ca
and word [ebp - 0x434], 0
push 0x206
lea eax, [ebp - 0x432]
push 0
push eax
call fcn.0048a830
add esp, 0x18
push dword [ebp - 0x14]
lea eax, [ebp - 0x434]
push 0x104
push eax
push ebx
push dword [ebp + 0xc]
push 0x4c08e8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x434]
push eax
call fcn.0048ab31
test eax, eax
pop ecx
je 0x438d9e
and word [ebp - 0x22c], 0
push 0x206
lea eax, [ebp - 0x22a]
push 0
push eax
call fcn.0048a830
add esp, 0xc
push dword [ebp - 0x14]
lea eax, [ebp - 0x22c]
push 0x104
push eax
push ebx
push dword [ebp + 0xc]
push 0x4c08f0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x22c]
push eax
call fcn.0048ab31
test eax, eax
pop ecx
je 0x438d2d
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e0dd
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041e0dd
pop ecx
pop ecx
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.00438f22
test eax, eax
jne 0x438d04
test esi, esi
mov dword [ebp - 0x24], 1
je 0x438cf2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x438cf2
push dword [ebp + 8]
xor esi, esi
call fcn.00438e87
push 4
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
je 0x438d47
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 0x438bd7
push dword [ebp + 0xc]
mov esi, edi
push str.KImportFileInstaller::ReleaseFile___GetPrivateProfileString_failed_strKey___s
call fcn.0044a8d7
pop ecx
pop ecx
mov dword [ebp - 0xc], 1
jmp 0x438d9e
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.0041e0ca
push dword [ebp - 0x1c]
mov esi, edi
push str.KImportFileInstaller::ReleaseFile___Rename_failed___s
call fcn.0044a8d7
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 0x438dfa
cmp dword [ebp - 0xc], 0
jne 0x438dfa
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, 0x4df93c
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.004390a1
push ecx
mov eax, esp
push ebx
call fcn.00401994
mov eax, dword [ebp - 0x20]
push 0
push 2
call fcn.004390a1
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.004390a1
push str.KImportFileInstaller::ReleaseFile___end...
mov esi, edi
call fcn.0044a8d7
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 0x438e80
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8