Function at 0x427333
Capabilities:
Copy file
Delete file

Disassembly:
push 0x28
mov eax, 0x48652e
call fcn.0048062c
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.00427940
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402441
add eax, 0x10
mov dword [ebp - 0x20], eax
mov edi, 0x490070
lea eax, [ebp - 0x30]
push edi
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040400d
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [0x4b457c]
mov ebx, 0x4b457c
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
mov esi, 0x4b5094
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040c38f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040c38f
lea ecx, [ebp - 0x2c]
push edi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040400d
add esp, 0x18
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [0x4b457c]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 8
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
lea edi, [ebp - 0x14]
jne 0x427413
lea eax, [ebp - 0x30]
call fcn.004024a3
lea eax, [ebp - 0x1c]
jmp 0x42741e
lea eax, [ebp - 0x20]
call fcn.004024a3
lea eax, [ebp - 0x2c]
push eax
mov edi, 0x4b5078
call fcn.0040c481
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0040c38f
pop ecx
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.004024a3
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040214e
push dword [ebp - 0x10]
lea edi, [ebp - 0x28]
call fcn.004144b2
pop ecx
mov byte [ebp - 4], 0xa
push dword [eax]
call fcn.0041463e
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x28]
pop ecx
add eax, 0xfffffff0
call fcn.0040214e
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
test edi, edi
mov esi, 0x4b4d74
jne 0x4274dc
push str.AddRebootBackFile_CopyFile_failed__try_ksapi
call fcn.00411a60
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x34]
call fcn.00408185
pop ecx
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
push 6
push dword [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.0040bfd7
mov edi, eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x34]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040214e
test edi, edi
je 0x4275b3
mov eax, dword [0x4b457c]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0xc
mov eax, dword [0x4b457c]
mov ecx, ebx
call dword [eax + 0xc]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xd
push dword [ebp + 8]
call fcn.00406958
mov eax, dword [0x4b457c]
pop ecx
pop ecx
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x28]
push eax
push dword [ebp - 0x10]
call fcn.00406958
push dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
push ebx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 0x10
test eax, eax
je 0x427586
push dword [ebp - 0x18]
push ebx
push dword [ebp + 8]
push str.AddRebootBackFile_CopyFile_md5_is_dismatch__file_:__s_expect_md5:_s_calc_md5:_s
call fcn.00411a60
add esp, 0x10
push 6
push 6
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp + 8], esp
mov edi, esp
call fcn.00402441
add eax, 0x10
mov dword [edi], eax
call fcn.004038c0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
jmp 0x427591
push str.AddRebootBackFile_CopyFile_double_check_success
call fcn.00411a60
pop ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040214e
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 8
call fcn.0040214e
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.KRebootConfigWritter::AddRebootBackFile_CopyFile_return:_d__errorcode:_d__relate_path:_ws
call fcn.00411a60
add esp, 0x10
test edi, edi
je 0x42765d
push dword [ebp + 0xc]
mov esi, 0x4b509c
push str.path
push dword [ebp + 0xc]
push esi
call fcn.004104b7
push dword [ebp - 0x14]
push 0x49965c
push dword [ebp + 0xc]
push esi
call fcn.004104b7
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0xc]
push 0x499664
push dword [ebp + 0xc]
push esi
call fcn.004104b7
push dword [ebx + 0x28]
push str.filesize
push dword [ebp + 0xc]
push esi
call fcn.0041032f
push dword [ebx + 8]
push str.peversion
push dword [ebp + 0xc]
push esi
call fcn.004104b7
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call fcn.00417a34
pop ecx
pop ecx
mov byte [ebp - 4], 0xf
push dword [eax]
push str.wtime
push dword [ebp + 0xc]
push esi
call fcn.004104b7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040214e
xor eax, eax
test edi, edi
sete al
call fcn.00480704
ret 0xc