Function at 0x42b11b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9311
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.004d3300
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
push 0x200
call fcn.004ae6be
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x42b1a6
push 0
push 0x51133c
push str.Cant_allocate_memory_to_generate_CID_binary_file
mov ecx, dword [ebp - 0x864]
call fcn.004cfc0e
mov dword [ebp - 0x850], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d33f5
mov eax, dword [ebp - 0x850]
jmp 0x42b554
push 0x200
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004adbd0
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004adbd0
add esp, 0xc
mov edx, dword [ebp - 0x864]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004ade30
add esp, 8
push 0x511378
lea ecx, [ebp - 0x228]
push ecx
call fcn.004ade40
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x638]
push edx
call fcn.004adbd0
add esp, 0xc
push 0x10
push 0x52df50
lea eax, [ebp - 0x638]
push eax
call fcn.004ae270
add esp, 0xc
movsx ecx, byte [ebp - 0x638]
test ecx, ecx
jne 0x42b278
cmp dword [0x52d238], 0x979
jne 0x42b258
push 0x511384
lea edx, [ebp - 0x638]
push edx
call fcn.004ade30
add esp, 8
jmp 0x42b278
cmp dword [0x52d238], 0x97a
jne 0x42b278
push 0x51138c
lea eax, [ebp - 0x638]
push eax
call fcn.004ade30
add esp, 8
cmp dword [0x52df3c], 0
je 0x42b2e4
push 0x511394
lea ecx, [ebp - 0x638]
push ecx
call fcn.004ade40
add esp, 8
mov edx, dword [ebp - 0x864]
add edx, 0x2d6
push edx
lea eax, [ebp - 0x638]
push eax
call fcn.004ade40
add esp, 8
movsx ecx, byte [0x52df38]
test ecx, ecx
je 0x42b2e4
push 0x511398
lea edx, [ebp - 0x638]
push edx
call fcn.004ade40
add esp, 8
push 0x52df38
lea eax, [ebp - 0x638]
push eax
call fcn.004ade40
add esp, 8
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.004ade40
add esp, 8
push str.CIDtable.bin
lea eax, [ebp - 0x228]
push eax
call fcn.004ade40
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.004adbd0
add esp, 0xc
mov edx, dword [ebp - 0x864]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004ade30
add esp, 8
push 0x5113ac
lea ecx, [ebp - 0x430]
push ecx
call fcn.004ade40
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 0x42b3ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x640], eax
push 0x208
push 0
lea ecx, [ebp - 0x848]
push ecx
call fcn.004adbd0
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.004ae0dd
add esp, 0x10
push 0
push 0x511430
lea edx, [ebp - 0x848]
push edx
mov ecx, dword [ebp - 0x864]
call fcn.004cfc0e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004ae5ad
add esp, 4
mov dword [ebp - 0x854], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d33f5
mov eax, dword [ebp - 0x854]
jmp 0x42b554
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 0x42b48a
push 0x208
push 0
lea edx, [ebp - 0x848]
push edx
call fcn.004adbd0
add esp, 0xc
push 0
push 0x511438
push str.Cant_open_.DriveSettingMP_CIDtable.bin__please_check.
mov ecx, dword [ebp - 0x864]
call fcn.004cfc0e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004ae5ad
add esp, 4
mov dword [ebp - 0x858], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d33f5
mov eax, dword [ebp - 0x858]
jmp 0x42b554
mov ecx, dword [ebp - 0x84c]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.004d37ac
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.004d35cf
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x864]
call fcn.0042b562
test eax, eax
jne 0x42b501
mov edx, dword [ebp - 0x84c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call fcn.004ae5ad
add esp, 4
mov dword [ebp - 0x85c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d33f5
mov eax, dword [ebp - 0x85c]
jmp 0x42b554
lea ecx, [ebp - 0x1c]
call fcn.0042d9d0
mov ecx, dword [ebp - 0x63c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004d3609
mov eax, dword [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004ae5ad
add esp, 4
mov dword [ebp - 0x860], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004d33f5
mov eax, dword [ebp - 0x860]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret