Function at 0x42f993
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa0fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x858
mov dword [ebp - 0x864], ecx
lea ecx, [ebp - 0x1c]
call fcn.004e3ec0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
push 0x200
call fcn.004bf27e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x42fa1e
push 0
push 0x524498
push str.Cant_allocate_memory_to_generate_CID_binary_file
mov ecx, dword [ebp - 0x864]
call fcn.004e07ce
mov dword [ebp - 0x850], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004e3fb5
mov eax, dword [ebp - 0x850]
jmp 0x42fd9e
push 0x200
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004be790
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004be790
add esp, 0xc
mov edx, dword [ebp - 0x864]
add edx, 0x5b0
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004be9f0
add esp, 8
push 0x5244d4
lea ecx, [ebp - 0x228]
push ecx
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x638]
push edx
call fcn.004be790
add esp, 0xc
push 0x10
push 0x5433d0
lea eax, [ebp - 0x638]
push eax
call fcn.004bee30
add esp, 0xc
movsx ecx, byte [ebp - 0x638]
test ecx, ecx
jne 0x42fac2
push 0x5244e0
lea edx, [ebp - 0x638]
push edx
call fcn.004be9f0
add esp, 8
cmp dword [0x5433b8], 0
je 0x42fb2e
push 0x5244e8
lea eax, [ebp - 0x638]
push eax
call fcn.004bea00
add esp, 8
mov ecx, dword [ebp - 0x864]
add ecx, 0x2d6
push ecx
lea edx, [ebp - 0x638]
push edx
call fcn.004bea00
add esp, 8
movsx eax, byte [0x5433b4]
test eax, eax
je 0x42fb2e
push 0x5244ec
lea ecx, [ebp - 0x638]
push ecx
call fcn.004bea00
add esp, 8
push 0x5433b4
lea edx, [ebp - 0x638]
push edx
call fcn.004bea00
add esp, 8
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004bea00
add esp, 8
push str.CIDtable.bin
lea edx, [ebp - 0x228]
push edx
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.004be790
add esp, 0xc
mov ecx, dword [ebp - 0x864]
add ecx, 0x5b0
push ecx
lea edx, [ebp - 0x430]
push edx
call fcn.004be9f0
add esp, 8
push 0x524500
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 0x42fc49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x640], eax
push 0x208
push 0
lea eax, [ebp - 0x848]
push eax
call fcn.004be790
add esp, 0xc
mov ecx, dword [ebp - 0x640]
push ecx
lea edx, [ebp - 0x638]
push edx
push str.Cant_copy_file_from_.Firmware_sCIDtable.bin_to_.DriveSettingMP_CIDtable.bin__errorcode___d
lea eax, [ebp - 0x848]
push eax
call fcn.004bec9d
add esp, 0x10
push 0
push 0x524584
lea ecx, [ebp - 0x848]
push ecx
mov ecx, dword [ebp - 0x864]
call fcn.004e07ce
mov edx, dword [ebp - 0x20]
push edx
call fcn.004bf16d
add esp, 4
mov dword [ebp - 0x854], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004e3fb5
mov eax, dword [ebp - 0x854]
jmp 0x42fd9e
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x84c], eax
cmp dword [ebp - 0x84c], 0xffffffff
jne 0x42fcd4
push 0x208
push 0
lea ecx, [ebp - 0x848]
push ecx
call fcn.004be790
add esp, 0xc
push 0
push 0x52458c
push str.Cant_open_.DriveSettingMP_CIDtable.bin__please_check.
mov ecx, dword [ebp - 0x864]
call fcn.004e07ce
mov edx, dword [ebp - 0x20]
push edx
call fcn.004bf16d
add esp, 4
mov dword [ebp - 0x858], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004e3fb5
mov eax, dword [ebp - 0x858]
jmp 0x42fd9e
mov eax, dword [ebp - 0x84c]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
call fcn.004e436c
mov dword [ebp - 0x63c], eax
mov ecx, dword [ebp - 0x63c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004e418f
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x864]
call fcn.0042fdac
test eax, eax
jne 0x42fd4b
mov ecx, dword [ebp - 0x84c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call fcn.004bf16d
add esp, 4
mov dword [ebp - 0x85c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004e3fb5
mov eax, dword [ebp - 0x85c]
jmp 0x42fd9e
lea ecx, [ebp - 0x1c]
call fcn.00432bd0
mov eax, dword [ebp - 0x63c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004e41c9
mov edx, dword [ebp - 0x84c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call fcn.004bf16d
add esp, 4
mov dword [ebp - 0x860], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004e3fb5
mov eax, dword [ebp - 0x860]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret