Function at 0x42e66b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa0d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x880
mov dword [ebp - 0x888], ecx
lea ecx, [ebp - 0x1c]
call fcn.004e3ec0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
push 0x2000
call fcn.004bf27e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x42e6f6
push 0
push 0x5241cc
push str.Cant_allocate_memory_to_generate_MPINFO_binary_file
mov ecx, dword [ebp - 0x888]
call fcn.004e07ce
mov dword [ebp - 0x878], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004e3fb5
mov eax, dword [ebp - 0x878]
jmp 0x42ec7d
push 0x2000
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004be790
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004be790
add esp, 0xc
mov edx, dword [ebp - 0x888]
add edx, 0x5b0
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004be9f0
add esp, 8
push 0x52420c
lea ecx, [ebp - 0x228]
push ecx
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x65c]
push edx
call fcn.004be790
add esp, 0xc
push 0x10
push 0x5433d0
lea eax, [ebp - 0x65c]
push eax
call fcn.004bee30
add esp, 0xc
movsx ecx, byte [ebp - 0x65c]
test ecx, ecx
jne 0x42e79a
push 0x524218
lea edx, [ebp - 0x65c]
push edx
call fcn.004be9f0
add esp, 8
cmp dword [0x5433b8], 0
je 0x42e7d3
push 0x524220
lea eax, [ebp - 0x65c]
push eax
call fcn.004bea00
add esp, 8
mov ecx, dword [ebp - 0x888]
add ecx, 0x2d6
push ecx
lea edx, [ebp - 0x65c]
push edx
call fcn.004bea00
add esp, 8
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004bea00
add esp, 8
push str.MPINFO.bin
lea edx, [ebp - 0x228]
push edx
call fcn.004bea00
add esp, 8
push 0x208
push 0
lea eax, [ebp - 0x454]
push eax
call fcn.004be790
add esp, 0xc
mov ecx, dword [ebp - 0x888]
add ecx, 0x5b0
push ecx
lea edx, [ebp - 0x454]
push edx
call fcn.004be9f0
add esp, 8
push 0x524230
lea eax, [ebp - 0x454]
push eax
call fcn.004bea00
add esp, 8
push 0
lea ecx, [ebp - 0x454]
push ecx
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42e8ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x668], eax
push 0x208
push 0
lea eax, [ebp - 0x870]
push eax
call fcn.004be790
add esp, 0xc
mov ecx, dword [ebp - 0x668]
push ecx
lea edx, [ebp - 0x65c]
push edx
push str.Cant_copy_file_from_.Firmware_sMPINFO.bin_to_.DriveSettingMPINFO_Final.bin__errorcode___d
lea eax, [ebp - 0x870]
push eax
call fcn.004bec9d
add esp, 0x10
push 0
push 0x5242b4
lea ecx, [ebp - 0x870]
push ecx
mov ecx, dword [ebp - 0x888]
call fcn.004e07ce
mov edx, dword [ebp - 0x20]
push edx
call fcn.004bf16d
add esp, 4
mov dword [ebp - 0x87c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004e3fb5
mov eax, dword [ebp - 0x87c]
jmp 0x42ec7d
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x874], eax
cmp dword [ebp - 0x874], 0xffffffff
jne 0x42e979
push 0x208
push 0
lea ecx, [ebp - 0x870]
push ecx
call fcn.004be790
add esp, 0xc
push 0
push 0x5242bc
push str.Cant_open_.DriveSettingMPINFO_Final.bin__please_check.
mov ecx, dword [ebp - 0x888]
call fcn.004e07ce
mov edx, dword [ebp - 0x20]
push edx
call fcn.004bf16d
add esp, 4
mov dword [ebp - 0x880], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004e3fb5
mov eax, dword [ebp - 0x880]
jmp 0x42ec7d
mov eax, dword [ebp - 0x874]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
call fcn.004e436c
mov dword [ebp - 0x660], eax
mov ecx, dword [ebp - 0x660]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004e418f
push 0x14
mov eax, dword [ebp - 0x888]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
push ecx
call fcn.004bee30
add esp, 0xc
cmp dword [0x543068], 0
jne 0x42ea0c
mov dword [ebp - 0x664], 0
jmp 0x42e9e2
mov edx, dword [ebp - 0x664]
add edx, 1
mov dword [ebp - 0x664], edx
cmp dword [ebp - 0x664], 0x14
jge 0x42ea0c
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x664]
xor ecx, ecx
mov cl, byte [eax + 0x10]
test ecx, ecx
jne 0x42ea0a
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x664]
mov byte [edx + 0x10], 0x20
jmp 0x42e9d3
push 0x28
mov eax, dword [ebp - 0x888]
add eax, 0x11d10
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x70
push ecx
call fcn.004bee30
add esp, 0xc
mov dword [ebp - 0x664], 0
jmp 0x42ea44
mov edx, dword [ebp - 0x664]
add edx, 1
mov dword [ebp - 0x664], edx
cmp dword [ebp - 0x664], 0x28
jge 0x42ea6e
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x664]
xor ecx, ecx
mov cl, byte [eax + 0x70]
test ecx, ecx
jne 0x42ea6c
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x664]
mov byte [edx + 0x70], 0x20
jmp 0x42ea35
push 0x50
mov eax, dword [ebp - 0x888]
add eax, 0x1354
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xc0
push ecx
call fcn.004bee30
add esp, 0xc
mov edx, dword [ebp - 0x888]
cmp dword [edx + 0x11df0], 0
je 0x42eabf
push 0x10
mov eax, dword [ebp - 0x888]
add eax, 0x11df8
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x50
push ecx
call fcn.004bee30
add esp, 0xc
jmp 0x42eb93
mov edx, dword [ebp - 0x888]
cmp dword [edx + 0x11df4], 0
je 0x42eb93
push 0x21
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.004be790
add esp, 0xc
mov dword [ebp - 0x664], 0
jmp 0x42eb00
mov ecx, dword [ebp - 0x664]
add ecx, 1
mov dword [ebp - 0x664], ecx
cmp dword [ebp - 0x664], 0x10
jge 0x42eb60
push 0x208
push 0
lea edx, [ebp - 0x65c]
push edx
call fcn.004be790
add esp, 0xc
mov eax, dword [ebp - 0x888]
add eax, dword [ebp - 0x664]
xor ecx, ecx
mov cl, byte [eax + 0x11e09]
push ecx
push 0x524300
lea edx, [ebp - 0x65c]
push edx
call fcn.004bec9d
add esp, 0xc
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004bea00
add esp, 8
jmp 0x42eaf1
push 0x10
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x20]
add eax, 0x50
push eax
call fcn.004bee30
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0xb0
push edx
call fcn.004bee30
add esp, 0xc
cmp dword [0x543128], 0
je 0x42ebbc
push 0x20
mov eax, dword [ebp - 0x888]
add eax, 0xfd9
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x200
push ecx
call fcn.004bee30
add esp, 0xc
mov edx, dword [ebp - 0x888]
mov eax, dword [edx + 0x12198]
mov dword [ebp - 0x88c], eax
cmp dword [ebp - 0x88c], 4
ja case.default.0x42ebdd
mov ecx, dword [ebp - 0x88c]
jmp dword [ecx*4 + 0x42ec8b]
mov edx, dword [ebp - 0x20]
mov byte [edx + 0xa0], 3
jmp 0x42ec2a
mov eax, dword [ebp - 0x20]
mov byte [eax + 0xa0], 0
jmp 0x42ec2a
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0xa0], 6
jmp 0x42ec2a
mov edx, dword [ebp - 0x20]
mov byte [edx + 0xa0], 7
jmp 0x42ec2a
mov eax, dword [ebp - 0x20]
mov byte [eax + 0xa0], 9
jmp 0x42ec2a
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0xa0], 0
lea ecx, [ebp - 0x1c]
call fcn.00432bd0
mov edx, dword [ebp - 0x660]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004e41c9
mov ecx, dword [ebp - 0x874]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call fcn.004bf16d
add esp, 4
mov dword [ebp - 0x884], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004e3fb5
mov eax, dword [ebp - 0x884]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret