Function at 0x42ce40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4961
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.004de760
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
push 0x2000
call fcn.004b9b1e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x42cecb
push 0
push 0x51dc44
push str.Cant_allocate_memory_to_generate_MPINFO_binary_file
mov ecx, dword [ebp - 0x888]
call fcn.004db06e
mov dword [ebp - 0x878], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004de855
mov eax, dword [ebp - 0x878]
jmp 0x42d483
push 0x2000
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b9030
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x888]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004b9290
add esp, 8
push 0x51dc84
lea ecx, [ebp - 0x228]
push ecx
call fcn.004b92a0
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x65c]
push edx
call fcn.004b9030
add esp, 0xc
push 0x10
push 0x53c240
lea eax, [ebp - 0x65c]
push eax
call fcn.004b96d0
add esp, 0xc
movsx ecx, byte [ebp - 0x65c]
test ecx, ecx
jne 0x42cf9d
cmp dword [0x53b4b8], 0x979
jne 0x42cf7d
push 0x51dc90
lea edx, [ebp - 0x65c]
push edx
call fcn.004b9290
add esp, 8
jmp 0x42cf9d
cmp dword [0x53b4b8], 0x97a
jne 0x42cf9d
push 0x51dc98
lea eax, [ebp - 0x65c]
push eax
call fcn.004b9290
add esp, 8
cmp dword [0x53c228], 0
je 0x42cfd6
push 0x51dca0
lea ecx, [ebp - 0x65c]
push ecx
call fcn.004b92a0
add esp, 8
mov edx, dword [ebp - 0x888]
add edx, 0x2d6
push edx
lea eax, [ebp - 0x65c]
push eax
call fcn.004b92a0
add esp, 8
lea ecx, [ebp - 0x65c]
push ecx
lea edx, [ebp - 0x228]
push edx
call fcn.004b92a0
add esp, 8
push str.MPINFO.bin
lea eax, [ebp - 0x228]
push eax
call fcn.004b92a0
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x454]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x888]
add edx, 0x2dd
push edx
lea eax, [ebp - 0x454]
push eax
call fcn.004b9290
add esp, 8
push 0x51dcb0
lea ecx, [ebp - 0x454]
push ecx
call fcn.004b92a0
add esp, 8
push 0
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42d0f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x668], eax
push 0x208
push 0
lea ecx, [ebp - 0x870]
push ecx
call fcn.004b9030
add esp, 0xc
mov edx, dword [ebp - 0x668]
push edx
lea eax, [ebp - 0x65c]
push eax
push str.Cant_copy_file_from_.Firmware_sMPINFO.bin_to_.DriveSettingMPINFO_Final.bin__errorcode___d
lea ecx, [ebp - 0x870]
push ecx
call fcn.004b953d
add esp, 0x10
push 0
push 0x51dd34
lea edx, [ebp - 0x870]
push edx
mov ecx, dword [ebp - 0x888]
call fcn.004db06e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b9a0d
add esp, 4
mov dword [ebp - 0x87c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004de855
mov eax, dword [ebp - 0x87c]
jmp 0x42d483
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x874], eax
cmp dword [ebp - 0x874], 0xffffffff
jne 0x42d17c
push 0x208
push 0
lea edx, [ebp - 0x870]
push edx
call fcn.004b9030
add esp, 0xc
push 0
push 0x51dd3c
push str.Cant_open_.DriveSettingMPINFO_Final.bin__please_check.
mov ecx, dword [ebp - 0x888]
call fcn.004db06e
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b9a0d
add esp, 4
mov dword [ebp - 0x880], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004de855
mov eax, dword [ebp - 0x880]
jmp 0x42d483
mov ecx, dword [ebp - 0x874]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.004dec0c
mov dword [ebp - 0x660], eax
mov edx, dword [ebp - 0x660]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004dea2f
push 0x14
mov ecx, dword [ebp - 0x888]
add ecx, 0x5c
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0x10
push edx
call fcn.004b96d0
add esp, 0xc
cmp dword [0x53bee8], 0
jne 0x42d20f
mov dword [ebp - 0x664], 0
jmp 0x42d1e5
mov eax, dword [ebp - 0x664]
add eax, 1
mov dword [ebp - 0x664], eax
cmp dword [ebp - 0x664], 0x14
jge 0x42d20f
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x664]
xor edx, edx
mov dl, byte [ecx + 0x10]
test edx, edx
jne 0x42d20d
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x664]
mov byte [eax + 0x10], 0x20
jmp 0x42d1d6
push 0x28
mov ecx, dword [ebp - 0x888]
add ecx, 0x11a34
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0x70
push edx
call fcn.004b96d0
add esp, 0xc
mov dword [ebp - 0x664], 0
jmp 0x42d248
mov eax, dword [ebp - 0x664]
add eax, 1
mov dword [ebp - 0x664], eax
cmp dword [ebp - 0x664], 0x28
jge 0x42d272
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x664]
xor edx, edx
mov dl, byte [ecx + 0x70]
test edx, edx
jne 0x42d270
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x664]
mov byte [eax + 0x70], 0x20
jmp 0x42d239
push 0x50
mov ecx, dword [ebp - 0x888]
add ecx, 0x1080
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0xc0
push edx
call fcn.004b96d0
add esp, 0xc
mov eax, dword [ebp - 0x888]
cmp dword [eax + 0x11b14], 0
je 0x42d2c5
push 0x10
mov ecx, dword [ebp - 0x888]
add ecx, 0x11b1c
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0x50
push edx
call fcn.004b96d0
add esp, 0xc
jmp 0x42d398
mov eax, dword [ebp - 0x888]
cmp dword [eax + 0x11b18], 0
je 0x42d398
push 0x21
push 0
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004b9030
add esp, 0xc
mov dword [ebp - 0x664], 0
jmp 0x42d306
mov edx, dword [ebp - 0x664]
add edx, 1
mov dword [ebp - 0x664], edx
cmp dword [ebp - 0x664], 0x10
jge 0x42d366
push 0x208
push 0
lea eax, [ebp - 0x65c]
push eax
call fcn.004b9030
add esp, 0xc
mov ecx, dword [ebp - 0x888]
add ecx, dword [ebp - 0x664]
xor edx, edx
mov dl, byte [ecx + 0x11b2d]
push edx
push 0x51dd80
lea eax, [ebp - 0x65c]
push eax
call fcn.004b953d
add esp, 0xc
lea ecx, [ebp - 0x65c]
push ecx
lea edx, [ebp - 0x24c]
push edx
call fcn.004b92a0
add esp, 8
jmp 0x42d2f7
push 0x10
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x50
push ecx
call fcn.004b96d0
add esp, 0xc
push 0x10
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x20]
add eax, 0xb0
push eax
call fcn.004b96d0
add esp, 0xc
cmp dword [0x53bf98], 0
je 0x42d3c2
push 0x20
mov ecx, dword [ebp - 0x888]
add ecx, 0xd06
push ecx
mov edx, dword [ebp - 0x20]
add edx, 0x200
push edx
call fcn.004b96d0
add esp, 0xc
mov eax, dword [ebp - 0x888]
mov ecx, dword [eax + 0x11ebc]
mov dword [ebp - 0x88c], ecx
cmp dword [ebp - 0x88c], 4
ja case.default.0x42d3e3
mov edx, dword [ebp - 0x88c]
jmp dword [edx*4 + 0x42d491]
mov eax, dword [ebp - 0x20]
mov byte [eax + 0xa0], 3
jmp 0x42d430
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0xa0], 0
jmp 0x42d430
mov edx, dword [ebp - 0x20]
mov byte [edx + 0xa0], 6
jmp 0x42d430
mov eax, dword [ebp - 0x20]
mov byte [eax + 0xa0], 7
jmp 0x42d430
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0xa0], 9
jmp 0x42d430
mov edx, dword [ebp - 0x20]
mov byte [edx + 0xa0], 0
lea ecx, [ebp - 0x1c]
call fcn.004311f0
mov eax, dword [ebp - 0x660]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004dea69
mov edx, dword [ebp - 0x874]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b9a0d
add esp, 4
mov dword [ebp - 0x884], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004de855
mov eax, dword [ebp - 0x884]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret