Function at 0x427c1a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e53c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1250
call fcn.004aa330
mov dword [ebp - 0x125c], ecx
mov dword [ebp - 0xc98], 0
mov dword [ebp - 0xed0], 0
mov eax, dword [str.20160802B]
mov dword [ebp - 0xca4], eax
mov ecx, dword [0x50c9d4]
mov dword [ebp - 0xca0], ecx
mov dx, word [0x50c9d8]
mov word [ebp - 0xc9c], dx
lea ecx, [ebp - 0xcb4]
call fcn.004cf400
mov dword [ebp - 4], 0
mov dword [ebp - 0xedc], 0
mov dword [ebp - 0xed8], 0
push 0x208
push 0
lea eax, [ebp - 0xec8]
push eax
call fcn.004a9cd0
add esp, 0xc
mov ecx, dword [ebp - 0x125c]
add ecx, 0x2dd
push ecx
lea edx, [ebp - 0xec8]
push edx
call fcn.004a9f30
add esp, 8
push 0x50c9dc
lea eax, [ebp - 0xec8]
push eax
call fcn.004a9f40
add esp, 8
lea ecx, [ebp - 0xec8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x120c], 0
jmp 0x427d0f
mov edx, dword [ebp - 0x120c]
add edx, 1
mov dword [ebp - 0x120c], edx
mov eax, dword [ebp - 0x120c]
xor ecx, ecx
mov cl, byte [ebp + eax - 0xca4]
test ecx, ecx
je 0x427dad
mov edx, dword [ebp - 0x120c]
xor eax, eax
mov al, byte [edx + 0x5284cc]
mov ecx, dword [ebp - 0x120c]
xor edx, edx
mov dl, byte [ebp + ecx - 0xca4]
cmp eax, edx
jle 0x427d49
jmp 0x427dad
mov eax, dword [ebp - 0x120c]
xor ecx, ecx
mov cl, byte [eax + 0x5284cc]
mov edx, dword [ebp - 0x120c]
xor eax, eax
mov al, byte [ebp + edx - 0xca4]
cmp ecx, eax
jge 0x427da8
push 0
push 0x50c9fc
push str.Cant_generate_FFU_file._r_nDll_version_must_be_P0802B_or_later.
mov ecx, dword [ebp - 0x125c]
call fcn.004cbd0e
mov dword [ebp - 0x1210], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcb4]
call fcn.004cf4f5
mov eax, dword [ebp - 0x1210]
jmp 0x428801
jmp 0x427d00
push 0x208
push 0
lea ecx, [ebp - 0xec8]
push ecx
call fcn.004a9cd0
add esp, 0xc
mov edx, dword [ebp - 0x125c]
add edx, 0x2dd
push edx
lea eax, [ebp - 0xec8]
push eax
call fcn.004a9f30
add esp, 8
push str.Linux_FileMPCID.bin
lea ecx, [ebp - 0xec8]
push ecx
call fcn.004a9f40
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0xec8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1208], eax
cmp dword [ebp - 0x1208], 0xffffffff
jne 0x427e75
push 0x104
push 0
lea eax, [ebp - 0x11e0]
push eax
call fcn.004a9cd0
add esp, 0xc
push 0
push 0x50ca5c
push str.Cant_open_.Linux_FileMPCID.bin__please_check.
mov ecx, dword [ebp - 0x125c]
call fcn.004cbd0e
mov dword [ebp - 0x1214], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcb4]
call fcn.004cf4f5
mov eax, dword [ebp - 0x1214]
jmp 0x428801
mov ecx, dword [ebp - 0x1208]
mov dword [ebp - 0xcb0], ecx
lea ecx, [ebp - 0xcb4]
call fcn.004cf8ac
mov dword [ebp - 0xecc], eax
push 0x80
push 0
lea edx, [ebp - 0xc94]
push edx
call fcn.004a9cd0
add esp, 0xc
cmp dword [ebp - 0xecc], 0x80
jbe 0x427ebe
mov dword [ebp - 0xecc], 0x80
mov eax, dword [ebp - 0xecc]
push eax
lea ecx, [ebp - 0xc94]
push ecx
lea ecx, [ebp - 0xcb4]
call fcn.004cf6cf
mov edx, dword [ebp - 0x1208]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x208
push 0
lea eax, [ebp - 0xec8]
push eax
call fcn.004a9cd0
add esp, 0xc
mov ecx, dword [ebp - 0x125c]
add ecx, 0x2dd
push ecx
lea edx, [ebp - 0xec8]
push edx
call fcn.004a9f30
add esp, 8
push str.Linux_FileMPID.bin
lea eax, [ebp - 0xec8]
push eax
call fcn.004a9f40
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0xec8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1208], eax
cmp dword [ebp - 0x1208], 0xffffffff
jne 0x427fac
push 0x104
push 0
lea edx, [ebp - 0x11e0]
push edx
call fcn.004a9cd0
add esp, 0xc
push 0
push 0x50cab0
push str.Cant_open_.Linux_FileMPID.bin__please_check.
mov ecx, dword [ebp - 0x125c]
call fcn.004cbd0e
mov dword [ebp - 0x1218], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcb4]
call fcn.004cf4f5
mov eax, dword [ebp - 0x1218]
jmp 0x428801
mov eax, dword [ebp - 0x1208]
mov dword [ebp - 0xcb0], eax
lea ecx, [ebp - 0xcb4]
call fcn.004cf8ac
mov dword [ebp - 0xecc], eax
push 0x200
push 0
lea ecx, [ebp - 0x10dc]
push ecx
call fcn.004a9cd0
add esp, 0xc
cmp dword [ebp - 0xecc], 0x200
jbe 0x427ff5
mov dword [ebp - 0xecc], 0x200
mov edx, dword [ebp - 0xecc]
push edx
lea eax, [ebp - 0x10dc]
push eax
lea ecx, [ebp - 0xcb4]
call fcn.004cf6cf
mov ecx, dword [ebp - 0x1208]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x208
push 0
lea edx, [ebp - 0xec8]
push edx
call fcn.004a9cd0
add esp, 0xc
mov eax, dword [ebp - 0x125c]
add eax, 0x2dd
push eax
lea ecx, [ebp - 0xec8]
push ecx
call fcn.004a9f30
add esp, 8
push str.Linux_FileMPDrvSet.bin
lea edx, [ebp - 0xec8]
push edx
call fcn.004a9f40
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0xec8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1208], eax
cmp dword [ebp - 0x1208], 0xffffffff
jne 0x4280e2
push 0x104
push 0
lea ecx, [ebp - 0x11e0]
push ecx
call fcn.004a9cd0
add esp, 0xc
push 0
push 0x50cb04
push str.Cant_open_.Linux_FileMPDrvSet.bin__please_check.
mov ecx, dword [ebp - 0x125c]
call fcn.004cbd0e
mov dword [ebp - 0x121c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcb4]
call fcn.004cf4f5
mov eax, dword [ebp - 0x121c]
jmp 0x428801
mov edx, dword [ebp - 0x1208]
mov dword [ebp - 0xcb0], edx
lea ecx, [ebp - 0xcb4]
call fcn.004cf8ac
mov dword [ebp - 0xecc], eax
push 0x800
push 0
lea eax, [ebp - 0x810]
push eax
call fcn.004a9cd0
add esp, 0xc
cmp dword [ebp - 0xecc], 0x800
jbe 0x42812b
mov dword [ebp - 0xecc], 0x800
mov ecx, dword [ebp - 0xecc]
push ecx
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0xcb4]
call fcn.004cf6cf
mov eax, dword [ebp - 0x1208]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
push 0
lea ecx, [ebp - 0xc14]
push ecx
call fcn.004a9cd0
add esp, 0xc
mov edx, dword [ebp - 0x125c]
mov al, byte [edx + 0x10e]
mov byte [ebp - 0xc01], al
mov ecx, dword [ebp - 0x125c]
xor edx, edx
mov dl, byte [ecx + 0xf2]
shl edx, 1
mov byte [ebp - 0xbd1], dl
push 0x208
push 0
lea eax, [ebp - 0xec8]
push eax
call fcn.004a9cd0
add esp, 0xc
mov ecx, dword [ebp - 0x125c]
add ecx, 0x2dd
push ecx
lea edx, [ebp - 0xec8]
push edx
call fcn.004a9f30
add esp, 8
push str.Linux_FileISP.bin
lea eax, [ebp - 0xec8]
push eax
call fcn.004a9f40
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0xec8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1208], eax
cmp dword [ebp - 0x1208], 0xffffffff
jne 0x428257
push 0x104
push 0
lea edx, [ebp - 0x11e0]
push edx
call fcn.004a9cd0
add esp, 0xc
push 0
push 0x50cb54
push str.Cant_open_.Linux_FileISP.bin__please_check.
mov ecx, dword [ebp - 0x125c]
call fcn.004cbd0e
mov dword [ebp - 0x1220], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcb4]
call fcn.004cf4f5
mov eax, dword [ebp - 0x1220]
jmp 0x428801
mov eax, dword [ebp - 0x1208]
mov dword [ebp - 0xcb0], eax
lea ecx, [ebp - 0xcb4]
call fcn.004cf8ac
mov dword [ebp - 0xed4], eax
mov ecx, dword [ebp - 0xbd1]
and ecx, 0xff
shl ecx, 9
mov edx, dword [ebp - 0xed4]
add edx, ecx
mov dword [ebp - 0xcb8], edx
mov eax, dword [ebp - 0xed4]
push eax
call fcn.004cf3b7
add esp, 4
mov dword [ebp - 0x1224], eax
mov ecx, dword [ebp - 0x1224]
mov dword [ebp - 0xedc], ecx
cmp dword [ebp - 0xedc], 0
jne 0x42830f
push 0x104
push 0
lea edx, [ebp - 0x11e0]
push edx
call fcn.004a9cd0
add esp, 0xc
push 0
push 0x50cb8c
push str.Cant_allocate_memory_to_read_ISP_file.
mov ecx, dword [ebp - 0x125c]
call fcn.004cbd0e
mov dword [ebp - 0x1228], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcb4]
call fcn.004cf4f5
mov eax, dword [ebp - 0x1228]
jmp 0x428801
mov eax, dword [ebp - 0xcb8]
push eax
call fcn.004cf3b7
add esp, 4
mov dword [ebp - 0x122c], eax
mov ecx, dword [ebp - 0x122c]
mov dword [ebp - 0xed8], ecx
cmp dword [ebp - 0xed8], 0
jne 0x4283a8
push 0x104
push 0
lea edx, [ebp - 0x11e0]
push edx
call fcn.004a9cd0
add esp, 0xc
push 0
push 0x50cbbc
push str.Cant_allocate_memory_to_generate_FFU_file.
mov ecx, dword [ebp - 0x125c]
call fcn.004cbd0e
mov eax, dword [ebp - 0xedc]
mov dword [ebp - 0x1230], eax
mov ecx, dword [ebp - 0x1230]
push ecx
call fcn.004cf3e0
add esp, 4
mov dword [ebp - 0x1234], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcb4]
call fcn.004cf4f5
mov eax, dword [ebp - 0x1234]
jmp 0x428801
mov edx, dword [ebp - 0xed4]
push edx
push 0
mov eax, dword [ebp - 0xedc]
push eax
call fcn.004a9cd0
add esp, 0xc
mov ecx, dword [ebp - 0xcb8]
push ecx
push 0
mov edx, dword [ebp - 0xed8]
push edx
call fcn.004a9cd0
add esp, 0xc
mov eax, dword [ebp - 0xed4]
push eax
mov ecx, dword [ebp - 0xedc]
push ecx
lea ecx, [ebp - 0xcb4]
call fcn.004cf6cf
mov edx, dword [ebp - 0x1208]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xc94]
push ecx
lea edx, [ebp - 0x10dc]
push edx
mov eax, dword [ebp - 0xed4]
shr eax, 9
push eax
mov ecx, dword [ebp - 0xedc]
push ecx
lea edx, [ebp - 0xc14]
push edx
lea eax, [ebp - 0xc98]
push eax
call dword [0x528394]
add esp, 0x20
mov byte [ebp - 0xcbc], al
mov ecx, dword [ebp - 0xcbc]
and ecx, 0xff
cmp ecx, 1
je 0x4284e2
push 0x104
push 0
lea edx, [ebp - 0x11e0]
push edx
call fcn.004a9cd0
add esp, 0xc
push 0
push 0x50cbf0
push str.Fail_to_generate_FFU_file.
mov ecx, dword [ebp - 0x125c]
call fcn.004cbd0e
mov eax, dword [ebp - 0xedc]
mov dword [ebp - 0x1238], eax
mov ecx, dword [ebp - 0x1238]
push ecx
call fcn.004cf3e0
add esp, 4
mov edx, dword [ebp - 0xed8]
mov dword [ebp - 0x123c], edx
mov eax, dword [ebp - 0x123c]
push eax
call fcn.004cf3e0
add esp, 4
mov dword [ebp - 0x1240], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcb4]
call fcn.004cf4f5
mov eax, dword [ebp - 0x1240]
jmp 0x428801
mov ecx, dword [ebp - 0xed4]
push ecx
mov edx, dword [ebp - 0xedc]
push edx
mov eax, dword [ebp - 0xed8]
push eax
call fcn.004aa370
add esp, 0xc
cmp dword [0x528f70], 0
je 0x4285de
push 0x20
push 0
lea ecx, [ebp - 0x1204]
push ecx
call fcn.004a9cd0
add esp, 0xc
lea edx, [ebp - 0x1204]
push edx
mov eax, dword [ebp - 0xed4]
push eax
mov ecx, dword [ebp - 0xedc]
push ecx
call fcn.00460371
add esp, 0xc
lea edx, [ebp - 0x1204]
push edx
call fcn.00493359
add esp, 4
mov byte [ebp - 0xcc0], al
push 0x100
mov eax, dword [ebp - 0xcc0]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0xed8]
add ecx, dword [ebp - 0xed4]
push ecx
call fcn.004a9cd0
add esp, 0xc
mov dword [ebp - 0x120c], 0
jmp 0x428592
mov edx, dword [ebp - 0x120c]
add edx, 1
mov dword [ebp - 0x120c], edx
cmp dword [ebp - 0x120c], 0x20
jae 0x4285d9
mov eax, dword [ebp - 0x125c]
add eax, dword [ebp - 0x120c]
mov cl, byte [eax + 0xd06]
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp - 0xed4]
add eax, edx
mov ecx, dword [ebp - 0xed8]
mov edx, dword [ebp - 0x120c]
mov dl, byte [ebp + edx - 0x1204]
mov byte [ecx + eax], dl
jmp 0x428583
jmp 0x428685
mov eax, dword [ebp - 0xedc]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x120c], 0
jmp 0x428605
mov ecx, dword [ebp - 0x120c]
add ecx, 1
mov dword [ebp - 0x120c], ecx
mov edx, dword [ebp - 0xed4]
shr edx, 2
cmp dword [ebp - 0x120c], edx
jae 0x428633
mov eax, dword [ebp - 0x120c]
mov ecx, dword [ebp - 0x814]
mov edx, dword [ebp - 0xed0]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0xed0], edx
jmp 0x4285f6
mov dword [ebp - 0x120c], 0
jmp 0x42864e
mov eax, dword [ebp - 0x120c]
add eax, 1
mov dword [ebp - 0x120c], eax
cmp dword [ebp - 0x120c], 4
jae 0x428685
mov ecx, dword [ebp - 0x120c]
shl ecx, 3
mov edx, dword [ebp - 0xed0]
shr edx, cl
and edx, 0xff
mov eax, dword [ebp - 0xed4]
add eax, dword [ebp - 0x120c]
mov ecx, dword [ebp - 0xed8]
mov byte [ecx + eax], dl
jmp 0x42863f
push 0x208
push 0
lea edx, [ebp - 0xec8]
push edx
call fcn.004a9cd0
add esp, 0xc
mov eax, dword [ebp - 0x125c]
add eax, 0x2dd
push eax
lea ecx, [ebp - 0xec8]
push ecx
call fcn.004a9f30
add esp, 8
push str.Linux_FileMicrocode_Gen.flu
lea edx, [ebp - 0xec8]
push edx
call fcn.004a9f40
add esp, 8
push 0x50cc34
lea eax, [ebp - 0xec8]
push eax
call fcn.004aa084
add esp, 8
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x42877b
push 0x104
push 0
lea ecx, [ebp - 0x11e0]
push ecx
call fcn.004a9cd0
add esp, 0xc
push 0
push 0x50cc38
push str.Fail_to_save_FFU_file.
mov ecx, dword [ebp - 0x125c]
call fcn.004cbd0e
mov edx, dword [ebp - 0xedc]
mov dword [ebp - 0x1244], edx
mov eax, dword [ebp - 0x1244]
push eax
call fcn.004cf3e0
add esp, 4
mov ecx, dword [ebp - 0xed8]
mov dword [ebp - 0x1248], ecx
mov edx, dword [ebp - 0x1248]
push edx
call fcn.004cf3e0
add esp, 4
mov dword [ebp - 0x124c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcb4]
call fcn.004cf4f5
mov eax, dword [ebp - 0x124c]
jmp 0x428801
mov eax, dword [ebp - 0x11e4]
push eax
mov ecx, dword [ebp - 0xcb8]
push ecx
push 1
mov edx, dword [ebp - 0xed8]
push edx
call fcn.004a9ee4
add esp, 0x10
mov eax, dword [ebp - 0x11e4]
push eax
call fcn.004a9d7c
add esp, 4
mov ecx, dword [ebp - 0xedc]
mov dword [ebp - 0x1250], ecx
mov edx, dword [ebp - 0x1250]
push edx
call fcn.004cf3e0
add esp, 4
mov eax, dword [ebp - 0xed8]
mov dword [ebp - 0x1254], eax
mov ecx, dword [ebp - 0x1254]
push ecx
call fcn.004cf3e0
add esp, 4
mov dword [ebp - 0x1258], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcb4]
call fcn.004cf4f5
mov eax, dword [ebp - 0x1258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret