Function at 0x40a3a6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x27c
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x22c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x25c], 0xffffffff
mov edx, eax
mov al, 0
mov ecx, dword [ebp - 0x25c]
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x22c]
add eax, edx
mov word [eax], 0x2f
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x22c]
mov dword [esp], eax
call fcn.005a0e90
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x25c], 0xffffffff
mov edx, eax
mov al, 0
mov ecx, dword [ebp - 0x25c]
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x22c]
add eax, edx
mov edx, eax
mov ebx, str._Manifest.mbdb
mov eax, 0xf
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 8], 6
mov dword [esp + 4], str.mbdb
lea eax, [ebp - 0x22c]
mov dword [esp], eax
call fcn.004064ca
test eax, eax
jns 0x40a4a4
lea eax, [ebp - 0x22c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Could_not_write_file__s__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 0xffffffff
jmp 0x40a867
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004046a4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40a4f1
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_could_not_open_backup_n
call sub.msvcrt.dll_fwrite
mov eax, 0xffffffff
jmp 0x40a867
mov dword [esp + 0x14], 0x1f5
mov dword [esp + 0x10], 0x1f5
mov dword [esp + 0xc], 0x1ed
mov dword [esp + 8], str.Media
mov dword [esp + 4], str.MediaDomain
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0040a135
test eax, eax
jns 0x40a55a
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Couldnt_add_dir_to_backup_n
call sub.msvcrt.dll_fwrite
mov eax, 0xffffffff
jmp 0x40a867
mov dword [esp + 0x14], 0x1f5
mov dword [esp + 0x10], 0x1f5
mov dword [esp + 0xc], 0x1ed
mov dword [esp + 8], str.Media_Recordings
mov dword [esp + 4], str.MediaDomain
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0040a135
test eax, eax
jns 0x40a5c3
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Couldnt_add_dir_to_backup_n
call sub.msvcrt.dll_fwrite
mov eax, 0xffffffff
jmp 0x40a867
mov dword [esp + 0x14], 0x1f5
mov dword [esp + 0x10], 0x1f5
mov dword [esp + 0xc], str._var
mov dword [esp + 8], str.Media_Recordings_.haxx
mov dword [esp + 4], str.MediaDomain
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0040a267
test eax, eax
jns 0x40a62c
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 1
mov dword [esp], str.Couldnt_add_file_to_backup_n
call sub.msvcrt.dll_fwrite
mov eax, 0xffffffff
jmp 0x40a867
mov dword [esp], 0
call fcn.004056ca
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40a766
mov dword [esp + 4], str.MediaDomain
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405b88
mov dword [esp + 4], str.Media_Recordings_.haxx_backup
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405bad
mov dword [esp + 8], 1
mov dword [esp + 4], 0x672397
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405bf7
mov dword [esp + 4], 0xa1a4
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405e69
mov edx, dword [0x5f4198]
mov eax, edx
inc edx
mov dword [0x5f4198], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405e96
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405ebb
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405ee0
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405f05
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405f2a
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405f4f
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405fac
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00404b5a
test eax, eax
jns 0x40a754
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x40a75b
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00405b1f
cmp dword [ebp - 0x1c], 0
jns 0x40a79e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x24
mov dword [esp + 4], 1
mov dword [esp], str.Error:_Couldnt_add_file_to_backup__n
call sub.msvcrt.dll_fwrite
mov eax, 0xffffffff
jmp 0x40a867
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00405525
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00405618
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00408d47
test eax, eax
jns 0x40a7cd
mov eax, 0xffffffff
jmp 0x40a867
mov dword [ebp - 0x24c], str.idevicebackup2
mov dword [ebp - 0x248], 0x6723d0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0x6723d7
mov dword [ebp - 0x23c], 0x6723df
mov dword [ebp - 0x238], 0x6723e8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x2c], 7
mov dword [esp], 0x66
call fcn.004108d1
lea eax, [ebp - 0x24c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00410aac
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40a864
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.hmm..._restore_failed__d___n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0x1c]
jmp 0x40a867
mov eax, dword [ebp - 0x1c]
add esp, 0x27c
pop ebx
pop esi
pop edi
pop ebp
ret