Function at 0x4095bb
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push 0x24
mov eax, 0x485e94
call fcn.0048062c
mov eax, dword [0x4b457c]
or dword [ebp - 0x20], 0xffffffff
mov esi, 0x4b457c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00402394
push 0x490070
lea eax, [ebp - 0x10]
push eax
call fcn.004021d8
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
je 0x409626
mov ebx, 0x4b4d74
push str.RebootUpdate_src_file_is_Not_exsist_
mov esi, ebx
call fcn.00411a60
pop ecx
jmp 0x4097f8
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push dword [ebp + 0xc]
call edi
push ebx
push dword [ebp - 0x10]
call edi
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov dword [ebp - 0x24], eax
mov ebx, 0x4b4d74
je 0x409773
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
lea edi, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00408185
pop ecx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
call fcn.00406958
mov eax, dword [0x4b457c]
pop ecx
pop ecx
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
lea edi, [ebp - 0x2c]
call fcn.00408185
pop ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.00406958
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
mov edi, dword [ebp - 0x28]
add esp, 0x10
test eax, eax
mov esi, ebx
je 0x40972a
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push str.RebootUpdate_CopyFile_md5_is_dismatch__file_:__s_expect_md5:_s_calc_md5:_s
call fcn.00411a60
add esp, 0x10
push 6
push 5
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x24], esp
mov esi, esp
call fcn.00402441
add eax, 0x10
mov dword [esi], eax
call fcn.004038c0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x24], 0
jmp 0x409735
push str.RebootUpdate_CopyFile_double_check_success
call fcn.00411a60
pop ecx
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [edi - 0x10]
call fcn.0040214e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040214e
cmp dword [ebp - 0x24], 0
jne 0x40979b
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RebootUpdate_CopyFile_fail__error:_d__src:_ws__dst:_ws
mov esi, ebx
call fcn.00411a60
add esp, 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402394
push 5
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4097f4
push str.RebootUpdate_MoveFileEx_failed__try_ksapi
mov esi, ebx
call fcn.00411a60
pop ecx
push dword [ebp + 0xc]
lea edi, [ebp - 0x2c]
call fcn.00408185
pop ecx
push 5
push 5
push dword [ebp + 0xc]
mov byte [ebp - 4], 6
mov eax, dword [eax]
push dword [ebp - 0x10]
push eax
call fcn.0040c081
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
add esp, 0x14
add eax, 0xfffffff0
call fcn.0040214e
test esi, esi
je 0x4097f8
and dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
mov esi, ebx
push dword [ebp + 8]
push dword [ebp - 0x20]
push str.RebootUpdate_return:_d__src:_ws__dst:_ws_errorcode:_d
call fcn.00411a60
mov eax, dword [ebp - 0x10]
add esp, 0x14
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x20]
call fcn.00480704
ret