Function at 0x436a50
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00467130
push 0xffffffffffffffff
push 0x488d56
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4be8a0]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x100c]
mov ecx, dword [ebp + 0x1014]
mov esi, dword [ebp + 0x1010]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, ebx
je 0x436c51
cmp esi, ebx
je 0x436c51
mov edi, 0x800
push edi
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.004670a0
push edi
lea eax, [ebp + 0x800]
push ebx
push eax
call fcn.004670a0
push 0x400
lea eax, [ebp]
push esi
push eax
call fcn.00467050
add esp, 0x24
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436bad
push esi
push str.File__s_exist
call fcn.0041f6df
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
push esi
call edi
test eax, eax
jne 0x436bad
push esi
push str.Delete_File__s_failed
call fcn.0041f6df
pop ecx
pop ecx
lea eax, [ebp + 0x800]
push eax
push ebx
push 0x492564
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp + 0x800]
push eax
call edi
push esi
call fcn.00435f18
pop ecx
test eax, eax
jne 0x436c06
lea eax, [ebp + 0x800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x436c06
push esi
push str.Move_File__s_to_temp_dir
call fcn.0041f6df
pop ecx
pop ecx
push 4
pop edi
push edi
push ebx
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x436ba6
mov dword [eax], edi
mov dword [ebp - 0x18], 1
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x436bff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4c4f30
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00401ce4
push edi
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push str.Copy_From__s_to__s_Failed_Error_Code___d
push eax
mov dword [ebp - 4], ebx
call fcn.00404c90
mov esi, dword [ebp - 0x10]
push esi
call fcn.0041f6df
or dword [ebp - 4], 0xffffffff
add esp, 0x18
lea ecx, [esi - 0x10]
call fcn.004023e9
cmp dword [ebp - 0x18], ebx
je 0x436c4c
jmp 0x436c3f
push esi
push str.Move_File__s_failed__replace_until_reboot
call fcn.0041f6df
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x800]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
pop edi
push edi
push esi
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x436c3f
mov dword [eax], edi
mov ecx, dword [0x4c27fc]
push 1
call fcn.0044cdb1
xor eax, eax
inc eax
jmp 0x436c53
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0046711a
add ebp, 0x1004
leave
ret