Function at 0x42ad6e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5411
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.004cf400
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
push 0x200
call fcn.004aa7be
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x42adf9
push 0
push 0x50d2b8
push str.Cant_allocate_memory_to_generate_CID_binary_file
mov ecx, dword [ebp - 0x864]
call fcn.004cbd0e
mov dword [ebp - 0x850], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004cf4f5
mov eax, dword [ebp - 0x850]
jmp 0x42b1a7
push 0x200
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004a9cd0
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004a9cd0
add esp, 0xc
mov edx, dword [ebp - 0x864]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004a9f30
add esp, 8
push 0x50d2f4
lea ecx, [ebp - 0x228]
push ecx
call fcn.004a9f40
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x638]
push edx
call fcn.004a9cd0
add esp, 0xc
push 0x10
push 0x529200
lea eax, [ebp - 0x638]
push eax
call fcn.004aa370
add esp, 0xc
movsx ecx, byte [ebp - 0x638]
test ecx, ecx
jne 0x42aecb
cmp dword [0x5284f8], 0x979
jne 0x42aeab
push 0x50d300
lea edx, [ebp - 0x638]
push edx
call fcn.004a9f30
add esp, 8
jmp 0x42aecb
cmp dword [0x5284f8], 0x97a
jne 0x42aecb
push 0x50d308
lea eax, [ebp - 0x638]
push eax
call fcn.004a9f30
add esp, 8
cmp dword [0x5291ec], 0
je 0x42af37
push 0x50d310
lea ecx, [ebp - 0x638]
push ecx
call fcn.004a9f40
add esp, 8
mov edx, dword [ebp - 0x864]
add edx, 0x2d6
push edx
lea eax, [ebp - 0x638]
push eax
call fcn.004a9f40
add esp, 8
movsx ecx, byte [0x5291e8]
test ecx, ecx
je 0x42af37
push 0x50d314
lea edx, [ebp - 0x638]
push edx
call fcn.004a9f40
add esp, 8
push 0x5291e8
lea eax, [ebp - 0x638]
push eax
call fcn.004a9f40
add esp, 8
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.004a9f40
add esp, 8
push str.CIDtable.bin
lea eax, [ebp - 0x228]
push eax
call fcn.004a9f40
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.004a9cd0
add esp, 0xc
mov edx, dword [ebp - 0x864]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004a9f30
add esp, 8
push 0x50d328
lea ecx, [ebp - 0x430]
push ecx
call fcn.004a9f40
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 0x42b052
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x640], eax
push 0x208
push 0
lea ecx, [ebp - 0x848]
push ecx
call fcn.004a9cd0
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.004aa1dd
add esp, 0x10
push 0
push 0x50d3ac
lea edx, [ebp - 0x848]
push edx
mov ecx, dword [ebp - 0x864]
call fcn.004cbd0e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004aa6ad
add esp, 4
mov dword [ebp - 0x854], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004cf4f5
mov eax, dword [ebp - 0x854]
jmp 0x42b1a7
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 0x42b0dd
push 0x208
push 0
lea edx, [ebp - 0x848]
push edx
call fcn.004a9cd0
add esp, 0xc
push 0
push 0x50d3b4
push str.Cant_open_.DriveSettingMP_CIDtable.bin__please_check.
mov ecx, dword [ebp - 0x864]
call fcn.004cbd0e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004aa6ad
add esp, 4
mov dword [ebp - 0x858], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004cf4f5
mov eax, dword [ebp - 0x858]
jmp 0x42b1a7
mov ecx, dword [ebp - 0x84c]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.004cf8ac
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.004cf6cf
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x864]
call fcn.0042b1b5
test eax, eax
jne 0x42b154
mov edx, dword [ebp - 0x84c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call fcn.004aa6ad
add esp, 4
mov dword [ebp - 0x85c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004cf4f5
mov eax, dword [ebp - 0x85c]
jmp 0x42b1a7
lea ecx, [ebp - 0x1c]
call fcn.0042d620
mov ecx, dword [ebp - 0x63c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004cf709
mov eax, dword [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004aa6ad
add esp, 4
mov dword [ebp - 0x860], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004cf4f5
mov eax, dword [ebp - 0x860]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret