Function at 0x425022
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524bff
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.0050ef40
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
push 0x200
call fcn.004e9f6e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4250ad
push 0
push 0x54daa0
push str.Cant_allocate_memory_to_generate_CID_binary_file
mov ecx, dword [ebp - 0x864]
call fcn.0050b84e
mov dword [ebp - 0x850], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0050f035
mov eax, dword [ebp - 0x850]
jmp 0x42545b
push 0x200
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e9480
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004e9480
add esp, 0xc
mov edx, dword [ebp - 0x864]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004e96e0
add esp, 8
push 0x54dadc
lea ecx, [ebp - 0x228]
push ecx
call fcn.004e96f0
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x638]
push edx
call fcn.004e9480
add esp, 0xc
push 0x10
push 0x56e380
lea eax, [ebp - 0x638]
push eax
call fcn.004e9b20
add esp, 0xc
movsx ecx, byte [ebp - 0x638]
test ecx, ecx
jne 0x42517f
cmp dword [0x56d5d0], 0x979
jne 0x42515f
push 0x54dae8
lea edx, [ebp - 0x638]
push edx
call fcn.004e96e0
add esp, 8
jmp 0x42517f
cmp dword [0x56d5d0], 0x97a
jne 0x42517f
push 0x54daf0
lea eax, [ebp - 0x638]
push eax
call fcn.004e96e0
add esp, 8
cmp dword [0x56e36c], 0
je 0x4251eb
push 0x54daf8
lea ecx, [ebp - 0x638]
push ecx
call fcn.004e96f0
add esp, 8
mov edx, dword [ebp - 0x864]
add edx, 0x2d6
push edx
lea eax, [ebp - 0x638]
push eax
call fcn.004e96f0
add esp, 8
movsx ecx, byte [0x56e360]
test ecx, ecx
je 0x4251eb
push 0x54dafc
lea edx, [ebp - 0x638]
push edx
call fcn.004e96f0
add esp, 8
push 0x56e360
lea eax, [ebp - 0x638]
push eax
call fcn.004e96f0
add esp, 8
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.004e96f0
add esp, 8
push str.CIDtable.bin
lea eax, [ebp - 0x228]
push eax
call fcn.004e96f0
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.004e9480
add esp, 0xc
mov edx, dword [ebp - 0x864]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.004e96e0
add esp, 8
push 0x54db10
lea ecx, [ebp - 0x430]
push ecx
call fcn.004e96f0
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 0x425306
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x640], eax
push 0x208
push 0
lea ecx, [ebp - 0x848]
push ecx
call fcn.004e9480
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.004e998d
add esp, 0x10
push 0
push 0x54db94
lea edx, [ebp - 0x848]
push edx
mov ecx, dword [ebp - 0x864]
call fcn.0050b84e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e9e5d
add esp, 4
mov dword [ebp - 0x854], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0050f035
mov eax, dword [ebp - 0x854]
jmp 0x42545b
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 0x425391
push 0x208
push 0
lea edx, [ebp - 0x848]
push edx
call fcn.004e9480
add esp, 0xc
push 0
push 0x54db9c
push str.Cant_open_.DriveSettingMP_CIDtable.bin__please_check.
mov ecx, dword [ebp - 0x864]
call fcn.0050b84e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e9e5d
add esp, 4
mov dword [ebp - 0x858], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0050f035
mov eax, dword [ebp - 0x858]
jmp 0x42545b
mov ecx, dword [ebp - 0x84c]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.0050f3ec
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.0050f20f
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x864]
call fcn.00425469
test eax, eax
jne 0x425408
mov edx, dword [ebp - 0x84c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e9e5d
add esp, 4
mov dword [ebp - 0x85c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0050f035
mov eax, dword [ebp - 0x85c]
jmp 0x42545b
lea ecx, [ebp - 0x1c]
call fcn.004274b0
mov ecx, dword [ebp - 0x63c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0050f249
mov eax, dword [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004e9e5d
add esp, 4
mov dword [ebp - 0x860], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0050f035
mov eax, dword [ebp - 0x860]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret