Function at 0x1003bdc9
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x64
push 0x88
mov eax, 0x100c3d02
call fcn.10098e77
mov esi, ecx
push 0
lea ecx, [ebp]
call sym.storarc.dll_public:_void___thiscall_Ret::constructor_int_
push dword [ebp + 0x74]
push str.SES2EnclosureDevice::flashMiramar___s_n
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp + 0x66]
push ecx
lea ecx, [ebp + 0x67]
push ecx
push 0
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x68]
push eax
lea ecx, [ebp]
call sym.storarc.dll_public:_class_Ret____thiscall_Ret::operator_class_Ret_const__
push 0x100dea18
push dword [ebp + 0x74]
call fcn.1009e0f6
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x1003be43
mov ecx, dword [ebp + 0x70]
push 0xfffffffffffffffe
call sym.storarc.dll_public:_void___thiscall_Ret::constructor_int_
jmp 0x1003c1cd
mov edi, 0x100000
push edi
lea ecx, [ebp + 0x5c]
call sym.storarc.dll_public:_void___thiscall_Buffer::constructor_unsigned_long_int_
and dword [ebp - 4], 0
push ebx
push edi
push 1
push dword [ebp + 0x5c]
call fcn.1009e017
push ebx
mov edi, eax
call fcn.1009dd41
add esp, 0x14
test eax, eax
je 0x1003c1b7
push ebx
call fcn.1009dd70
test eax, eax
pop ecx
jne 0x1003c1b7
push ebx
call fcn.1009dcc5
pop ecx
push 1
push edi
lea ecx, [ebp + 0x5c]
call sym.storarc.dll_public:_unsigned_char____thiscall_Buffer::Alloc_unsigned_long_int__bool_
push edi
push str.Bytes_read_from_file___d_n
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
mov eax, dword [ebp + 0x60]
mov ebx, eax
add esp, 0xc
shr ebx, 9
and eax, 0x1ff
mov edi, 0x200
push edi
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x4c], eax
setne byte [ebp + 0x77]
call sym.storarc.dll_public:_void___thiscall_Buffer::constructor_unsigned_long_int_
mov eax, dword [esi]
lea ecx, [ebp + 0x66]
push ecx
lea ecx, [ebp + 0x67]
push ecx
push 0
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x68]
push eax
lea ecx, [ebp]
call sym.storarc.dll_public:_class_Ret____thiscall_Ret::operator_class_Ret_const__
cmp dword [ebp], 0
je 0x1003bf12
mov edi, dword [ebp + 0x70]
push 0x11
pop ecx
lea esi, [ebp]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0
call sym.storarc.dll_public:_void___thiscall_Buffer::destructor_void_
jmp 0x1003c1c1
cmp byte [ebp + 0x67], 0
je 0x1003bf24
push 0xfffffffffffffffa
mov ecx, dword [ebp + 0x70]
call sym.storarc.dll_public:_void___thiscall_Ret::constructor_int_
jmp 0x1003bf01
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x5c]
push eax
lea ecx, [ebp]
call sym.storarc.dll_public:_class_Ret____thiscall_Ret::operator_class_Ret_const__
cmp dword [ebp], 0
jne 0x1003bef6
mov eax, dword [ebp + 0x5c]
and dword [ebp + 0x50], 0
test ebx, ebx
mov dword [ebp + 0x48], eax
jbe 0x1003c042
push edi
push dword [ebp + 0x48]
push dword [ebp + 0x54]
call fcn.10099130
add esp, 0xc
push edi
push dword [ebp + 0x50]
push str.Packet__d_data___d_bytes_:_n
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
add esp, 0x10
and dword [ebp + 0x44], 0
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x44]
add eax, ecx
movzx eax, byte [eax]
push eax
push 0x100d0040
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
add esp, 0xc
inc dword [ebp + 0x44]
cmp dword [ebp + 0x44], edi
jb 0x1003bf7f
push 0x100de9dc
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
pop ecx
pop ecx
push str.Sending_download_microcode_control_page_n
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
mov eax, dword [esi]
pop ecx
pop ecx
lea ecx, [ebp + 0x54]
push ecx
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x50]
shl ecx, 9
push ecx
push 2
push 7
push 0
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x60]
push eax
lea ecx, [ebp]
call sym.storarc.dll_public:_class_Ret____thiscall_Ret::operator_class_Ret_const__
mov eax, dword [esi]
lea ecx, [ebp + 0x66]
push ecx
lea ecx, [ebp + 0x67]
push ecx
push 0
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x68]
push eax
lea ecx, [ebp]
call sym.storarc.dll_public:_class_Ret____thiscall_Ret::operator_class_Ret_const__
cmp dword [ebp], 0
jne 0x1003bef6
cmp byte [ebp + 0x67], 0x80
jb 0x1003c033
cmp byte [ebp + 0x67], 0x84
jbe 0x1003c19c
add dword [ebp + 0x48], edi
inc dword [ebp + 0x50]
cmp dword [ebp + 0x50], ebx
jb 0x1003bf52
cmp byte [ebp + 0x77], 0
je 0x1003c137
push 0
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x54]
call sym.storarc.dll_public:_unsigned_char____thiscall_Buffer::Alloc_unsigned_long_int__bool_
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push dword [ebp + 0x54]
call fcn.10099130
add esp, 0xc
push dword [ebp + 0x4c]
push str.Runt_packet_data___d_bytes_:_n
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
add esp, 0xc
and dword [ebp + 0x74], 0
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x74]
add eax, ecx
movzx eax, byte [eax]
push eax
push 0x100d0040
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
add esp, 0xc
inc dword [ebp + 0x74]
cmp dword [ebp + 0x74], edi
jb 0x1003c087
push 0x100de9dc
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
pop ecx
pop ecx
push dword [ebp + 0x4c]
push str.Sending_download_microcode_control_page__runt_size___d_n
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp + 0x54]
push ecx
push dword [ebp + 0x60]
shl ebx, 9
push ebx
push 2
push 7
xor edi, edi
push edi
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x60]
push eax
lea ecx, [ebp]
call sym.storarc.dll_public:_class_Ret____thiscall_Ret::operator_class_Ret_const__
mov eax, dword [esi]
lea ecx, [ebp + 0x66]
push ecx
lea ecx, [ebp + 0x67]
push ecx
push edi
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x68]
push eax
lea ecx, [ebp]
call sym.storarc.dll_public:_class_Ret____thiscall_Ret::operator_class_Ret_const__
cmp dword [ebp], edi
jne 0x1003bef6
cmp byte [ebp + 0x67], 0x80
jb 0x1003c137
cmp byte [ebp + 0x67], 0x84
jbe 0x1003c19c
push str.Download_finished_n
call fcn.1009d40a
add eax, 0x40
push eax
call fcn.1009a460
pop ecx
pop ecx
mov eax, dword [esi]
lea ecx, [ebp + 0x66]
push ecx
lea ecx, [ebp + 0x67]
push ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x68]
push eax
lea ecx, [ebp]
call sym.storarc.dll_public:_class_Ret____thiscall_Ret::operator_class_Ret_const__
cmp dword [ebp], edi
jne 0x1003bef6
mov al, byte [ebp + 0x67]
cmp al, 2
je 0x1003c14c
test al, al
je 0x1003c187
cmp al, 0xf
jbe 0x1003c19c
cmp al, 0x12
ja 0x1003c19c
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x94]
push ecx
mov ecx, esi
call dword [eax + 0x5c]
push edi
jmp 0x1003bf1a
lea ecx, [ebp]
call sym.storarc.dll_public:_void___thiscall_Ret::clear_void_
movzx eax, byte [ebp + 0x67]
mov dword [ebp], 0xfffffff6
mov dword [ebp + 0x10], eax
jmp 0x1003bef6
mov ecx, dword [ebp + 0x70]
push 0xfffffffffffffffe
call sym.storarc.dll_public:_void___thiscall_Ret::constructor_int_
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x5c]
call sym.storarc.dll_public:_void___thiscall_Buffer::destructor_void_
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0xc