Function at 0x438c47
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 0x438f8f
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438f8f
mov edi, 0x4e096c
push str.KImportFileInstaller::ReleaseFile___begin...
mov esi, edi
call fcn.0044ae36
mov eax, dword [0x4df4b4]
pop ecx
mov ecx, 0x4df4b4
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.00401965
lea esi, [ebp - 4]
call fcn.00422ae5
push str.InstallDK.ini
mov eax, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], ebx
call fcn.0041e02e
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, 0x4ba7ec
mov eax, dword [0x4df4b4]
mov ecx, 0x4df4b4
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.0041e01b
and word [ebp - 0x434], 0
push 0x206
lea eax, [ebp - 0x432]
push 0
push eax
call fcn.0048af40
add esp, 0x18
push dword [ebp - 0x14]
lea eax, [ebp - 0x434]
push 0x104
push eax
push ebx
push dword [ebp + 0xc]
push 0x4c18e8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x434]
push eax
call fcn.0048b241
test eax, eax
pop ecx
je 0x438eaf
and word [ebp - 0x22c], 0
push 0x206
lea eax, [ebp - 0x22a]
push 0
push eax
call fcn.0048af40
add esp, 0xc
push dword [ebp - 0x14]
lea eax, [ebp - 0x22c]
push 0x104
push eax
push ebx
push dword [ebp + 0xc]
push 0x4c18f0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x22c]
push eax
call fcn.0048b241
test eax, eax
pop ecx
je 0x438e3e
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041e02e
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041e02e
pop ecx
pop ecx
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.00439033
test eax, eax
jne 0x438e15
test esi, esi
mov dword [ebp - 0x24], 1
je 0x438e03
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x438e03
push dword [ebp + 8]
xor esi, esi
call fcn.00438f98
push 4
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
je 0x438e58
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 0x438ce8
push dword [ebp + 0xc]
mov esi, edi
push str.KImportFileInstaller::ReleaseFile___GetPrivateProfileString_failed_strKey___s
call fcn.0044ae36
pop ecx
pop ecx
mov dword [ebp - 0xc], 1
jmp 0x438eaf
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.0041e01b
push dword [ebp - 0x1c]
mov esi, edi
push str.KImportFileInstaller::ReleaseFile___Rename_failed___s
call fcn.0044ae36
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 0x438f0b
cmp dword [ebp - 0xc], 0
jne 0x438f0b
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, 0x4e096c
push ecx
mov eax, esp
push ebx
call fcn.00401965
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
push 0
push 1
call fcn.004391b2
push ecx
mov eax, esp
push ebx
call fcn.00401965
mov eax, dword [ebp - 0x20]
push 0
push 2
call fcn.004391b2
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.004391b2
push str.KImportFileInstaller::ReleaseFile___end...
mov esi, edi
call fcn.0044ae36
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 0x438f91
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8