Function at 0x44c870
Capabilities:
Copy file
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46334c
mov eax, dword fs:[0]
push eax
mov eax, 0x2a6c
call fcn.0045db90
mov eax, dword [0x4920c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
cmp byte [0x493100], 0
je 0x44d0e5
cmp ebx, 4
je 0x44c8c8
cmp ebx, 5
jne 0x44d0e5
mov ecx, str.Restoring_IFW_WinRE_WIM
jmp 0x44c8cd
mov ecx, str.Restoring_IFW_BootWIM_WIM
mov edx, 1
call fcn.0040da30
cmp dword [0x493114], 0
jne 0x44c8ea
mov ecx, str.Error:_Backup_WIM_folder_not_specified
jmp 0x44d0db
cmp dword [0x493118], 8
mov eax, 0x493104
cmovae eax, dword [0x493104]
push eax
lea eax, [ebp - 0x1e10]
push 0x500
push eax
call fcn.004513ee
add esp, 0xc
lea eax, [ebp - 0x2a60]
push eax
lea eax, [ebp - 0x1e10]
push eax
mov dword [ebp - 0x2a64], 0
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x44d0d6
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [ebp - 0x1e10]
cmp ebx, 4
jne 0x44c952
push str.IFW_BootWIM_Backup
jmp 0x44c957
push str.IFW_WinRE_Backup
push 0x500
push eax
call fcn.00451274
add esp, 0xc
lea ecx, [ebp - 0x1e10]
call fcn.0040dd40
test al, al
jne 0x44c97e
mov ecx, str.Error:_Backup_folder_doesnt_exist
jmp 0x44d0db
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp ebx, 4
jne 0x44caf0
cmp dword [0x495d78], 8
mov ecx, 0x495d64
cmovae ecx, dword [0x495d64]
cmp dword [0x495cd0], 8
push ecx
mov eax, 0x495cbc
cmovae eax, dword [0x495cbc]
push eax
lea eax, [ebp - 0xa10]
push 0x46c04c
push eax
call fcn.00409980
add esp, 0x10
lea eax, [ebp - 0xa10]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp dword [0x495d78], 8
mov ecx, 0x495d64
cmovae ecx, dword [0x495d64]
cmp dword [0x495cd0], 8
push ecx
mov eax, 0x495cbc
cmovae eax, dword [0x495cbc]
push eax
lea eax, [ebp - 0xa10]
push str._s_s_boot.wim
push eax
call fcn.00409980
add esp, 0x10
lea eax, [ebp - 0xa10]
push eax
call esi
cmp dword [0x495d78], 8
mov ecx, 0x495d64
cmovae ecx, dword [0x495d64]
cmp dword [0x495cd0], 8
push ecx
mov eax, 0x495cbc
cmovae eax, dword [0x495cbc]
push eax
lea eax, [ebp - 0xa10]
push str._s_sTBWinRE.txt
push eax
call fcn.00409980
add esp, 0x10
lea eax, [ebp - 0xa10]
push eax
call esi
cmp dword [0x495d78], 8
mov ecx, 0x495d64
cmovae ecx, dword [0x495d64]
cmp dword [0x495cd0], 8
push ecx
mov eax, 0x495cbc
cmovae eax, dword [0x495cbc]
push eax
lea eax, [ebp - 0xa10]
push str._s_sIFW_BootWIM_Data.
push eax
call fcn.00409980
lea ecx, [ebp - 0xa10]
call fcn.0040ec70
lea eax, [ebp - 0x1e10]
push eax
lea eax, [ebp - 0x1410]
push str._s_boot.wim
push eax
call fcn.00409980
add esp, 0x1c
cmp dword [0x495d78], 8
mov ecx, 0x495d64
cmovae ecx, dword [0x495d64]
cmp dword [0x495cd0], 8
mov eax, 0x495cbc
cmovae eax, dword [0x495cbc]
push ecx
push eax
push str._s_s_boot.wim
jmp 0x44cb6b
cmp dword [0x495e10], 8
mov eax, 0x495dfc
cmovae eax, dword [0x495dfc]
push eax
lea eax, [ebp - 0xa10]
push str._sIFW_WinRE_Data.
push eax
call fcn.00409980
add esp, 0xc
lea ecx, [ebp - 0xa10]
call fcn.0040ec70
lea eax, [ebp - 0x1e10]
push eax
lea eax, [ebp - 0x1410]
push str._swinre.wim
push eax
call fcn.00409980
add esp, 0xc
cmp dword [0x495e28], 8
mov ecx, 0x495e14
cmovae ecx, dword [0x495e14]
cmp dword [0x495e10], 8
mov eax, 0x495dfc
cmovae eax, dword [0x495dfc]
push ecx
push eax
push 0x46c04c
lea eax, [ebp - 0xa10]
push eax
call fcn.00409980
add esp, 0x10
lea eax, [ebp - 0x1e10]
push eax
lea eax, [ebp - 0x2810]
push str._s_backup_winre.wim
push eax
call fcn.00409980
add esp, 0xc
cmp ebx, 5
jne 0x44ccef
sub esp, 0x18
lea eax, [ebp - 0xa10]
mov ecx, esp
push eax
call fcn.00401ec0
call fcn.0040dc70
mov dword [ebp - 0x2a74], eax
lea eax, [ebp - 0x1410]
mov ecx, esp
push eax
mov dword [ebp - 0x2a70], edx
call fcn.00401ec0
call fcn.0040dc70
mov ecx, esp
push 0x495dfc
mov dword [ebp - 0x2a78], eax
mov dword [ebp - 0x2a68], edx
call fcn.00401e70
call fcn.0040dcd0
add esp, 0x18
cmp dword [ebp - 0x2a70], 0
mov ecx, eax
mov dword [ebp - 0x2a6c], edx
jl 0x44cd2b
jg 0x44cc17
cmp dword [ebp - 0x2a74], 0
jb 0x44cd2b
mov edx, dword [ebp - 0x2a68]
test edx, edx
jl 0x44cd2b
mov eax, dword [ebp - 0x2a78]
jg 0x44cc35
test eax, eax
jb 0x44cd2b
cmp dword [ebp - 0x2a6c], 0
jl 0x44cd2b
jg 0x44cc4c
test ecx, ecx
jb 0x44cd2b
add ecx, dword [ebp - 0x2a74]
mov esi, dword [ebp - 0x2a70]
adc dword [ebp - 0x2a6c], esi
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
add eax, 0x100000
adc edx, 0
cmp dword [ebp - 0x2a6c], edx
jl 0x44cd21
jg 0x44cc82
cmp ecx, eax
jbe 0x44cd21
cmp dword [0x495e28], 8
mov ecx, 0x495e14
cmovae ecx, dword [0x495e14]
cmp dword [0x495e10], 8
push ecx
mov eax, 0x495dfc
cmovae eax, dword [0x495dfc]
push eax
lea eax, [ebp - 0xa10]
push 0x46c04c
push eax
call fcn.00409980
add esp, 0x10
lea eax, [ebp - 0xa10]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 0
lea eax, [ebp - 0x2810]
push eax
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
lea eax, [ebp - 0xa10]
push eax
call esi
test edi, edi
je 0x44cd4d
cmp dword [edi], 0
je 0x44cd4d
push 0x44
call fcn.00450970
add esp, 4
mov dword [ebp - 0x2a68], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x44cd35
push str.Restoring_WIM_file...
mov ecx, eax
call fcn.00409af0
jmp 0x44cd37
mov ecx, str.Error:_Insufficient_disk_space_available_on_WinRE_partition_to_copy_updated_winre.wim
jmp 0x44d0db
mov ecx, str.Error:_Unable_to_determine_available_disk_space_for_WinRE_update
jmp 0x44d0db
xor eax, eax
push eax
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0044fa70
mov dword [edi + 0x10], 5
push 0
push 0
push edi
push 0x422c90
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x1410]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileExW]
mov dword [ebp - 0x2a68], eax
test edi, edi
je 0x44cd7c
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0xa10]
call fcn.0040dd40
test al, al
je 0x44d0b4
cmp dword [ebp - 0x2a68], 0
je 0x44d0b4
sub esp, 0x18
lea eax, [ebp - 0x1410]
mov ecx, esp
push eax
call fcn.00401ec0
call fcn.0040dc70
mov esi, eax
lea eax, [ebp - 0xa10]
mov ecx, esp
push eax
mov dword [ebp - 0x2a68], edx
call fcn.00401ec0
call fcn.0040dc70
add esp, 0x18
cmp esi, eax
jne 0x44d05d
cmp dword [ebp - 0x2a68], edx
jne 0x44d05d
cmp byte [0x493102], 0
je 0x44ceb4
test edi, edi
je 0x44ce3b
cmp dword [edi], 0
je 0x44ce3b
push 0x44
call fcn.00450970
add esp, 4
mov dword [ebp - 0x2a68], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x44ce23
push str.Verifing_restored_WIM_file...
mov ecx, eax
call fcn.00409af0
jmp 0x44ce25
xor eax, eax
push eax
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0044fa70
mov dword [edi + 0x10], 0
push 6
push edi
lea edx, [ebp - 0xa10]
lea ecx, [ebp - 0x1410]
call fcn.0040e450
add esp, 8
test al, al
jne 0x44ceb4
mov edx, 1
mov ecx, str.Error:_Compare_failed_on_restored_WIM
call fcn.0040da30
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp - 0xa10]
push eax
call esi
cmp ebx, 5
jne 0x44d0e5
push 0
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x2810]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push dword [0x495e44]
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea eax, [ebp - 0x2810]
push eax
call esi
jmp 0x44d0e5
cmp ebx, 5
jne 0x44cf76
push dword [0x495e44]
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp - 0x2810]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov edi, 0x495d64
mov edx, 1
mov ecx, str.Restore_of_WIM_completed
call fcn.0040da30
mov eax, dword [0x495b38]
cmp eax, 6
jg 0x44d056
jne 0x44cf16
cmp dword [0x495b3c], 2
jge 0x44d056
lea eax, [ebp - 0x1e10]
push eax
lea eax, [ebp - 0x1410]
cmp ebx, 4
jne 0x44cff5
push str._sIFW_BootWIM_Data
push eax
call fcn.00409980
add esp, 0xc
cmp dword [0x495d78], 8
mov eax, 0x495cbc
cmovae edi, dword [0x495d64]
cmp dword [0x495cd0], 8
push edi
cmovae eax, dword [0x495cbc]
push eax
lea eax, [ebp - 0xa10]
push str._s_sIFW_BootWIM_Data
push eax
call fcn.00409980
add esp, 0x10
jmp 0x44d02b
cmp ebx, 4
jne 0x44cedf
lea eax, [ebp - 0x1e10]
push eax
lea eax, [ebp - 0x1410]
push str._sTBWinRE.txt
push eax
call fcn.00409980
add esp, 0xc
cmp dword [0x495d78], 8
mov edi, 0x495d64
mov ecx, edi
cmovae ecx, dword [0x495d64]
cmp dword [0x495cd0], 8
push ecx
mov eax, 0x495cbc
cmovae eax, dword [0x495cbc]
push eax
lea eax, [ebp - 0xa10]
push str._s_sTBWinRE.txt
push eax
call fcn.00409980
mov esi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
add esp, 0x10
lea eax, [ebp - 0xa10]
push 0
push eax
lea eax, [ebp - 0x1410]
push eax
call esi
jmp 0x44ceea
push str._sIFW_WinRE_Data
push eax
call fcn.00409980
add esp, 0xc
cmp dword [0x495e10], 8
mov eax, 0x495dfc
cmovae eax, dword [0x495dfc]
push eax
lea eax, [ebp - 0xa10]
push str._sIFW_WinRE_Data
push eax
call fcn.00409980
add esp, 0xc
push 0
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x1410]
push eax
call esi
lea ecx, [ebp - 0xa10]
call fcn.0040dd40
test al, al
jne 0x44d056
mov ecx, str.Error:_Restore_of_WIM_data_failed__0x1_
jmp 0x44d0db
mov al, 1
jmp 0x44d0e7
mov edx, 1
mov ecx, str.Error:_Restore_of_WIM_failed__0x2_
call fcn.0040da30
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [ebp - 0xa10]
push eax
call esi
cmp ebx, 5
jne 0x44d0e5
push 0
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x2810]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push dword [0x495e44]
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea eax, [ebp - 0x2810]
push eax
call esi
jmp 0x44d0e5
mov edx, 1
mov ecx, str.Error:_Restore_of_WIM_failed__0x1_
call fcn.0040da30
cmp ebx, 5
jne 0x44d0e5
lea eax, [ebp - 0xa10]
push eax
call esi
jmp 0x44ce7d
mov ecx, str.Error:_Backup_WIM_folder_invalid
mov edx, 1
call fcn.0040da30
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044fdac
mov esp, ebp
pop ebp
ret