Function at 0x457bd0
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str._:_sources_boot.wim]
push ebx
push esi
mov dword [ebp - 0x18], eax
mov esi, str._:_sources_appraiserres.dll
mov eax, dword [0x4ea0b4]
xor ebx, ebx
push edi
lea edi, [ebp - 0x34]
mov byte [ebp - 0x199], cl
mov ecx, 7
mov dword [ebp - 0x14], eax
mov eax, dword [0x4ea0b8]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov ecx, 7
mov eax, dword [0x4ea0bc]
mov esi, str._:_sources_appraiserres.bak
mov dword [ebp - 0xc], eax
mov eax, dword [0x4ea0c0]
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1b4], 2
mov dword [ebp - 8], eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x1bc], 1
cmp dword [0x52b944], ebx
jne 0x457c8d
push 0x30b
push str.C:UsersgamerDownloads_rufus72_rufus_7_srcwue.c
push str.unattend_xml_path___NULL
call fcn.0049ed6b
add esp, 0xc
push str.Applying_Windows_customization:
call fcn.004407e0
add esp, 4
push 0xcfe
push 0
push 0
push 0
call fcn.0041b3e0
mov eax, dword [ebp - 0x1a0]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, 0x10000
je 0x457d95
movsx esi, byte [ebp - 0x199]
lea eax, [ebp - 0x158]
push esi
push str._c:WindowsPanther
push 0x104
push eax
call fcn.00403820
add esp, 0x10
mov byte [ebp - 0x55], bl
lea eax, [ebp - 0x158]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x457d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x457d27
call fcn.00440bb0
push eax
lea eax, [ebp - 0x158]
push eax
push str.Could_not_create__s_:__s
call fcn.004407e0
add esp, 0xc
jmp 0x458369
push esi
push str._c:WindowsPantherunattend.xml
lea eax, [ebp - 0x158]
push 0x104
push eax
call fcn.00403820
add esp, 0x10
mov byte [ebp - 0x55], bl
lea eax, [ebp - 0x158]
push 1
push eax
push dword [0x52b944]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x457d7c
call fcn.00440bb0
push eax
lea eax, [ebp - 0x158]
push eax
push str.Could_not_create__s_:__s
call fcn.004407e0
add esp, 0xc
jmp 0x458369
lea eax, [ebp - 0x158]
push eax
push str.Added__s
call fcn.004407e0
add esp, 8
jmp 0x45835f
mov cl, byte [ebp - 0x199]
mov byte [ebp - 0x18], cl
test al, 1
je 0x458261
mov byte [ebp - 0x34], cl
lea edx, [ebp - 0x50]
mov byte [ebp - 0x50], cl
push ecx
lea ecx, [ebp - 0x34]
call fcn.00452220
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
jne 0x457de8
call ebx
cmp eax, 2
je 0x457de8
call fcn.00440bb0
push eax
lea eax, [ebp - 0x34]
push eax
push str.Could_not_rename__s:__s
call fcn.004407e0
add esp, 0xc
jmp 0x457ec2
call ebx
test eax, eax
jne 0x457e03
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Renamed__s___s
call fcn.004407e0
add esp, 0xc
cmp byte [ebp - 0x34], 0
jne 0x457e19
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x457e72
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp edi, 1
jle 0x457e6a
push 2
push edi
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x457e6a
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x457e6c
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1a0], eax
call ebx
mov ebx, eax
test esi, esi
je 0x457ea2
push esi
call fcn.004998ec
add esp, 4
push ebx
call edi
push dword [ebp - 0x1a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x34]
push eax
push str.Created__s_placeholder
call fcn.004407e0
add esp, 8
push 1
push 0
push 0xcf
push 0
push 0
mov edx, 0xcfd
mov ecx, 8
call fcn.004510c0
add esp, 0x14
lea eax, [ebp - 0x18]
push 2
push eax
push str.Mounting__s__d_...
call fcn.004407e0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00454100
test eax, eax
jne 0x457f34
push str.WARNING:_This_image_appears_to_be_an_UNOFFICIAL_Windows_ISO_
call fcn.004407e0
add esp, 4
push str.Rufus_recommends_that_you_only_use_OFFICIAL_retail_Microsoft_Windows_images__such_as
call fcn.004407e0
add esp, 4
push str.the_ones_that_can_be_downloaded_through_the_download_facility_of_this_application.
call fcn.004407e0
mov eax, 1
add esp, 4
mov dword [ebp - 0x1b4], eax
jmp 0x457f39
mov eax, 2
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00452fc0
mov ebx, eax
mov dword [ebp - 0x1a0], ebx
test ebx, ebx
je 0x458369
push ebx
push str._sWindowsSystem32configSYSTEM
lea eax, [ebp - 0x158]
push 0x104
push eax
call fcn.00403820
add esp, 0x10
mov byte [ebp - 0x55], 0
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1a4], 0xffffffff
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x457fba
call fcn.00440bb0
push eax
push str.Could_not_get_current_process_token:__s
call fcn.004407e0
add esp, 8
push str.Falling_back_to_creating_the_registry_keys_through_unattend.xml
call fcn.004407e0
add esp, 4
jmp 0x458206
push ecx
mov ecx, dword [ebp - 0x1a4]
mov edx, str.SeRestorePrivilege
call fcn.004405a0
mov ecx, dword [ebp - 0x1a4]
mov edx, str.SeBackupPrivilege
call fcn.004405a0
add esp, 4
lea eax, [ebp - 0x158]
push eax
push str.RUFUS_OFFLINE_HIVE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
mov esi, eax
test esi, esi
je 0x45801a
push esi
call edi
call fcn.00440bb0
push eax
lea eax, [ebp - 0x158]
push eax
push str.Could_not_mount_offline_registry_hive__s:__s
call fcn.004407e0
add esp, 0xc
jmp 0x458038
push str.RUFUS_OFFLINE_HIVE
push str.HKLM
lea eax, [ebp - 0x158]
push eax
push str.Mounted_offline_registry_hive__s_to__s_s
call fcn.004407e0
add esp, 0x10
mov eax, dword [ebp - 0x1a4]
cmp eax, 0xffffffff
je 0x45804e
test eax, eax
je 0x45804e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
sete al
test eax, eax
jne 0x45806b
push str.Falling_back_to_creating_the_registry_keys_through_unattend.xml
call fcn.004407e0
add esp, 4
jmp 0x458206
push 1
push 0
push 0xcf
push 0
push 0x65
mov edx, 0xcfd
mov ecx, 8
call fcn.004510c0
add esp, 0x14
mov dword [ebp - 0x1b0], 1
lea eax, [ebp - 0x198]
push str.RUFUS_OFFLINE_HIVE
push str._sSetup
push 0x40
push eax
call fcn.00403820
add esp, 0x10
mov byte [ebp - 0x159], 0
lea eax, [ebp - 0x1ac]
push eax
push 0x2001d
push 0
lea eax, [ebp - 0x198]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4580f5
push eax
call edi
call fcn.00440bb0
push eax
push str.Could_not_open_HKLMSYSTEMSetup_registry_key:__s
call fcn.004407e0
add esp, 8
jmp 0x458206
lea eax, [ebp - 0x1c0]
push eax
lea eax, [ebp - 0x1a8]
push eax
push 0
push 7
push 0
push 0
push 0
push str.LabConfig
push dword [ebp - 0x1ac]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45813d
push eax
call edi
call fcn.00440bb0
push eax
push str.Could_not_create_HKLMSYSTEMSetupLabConfig_registry_key:__s
call fcn.004407e0
add esp, 8
jmp 0x458206
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, 0x4cba4c
xor edi, edi
lea ebx, [ebx]
push 4
lea eax, [ebp - 0x1bc]
push eax
push 4
push 0
push dword [esi]
push dword [ebp - 0x1a8]
call ebx
test eax, eax
jne 0x4581e2
push dword [esi]
push str.Created_HKLMSYSTEMSetupLabConfig_s_registry_key
call fcn.004407e0
add edi, 4
add esp, 8
add esi, 4
cmp edi, 0xc
jb 0x458150
mov ecx, dword [0x52b944]
mov edx, str._settings
push 0
push str.disabled
push str.windowsPE
call fcn.004217b0
add esp, 0xc
test eax, eax
jne 0x4581b5
push str.Warning:_Could_not_disable_windowsPE_pass_from_unattend.xml
call fcn.004407e0
add esp, 4
push 1
push 0
push 0xcf
push 0
push 0x66
mov edx, 0xcfd
mov ecx, 8
call fcn.004510c0
mov ebx, dword [ebp - 0x1a0]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x45827d
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call edi
call fcn.00440bb0
push eax
push dword [esi]
push str.Could_not_set_HKLMSYSTEMSetupLabConfig_s_registry_key:__s
call fcn.004407e0
mov ebx, dword [ebp - 0x1a0]
add esp, 0xc
push ebx
push str._sAutounattend.xml
lea eax, [ebp - 0x158]
push 0x104
push eax
call fcn.00403820
mov ecx, dword [0x52b944]
lea edx, [ebp - 0x158]
add esp, 0xc
mov byte [ebp - 0x55], 0
call fcn.00447c00
add esp, 4
test eax, eax
jne 0x458254
call fcn.00440bb0
push eax
push str.Could_not_create_boot.wim_Autounattend.xml:__s
call fcn.004407e0
add esp, 8
jmp 0x458369
mov eax, str.Added_Autounattend.xml_to__s
lea ecx, [ebp - 0x18]
jmp 0x458339
push 1
push 0
push 0xcf
push 0
push 0
mov edx, 0xcfd
mov ecx, 8
call fcn.004510c0
movsx esi, byte [ebp - 0x199]
lea eax, [ebp - 0x158]
add esp, 0x14
push esi
push str._c:_sources_OEM___Panther
push 0x104
push eax
call fcn.00403820
add esp, 0x10
mov byte [ebp - 0x55], 0
lea eax, [ebp - 0x158]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x4582dc
push eax
call edi
call fcn.00440bb0
push eax
lea eax, [ebp - 0x158]
push eax
push str.Error:_Could_not_create_directory__s:__s
call fcn.004407e0
add esp, 0xc
jmp 0x458369
push esi
push str._c:_sources_OEM___Pantherunattend.xml
lea eax, [ebp - 0x158]
push 0x104
push eax
call fcn.00403820
mov ecx, dword [0x52b944]
lea edx, [ebp - 0x158]
add esp, 0xc
mov byte [ebp - 0x55], 0
call fcn.00447c00
add esp, 4
test eax, eax
jne 0x45832e
call fcn.00440bb0
push eax
lea eax, [ebp - 0x158]
push eax
push str.Could_not_create__s:__s
call fcn.004407e0
add esp, 0xc
jmp 0x458369
mov eax, str.Created__s
lea ecx, [ebp - 0x158]
push ecx
push eax
call fcn.004407e0
push 1
push 0
push 0xcf
push 0
push 0x67
mov edx, 0xcfd
mov ecx, 8
call fcn.004510c0
add esp, 0x1c
mov dword [ebp - 0x1b8], 1
mov eax, dword [ebp - 0x1a8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45837c
push eax
call esi
mov eax, dword [ebp - 0x1ac]
test eax, eax
je 0x458389
push eax
call esi
cmp dword [ebp - 0x1b0], 0
je 0x4583f4
push str.RUFUS_OFFLINE_HIVE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
test eax, eax
je 0x4583be
push eax
call edi
call fcn.00440bb0
push eax
push str.Could_not_unmount_offline_registry_hive:__s
call fcn.004407e0
add esp, 8
jmp 0x4583d5
push str.RUFUS_OFFLINE_HIVE
push str.HKLM
push str.Unmounted_offline_registry_hive__s_s
call fcn.004407e0
add esp, 0xc
push 1
push 0
push 0xcf
push 0
push 0x68
mov edx, 0xcfd
mov ecx, 8
call fcn.004510c0
add esp, 0x14
test ebx, ebx
je 0x458441
mov esi, dword [ebp - 0x1b4]
lea eax, [ebp - 0x18]
push esi
push eax
push str.Unmounting__s__d_...
call fcn.004407e0
add esp, 0xc
lea ecx, [ebp - 0x18]
mov edx, esi
push 1
call fcn.00453410
add esp, 4
mov edx, 0xcfd
mov ecx, 8
push 0
push 0
push 0xcf
push 0
push 0xcf
call fcn.004510c0
add esp, 0x14
push ebx
call fcn.004998ec
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x1b8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret