Function at 0x42be16
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc64
mov dword [ebp - 0xc64], ecx
mov dword [ebp - 0x860], 0x5239b4
mov dword [ebp - 0x85c], 0x5239c0
mov dword [ebp - 0x858], 0x5239d0
mov dword [ebp - 0x20], str.ISP.bin
mov dword [ebp - 0x1c], str.MPISP.bin
mov dword [ebp - 0x18], str.BootISP.bin
mov dword [ebp - 0x14], str.MP_CIDtable.bin
mov dword [ebp - 0x10], str.MP_IDtable.bin
mov dword [ebp - 0xc], str.MPINFO_Final.bin
mov dword [ebp - 8], str.DriveSettingTable.bin
mov dword [ebp - 0x648], str.MPCID.bin
mov dword [ebp - 0x644], str.MPID.bin
mov dword [ebp - 0x640], 0x523a64
mov dword [ebp - 0x63c], str.MPDrvSet.bin
push 0x208
push 0
lea eax, [ebp - 0x638]
push eax
call fcn.004be790
add esp, 0xc
mov ecx, dword [ebp - 0xc64]
add ecx, 0x5b0
push ecx
lea edx, [ebp - 0x638]
push edx
call fcn.004be9f0
add esp, 8
push str.Linux_File_
lea eax, [ebp - 0x638]
push eax
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x854]
push ecx
call fcn.004be790
add esp, 0xc
mov edx, dword [ebp - 0xc64]
add edx, 0x5b0
push edx
lea eax, [ebp - 0x854]
push eax
call fcn.004be9f0
add esp, 8
push 0x523a90
lea ecx, [ebp - 0x854]
push ecx
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.004be790
add esp, 0xc
push 0x10
push 0x5433d0
lea eax, [ebp - 0x228]
push eax
call fcn.004bee30
add esp, 0xc
movsx ecx, byte [ebp - 0x228]
test ecx, ecx
jne 0x42bf73
push 0x523a9c
lea edx, [ebp - 0x228]
push edx
call fcn.004be9f0
add esp, 8
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x854]
push ecx
call fcn.004bea00
add esp, 8
push 0x523aa4
lea edx, [ebp - 0x854]
push edx
call fcn.004bea00
add esp, 8
cmp dword [0x5433b8], 0
je 0x42bfd5
mov eax, dword [ebp - 0xc64]
add eax, 0x2d6
push eax
lea ecx, [ebp - 0x854]
push ecx
call fcn.004bea00
add esp, 8
push 0x523aa8
lea edx, [ebp - 0x854]
push edx
call fcn.004bea00
add esp, 8
mov dword [ebp - 0x64c], 0
jmp 0x42bff0
mov eax, dword [ebp - 0x64c]
add eax, 1
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 3
jge 0x42c143
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004be790
add esp, 0xc
lea edx, [ebp - 0x854]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004be9f0
add esp, 8
cmp dword [ebp - 0x64c], 0
jne 0x42c065
movsx ecx, byte [0x5433b4]
test ecx, ecx
je 0x42c065
push 0x5433b4
lea edx, [ebp - 0x228]
push edx
call fcn.004bea00
add esp, 8
push 0x523aac
lea eax, [ebp - 0x228]
push eax
call fcn.004bea00
add esp, 8
mov ecx, dword [ebp - 0x64c]
mov edx, dword [ebp + ecx*4 - 0x860]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.004be790
add esp, 0xc
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004be9f0
add esp, 8
mov ecx, dword [ebp - 0x64c]
mov edx, dword [ebp + ecx*4 - 0x20]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004bea00
add esp, 8
push 0
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42c13e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x400
push 0
lea eax, [ebp - 0xc60]
push eax
call fcn.004be790
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x523ab0
lea ecx, [ebp - 0xc60]
push ecx
call fcn.004bec9d
add esp, 0x14
push 0
push 0
lea edx, [ebp - 0xc60]
push edx
call fcn.004ea4a1
xor eax, eax
jmp 0x42c549
jmp 0x42bfe1
push 0x208
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.004be790
add esp, 0xc
mov ecx, dword [ebp - 0xc64]
add ecx, 0x5b0
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.004be9f0
add esp, 8
push str.DriveSettingNew_ISP.bin
lea eax, [ebp - 0x228]
push eax
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.004be790
add esp, 0xc
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004be9f0
add esp, 8
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x430]
push edx
call fcn.004bea00
add esp, 8
push 0
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42c23e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x400
push 0
lea edx, [ebp - 0xc60]
push edx
call fcn.004be790
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 4]
push edx
push str.Cant_create_FW_bun_file_to_Linux_Folder_1___errorcode___d_r_nTrg___s_r_nSrc___s
lea eax, [ebp - 0xc60]
push eax
call fcn.004bec9d
add esp, 0x14
push 0
push 0
lea ecx, [ebp - 0xc60]
push ecx
call fcn.004ea4a1
xor eax, eax
jmp 0x42c549
push 0x208
push 0
lea edx, [ebp - 0x854]
push edx
call fcn.004be790
add esp, 0xc
mov eax, dword [ebp - 0xc64]
add eax, 0x5b0
push eax
lea ecx, [ebp - 0x854]
push ecx
call fcn.004be9f0
add esp, 8
push str.DriveSetting_
lea edx, [ebp - 0x854]
push edx
call fcn.004bea00
add esp, 8
mov dword [ebp - 0x64c], 0
jmp 0x42c29e
mov eax, dword [ebp - 0x64c]
add eax, 1
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 4
jge 0x42c3b5
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004be790
add esp, 0xc
lea edx, [ebp - 0x854]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004be9f0
add esp, 8
mov ecx, dword [ebp - 0x64c]
mov edx, dword [ebp + ecx*4 - 0x14]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.004be790
add esp, 0xc
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004be9f0
add esp, 8
mov ecx, dword [ebp - 0x64c]
mov edx, dword [ebp + ecx*4 - 0x648]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004bea00
add esp, 8
push 0
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42c3b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x400
push 0
lea eax, [ebp - 0xc60]
push eax
call fcn.004be790
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 4]
push eax
push str.Cant_create_Setting_file_to_Linux_Folder__errorcode___d_r_nTrg___s_r_nSrc___s
lea ecx, [ebp - 0xc60]
push ecx
call fcn.004bec9d
add esp, 0x14
push 0
push 0
lea edx, [ebp - 0xc60]
push edx
call fcn.004ea4a1
xor eax, eax
jmp 0x42c549
jmp 0x42c28f
push 0x208
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.004be790
add esp, 0xc
lea ecx, [ebp - 0x854]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.004be9f0
add esp, 8
push 0x523bcc
lea eax, [ebp - 0x228]
push eax
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.004be790
add esp, 0xc
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004be9f0
add esp, 8
push str.FlashID.bin
lea ecx, [ebp - 0x430]
push ecx
call fcn.004bea00
add esp, 8
push 0
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004be790
add esp, 0xc
mov edx, dword [ebp - 0xc64]
add edx, 0x5b0
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004be9f0
add esp, 8
push 0x523be4
lea ecx, [ebp - 0x228]
push ecx
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x430]
push edx
call fcn.004be790
add esp, 0xc
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.004be9f0
add esp, 8
push str.SeedTable.bin
lea edx, [ebp - 0x430]
push edx
call fcn.004bea00
add esp, 8
push 0
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42c544
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x400
push 0
lea edx, [ebp - 0xc60]
push edx
call fcn.004be790
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 4]
push edx
push str.Cant_create_SeedTable_to_Linux_Folder__errorcode___d_r_nTrg___s_r_nSrc___s
lea eax, [ebp - 0xc60]
push eax
call fcn.004bec9d
add esp, 0x14
push 0
push 0
lea ecx, [ebp - 0xc60]
push ecx
call fcn.004ea4a1
xor eax, eax
jmp 0x42c549
mov eax, 1
mov esp, ebp
pop ebp
ret