Function at 0x424753
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523b4f
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.0050df00
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
push 0x200
call fcn.004e8f2e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4247de
push 0
push 0x54c934
push str.Cant_allocate_memory_to_generate_CID_binary_file
mov ecx, dword [ebp - 0x864]
call fcn.0050a80e
mov dword [ebp - 0x850], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0050dff5
mov eax, dword [ebp - 0x850]
jmp 0x424b8c
push 0x200
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e8440
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004e8440
add esp, 0xc
mov edx, dword [ebp - 0x864]
add edx, 0x86
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004e86a0
add esp, 8
push 0x54c970
lea ecx, [ebp - 0x228]
push ecx
call fcn.004e86b0
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x638]
push edx
call fcn.004e8440
add esp, 0xc
push 0x10
push 0x56ceec
lea eax, [ebp - 0x638]
push eax
call fcn.004e8ae0
add esp, 0xc
movsx ecx, byte [ebp - 0x638]
test ecx, ecx
jne 0x4248b0
cmp dword [0x56c138], 0x979
jne 0x424890
push 0x54c97c
lea edx, [ebp - 0x638]
push edx
call fcn.004e86a0
add esp, 8
jmp 0x4248b0
cmp dword [0x56c138], 0x97a
jne 0x4248b0
push 0x54c984
lea eax, [ebp - 0x638]
push eax
call fcn.004e86a0
add esp, 8
cmp dword [0x56ced8], 0
je 0x42491c
push 0x54c98c
lea ecx, [ebp - 0x638]
push ecx
call fcn.004e86b0
add esp, 8
mov edx, dword [ebp - 0x864]
add edx, 0xb01c
push edx
lea eax, [ebp - 0x638]
push eax
call fcn.004e86b0
add esp, 8
movsx ecx, byte [0x56cecc]
test ecx, ecx
je 0x42491c
push 0x54c990
lea edx, [ebp - 0x638]
push edx
call fcn.004e86b0
add esp, 8
push 0x56cecc
lea eax, [ebp - 0x638]
push eax
call fcn.004e86b0
add esp, 8
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.004e86b0
add esp, 8
push str.CIDtable.bin
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
mov edx, dword [ebp - 0x864]
add edx, 0x86
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004e86a0
add esp, 8
push 0x54c9a4
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 0x424a37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x640], eax
push 0x208
push 0
lea ecx, [ebp - 0x848]
push ecx
call fcn.004e8440
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.004e894d
add esp, 0x10
push 0
push 0x54ca28
lea edx, [ebp - 0x848]
push edx
mov ecx, dword [ebp - 0x864]
call fcn.0050a80e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e8e1d
add esp, 4
mov dword [ebp - 0x854], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0050dff5
mov eax, dword [ebp - 0x854]
jmp 0x424b8c
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 0x424ac2
push 0x208
push 0
lea edx, [ebp - 0x848]
push edx
call fcn.004e8440
add esp, 0xc
push 0
push 0x54ca30
push str.Cant_open_.DriveSettingMP_CIDtable.bin__please_check.
mov ecx, dword [ebp - 0x864]
call fcn.0050a80e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e8e1d
add esp, 4
mov dword [ebp - 0x858], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0050dff5
mov eax, dword [ebp - 0x858]
jmp 0x424b8c
mov ecx, dword [ebp - 0x84c]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.0050e3ac
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.0050e1cf
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x864]
call fcn.00424b9a
test eax, eax
jne 0x424b39
mov edx, dword [ebp - 0x84c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e8e1d
add esp, 4
mov dword [ebp - 0x85c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0050dff5
mov eax, dword [ebp - 0x85c]
jmp 0x424b8c
lea ecx, [ebp - 0x1c]
call fcn.00426bb0
mov ecx, dword [ebp - 0x63c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0050e209
mov eax, dword [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004e8e1d
add esp, 4
mov dword [ebp - 0x860], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0050dff5
mov eax, dword [ebp - 0x860]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret