Function at 0x421790
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc64
mov dword [ebp - 0xc64], ecx
mov dword [ebp - 0x860], 0x54beb4
mov dword [ebp - 0x85c], 0x54bec0
mov dword [ebp - 0x858], 0x54bed0
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], 0x54bf64
mov dword [ebp - 0x63c], str.MPDrvSet.bin
push 0x208
push 0
lea eax, [ebp - 0x638]
push eax
call fcn.004e8440
add esp, 0xc
mov ecx, dword [ebp - 0xc64]
add ecx, 0x86
push ecx
lea edx, [ebp - 0x638]
push edx
call fcn.004e86a0
add esp, 8
push str.Linux_File_
lea eax, [ebp - 0x638]
push eax
call fcn.004e86b0
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x854]
push ecx
call fcn.004e8440
add esp, 0xc
mov edx, dword [ebp - 0xc64]
add edx, 0x86
push edx
lea eax, [ebp - 0x854]
push eax
call fcn.004e86a0
add esp, 8
push 0x54bf90
lea ecx, [ebp - 0x854]
push ecx
call fcn.004e86b0
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.004e8440
add esp, 0xc
push 0x10
push 0x56ceec
lea eax, [ebp - 0x228]
push eax
call fcn.004e8ae0
add esp, 0xc
movsx ecx, byte [ebp - 0x228]
test ecx, ecx
jne 0x42191b
cmp dword [0x56c138], 0x979
jne 0x4218fb
push 0x54bf9c
lea edx, [ebp - 0x228]
push edx
call fcn.004e86a0
add esp, 8
jmp 0x42191b
cmp dword [0x56c138], 0x97a
jne 0x42191b
push 0x54bfa4
lea eax, [ebp - 0x228]
push eax
call fcn.004e86a0
add esp, 8
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x854]
push edx
call fcn.004e86b0
add esp, 8
push 0x54bfac
lea eax, [ebp - 0x854]
push eax
call fcn.004e86b0
add esp, 8
cmp dword [0x56ced8], 0
je 0x42197e
mov ecx, dword [ebp - 0xc64]
add ecx, 0xb01c
push ecx
lea edx, [ebp - 0x854]
push edx
call fcn.004e86b0
add esp, 8
push 0x54bfb0
lea eax, [ebp - 0x854]
push eax
call fcn.004e86b0
add esp, 8
mov dword [ebp - 0x64c], 0
jmp 0x421999
mov ecx, dword [ebp - 0x64c]
add ecx, 1
mov dword [ebp - 0x64c], ecx
cmp dword [ebp - 0x64c], 3
jge 0x421ae5
push 0x208
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.004e8440
add esp, 0xc
lea eax, [ebp - 0x854]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004e86a0
add esp, 8
cmp dword [ebp - 0x64c], 0
jne 0x421a0e
movsx edx, byte [0x56cecc]
test edx, edx
je 0x421a0e
push 0x56cecc
lea eax, [ebp - 0x228]
push eax
call fcn.004e86b0
add esp, 8
push 0x54bfb4
lea ecx, [ebp - 0x228]
push ecx
call fcn.004e86b0
add esp, 8
mov edx, dword [ebp - 0x64c]
mov eax, dword [ebp + edx*4 - 0x860]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004e86b0
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x430]
push edx
call fcn.004e8440
add esp, 0xc
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.004e86a0
add esp, 8
mov edx, dword [ebp - 0x64c]
mov eax, dword [ebp + edx*4 - 0x20]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.004e86b0
add esp, 8
push 0
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x421ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x400
push 0
lea ecx, [ebp - 0xc60]
push ecx
call fcn.004e8440
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x430]
push eax
push 0x54bfb8
lea ecx, [ebp - 0xc60]
push ecx
call fcn.004e894d
add esp, 0x10
push 0
push 0
lea edx, [ebp - 0xc60]
push edx
call fcn.005144e1
xor eax, eax
jmp 0x421d4d
jmp 0x42198a
push 0x208
push 0
lea eax, [ebp - 0x854]
push eax
call fcn.004e8440
add esp, 0xc
mov ecx, dword [ebp - 0xc64]
add ecx, 0x86
push ecx
lea edx, [ebp - 0x854]
push edx
call fcn.004e86a0
add esp, 8
push str.DriveSetting_
lea eax, [ebp - 0x854]
push eax
call fcn.004e86b0
add esp, 8
mov dword [ebp - 0x64c], 0
jmp 0x421b46
mov ecx, dword [ebp - 0x64c]
add ecx, 1
mov dword [ebp - 0x64c], ecx
cmp dword [ebp - 0x64c], 4
jge 0x421c56
push 0x208
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.004e8440
add esp, 0xc
lea eax, [ebp - 0x854]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004e86a0
add esp, 8
mov edx, dword [ebp - 0x64c]
mov eax, dword [ebp + edx*4 - 0x14]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004e86b0
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x430]
push edx
call fcn.004e8440
add esp, 0xc
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.004e86a0
add esp, 8
mov edx, dword [ebp - 0x64c]
mov eax, dword [ebp + edx*4 - 0x648]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.004e86b0
add esp, 8
push 0
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x421c51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x400
push 0
lea ecx, [ebp - 0xc60]
push ecx
call fcn.004e8440
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x430]
push eax
push 0x54c000
lea ecx, [ebp - 0xc60]
push ecx
call fcn.004e894d
add esp, 0x10
push 0
push 0
lea edx, [ebp - 0xc60]
push edx
call fcn.005144e1
xor eax, eax
jmp 0x421d4d
jmp 0x421b37
push 0x208
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.004e8440
add esp, 0xc
mov ecx, dword [ebp - 0xc64]
add ecx, 0x86
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.004e86a0
add esp, 8
push 0x54c038
lea eax, [ebp - 0x228]
push eax
call fcn.004e86b0
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.004e8440
add esp, 0xc
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004e86a0
add esp, 8
push str.SeedTable.bin
lea ecx, [ebp - 0x430]
push ecx
call fcn.004e86b0
add esp, 8
push 0
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x421d48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x400
push 0
lea ecx, [ebp - 0xc60]
push ecx
call fcn.004e8440
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x430]
push eax
push str.Cant_create__s_file_to_Linux_Folder__errorcode___d
lea ecx, [ebp - 0xc60]
push ecx
call fcn.004e894d
add esp, 0x10
push 0
push 0
lea edx, [ebp - 0xc60]
push edx
call fcn.005144e1
xor eax, eax
jmp 0x421d4d
mov eax, 1
mov esp, ebp
pop ebp
ret