Function at 0x42e202
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4987
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.004de760
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
push 0x200
call fcn.004b9b1e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x42e28d
push 0
push 0x51dff8
push str.Cant_allocate_memory_to_generate_CID_binary_file
mov ecx, dword [ebp - 0x864]
call fcn.004db06e
mov dword [ebp - 0x850], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004de855
mov eax, dword [ebp - 0x850]
jmp 0x42e63b
push 0x200
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b9030
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x864]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004b9290
add esp, 8
push 0x51e034
lea ecx, [ebp - 0x228]
push ecx
call fcn.004b92a0
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x638]
push edx
call fcn.004b9030
add esp, 0xc
push 0x10
push 0x53c240
lea eax, [ebp - 0x638]
push eax
call fcn.004b96d0
add esp, 0xc
movsx ecx, byte [ebp - 0x638]
test ecx, ecx
jne 0x42e35f
cmp dword [0x53b4b8], 0x979
jne 0x42e33f
push 0x51e040
lea edx, [ebp - 0x638]
push edx
call fcn.004b9290
add esp, 8
jmp 0x42e35f
cmp dword [0x53b4b8], 0x97a
jne 0x42e35f
push 0x51e048
lea eax, [ebp - 0x638]
push eax
call fcn.004b9290
add esp, 8
cmp dword [0x53c228], 0
je 0x42e3cb
push 0x51e050
lea ecx, [ebp - 0x638]
push ecx
call fcn.004b92a0
add esp, 8
mov edx, dword [ebp - 0x864]
add edx, 0x2d6
push edx
lea eax, [ebp - 0x638]
push eax
call fcn.004b92a0
add esp, 8
movsx ecx, byte [0x53c224]
test ecx, ecx
je 0x42e3cb
push 0x51e054
lea edx, [ebp - 0x638]
push edx
call fcn.004b92a0
add esp, 8
push 0x53c224
lea eax, [ebp - 0x638]
push eax
call fcn.004b92a0
add esp, 8
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.004b92a0
add esp, 8
push str.CIDtable.bin
lea eax, [ebp - 0x228]
push eax
call fcn.004b92a0
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x864]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004b9290
add esp, 8
push 0x51e068
lea ecx, [ebp - 0x430]
push ecx
call fcn.004b92a0
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 0x42e4e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x640], eax
push 0x208
push 0
lea ecx, [ebp - 0x848]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x640]
push edx
lea eax, [ebp - 0x638]
push eax
push str.Cant_copy_file_from_.Firmware_sCIDtable.bin_to_.DriveSettingMP_CIDtable.bin__errorcode___d
lea ecx, [ebp - 0x848]
push ecx
call fcn.004b953d
add esp, 0x10
push 0
push 0x51e0ec
lea edx, [ebp - 0x848]
push edx
mov ecx, dword [ebp - 0x864]
call fcn.004db06e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b9a0d
add esp, 4
mov dword [ebp - 0x854], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004de855
mov eax, dword [ebp - 0x854]
jmp 0x42e63b
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x84c], eax
cmp dword [ebp - 0x84c], 0xffffffff
jne 0x42e571
push 0x208
push 0
lea edx, [ebp - 0x848]
push edx
call fcn.004b9030
add esp, 0xc
push 0
push 0x51e0f4
push str.Cant_open_.DriveSettingMP_CIDtable.bin__please_check.
mov ecx, dword [ebp - 0x864]
call fcn.004db06e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b9a0d
add esp, 4
mov dword [ebp - 0x858], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004de855
mov eax, dword [ebp - 0x858]
jmp 0x42e63b
mov ecx, dword [ebp - 0x84c]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.004dec0c
mov dword [ebp - 0x63c], eax
mov edx, dword [ebp - 0x63c]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004dea2f
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x864]
call fcn.0042e649
test eax, eax
jne 0x42e5e8
mov edx, dword [ebp - 0x84c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b9a0d
add esp, 4
mov dword [ebp - 0x85c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004de855
mov eax, dword [ebp - 0x85c]
jmp 0x42e63b
lea ecx, [ebp - 0x1c]
call fcn.004311f0
mov ecx, dword [ebp - 0x63c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004dea69
mov eax, dword [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004b9a0d
add esp, 4
mov dword [ebp - 0x860], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004de855
mov eax, dword [ebp - 0x860]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret