Function at 0x40b120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, 0x2459f80
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b131
sub eax, edx
je 0x40b5a0
push 1
mov ecx, 0x2459f80
mov byte [0x23b5c09], 1
mov byte [0x23b5c0a], 1
call fcn.00410560
mov esi, eax
add esp, 4
test esi, esi
jne 0x40b188
push 0x2459f80
push str._s_not_found
push 0x1540
push str.SendSignedDigestTable
push 2
call fcn.004016a0
add esp, 0x14
push 1
call fcn.00401c50
mov eax, dword [0x23b654c]
mov ecx, dword [0x23b6548]
push 0x23b5408
push eax
push ecx
push str.Signed_Digest_Table___lld_bytes___s
push 0x1544
push str.SendSignedDigestTable
push 4
call fcn.004016a0
add esp, 0x1c
push 0x800
mov edx, 0x42ddb4
mov ecx, esi
call fcn.00412100
add esp, 4
push str.Trying_get_filesize__calling_fseek__
push 0x283d
push str.ReturnFileSize
push 5
mov edi, eax
call fcn.004016a0
push 2
push 0
push 0
push edi
call fcn.0041aa2a
push edi
call fcn.004190ae
add esp, 0x24
push 0
push 0
push 0
push edi
mov esi, eax
mov ebx, edx
call fcn.0041aa2a
push ebx
push esi
push str.File_size_is__lld_bytes
push 0x154a
push str.SendSignedDigestTable
push 5
call fcn.004016a0
push edi
push esi
push 1
push 0x27dc8a0
call fcn.0041b2f9
push edi
mov dword [ebp - 8], eax
call fcn.0041bc41
mov ecx, dword [ebp - 8]
mov edx, ecx
xor eax, eax
add esp, 0x3c
or edx, eax
jne 0x40b255
push 0x2459f80
push str.Read_0_bytes_from__s
push 0x1552
jmp 0x40b172
cmp eax, ebx
jg 0x40b286
jl 0x40b25f
cmp ecx, esi
jae 0x40b286
push ebx
push esi
push 0x2459f80
push eax
push ecx
push str.Read__lld_bytes_from__s_but_expected__lld
push 0x1558
push str.SendSignedDigestTable
push 2
call fcn.004016a0
add esp, 0x24
jmp 0x40b181
test ebx, ebx
jl 0x40b2a8
jg 0x40b294
cmp esi, 0x1928
jbe 0x40b2a8
mov eax, esi
push 0
sub eax, 0x1928
mov ecx, ebx
push 0x20
sbb ecx, 0
push ecx
push eax
jmp 0x40b2b8
mov edx, esi
push 0
sub edx, 0x28
mov eax, ebx
push 0x20
sbb eax, 0
push eax
push edx
call fcn.00423900
push edx
push eax
push str.SIGNED_Digest_table_had__lld_digests
push 0x156d
push str.SendSignedDigestTable
push 4
mov dword [0x23b6494], edx
mov dword [0x23b6490], eax
call fcn.004016a0
mov ecx, dword [0x23b649c]
mov edx, dword [0x23b6498]
push ecx
push edx
push str.MaxNumDigestsPerTable_is__lld
push 0x156f
push str.SendSignedDigestTable
push 4
call fcn.004016a0
mov edx, dword [0x23b6498]
mov edi, dword [0x23b649c]
mov eax, edx
sub eax, 0x36
mov ecx, edi
sbb ecx, 0
sub edx, eax
sbb edi, ecx
push edi
push edx
push ecx
push eax
push str.Setting_CurrentDigestLocation_to_number__lld__meaning__lld_hashes_to_go_before_a_new_table_must_be_sent
push 0x1573
push str.SendSignedDigestTable
push 4
mov dword [0x23b6480], eax
mov dword [0x23b6484], ecx
call fcn.004016a0
add esp, 0x50
push ebx
push esi
push str.Calling_sendTransmitBufferBytes__lld_bytes_
push 0x157b
push str.SendSignedDigestTable
push 4
mov byte [0x23b5c09], 0
call fcn.004016a0
push ebx
push esi
call fcn.0040c280
add esp, 0x20
test eax, eax
je 0x40b181
cmp byte [0x23b6538], 0
mov byte [0x23b5c09], 1
je 0x40b3ee
mov eax, dword [0x23b6528]
mov ecx, 0x100000
sub ecx, eax
push 0
push ecx
lea eax, [eax + 0x29dc960]
call fcn.0040c1f0
push 0x29dc960
mov eax, str._data__n
call fcn.0040c220
add esp, 0xc
push 0x29dc960
mov eax, str._response_value_ACK_
call fcn.0040c220
add esp, 4
push 0x29dc960
mov eax, str.___n__data_
call fcn.0040c220
mov eax, 0x29dc960
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b3e0
sub eax, edx
mov dword [0x23b6524], eax
call fcn.0040f420
cmp byte [0x23b5c13], 0
je 0x40b5a7
push str.Got_the_ACK
push 0x1596
push str.SendSignedDigestTable
push 5
call fcn.004016a0
push str._t____________________________
push 0x15a3
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push str._t___________________________
push 0x15a4
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push str._t____._____________________________________
push 0x15a5
push str.SendSignedDigestTable
push 4
call fcn.004016a0
add esp, 0x40
push str._t____.______________________________
push 0x15a6
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push str._t______________________________
push 0x15a7
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push 0x431654
push 0x15a8
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push str._t______________
push 0x15a9
push str.SendSignedDigestTable
push 4
call fcn.004016a0
add esp, 0x40
push str._t_________________n
push 0x15aa
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push str._t_____________________________
push 0x15ab
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push 0x4316e8
push 0x15ac
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push 0x431708
push 0x15ad
push str.SendSignedDigestTable
push 4
call fcn.004016a0
add esp, 0x40
push str._t__________________________
push 0x15ae
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push str._t_____________________
push 0x15af
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push str._t_______________________n
push 0x15b0
push str.SendSignedDigestTable
push 4
call fcn.004016a0
push str.FIREHOSE:_Signed_DIGEST_sent._This_is_not_counted_towards_command_sent
push 0x15b1
push str.SendSignedDigestTable
push 5
call fcn.004016a0
add esp, 0x40
push str.FIREHOSE:_PacketsSent_reset_to_0
push 0x15b2
push str.SendSignedDigestTable
push 5
call fcn.004016a0
xor eax, eax
mov dword [0x23b6478], eax
mov dword [0x23b647c], eax
or eax, 0xffffffff
add esp, 0x10
add dword [0x23b6480], eax
adc dword [0x23b6484], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2459f80
push 0x2459f80
push str.The_Digitally_Signed_Digest_Table_was_rejected_by_the_target_n_n_t1._Are_you_sure_it_was_digitally_signed__Was_it_digitally_signed_correctly_for_this_target__n_t2._Are_you_sure_you_have_a_secure_boot_enabled_target__Maybe_your_target_was_expecting_an_XML_file__n_nBecause_you_used___signeddigests_s_option__this_tool_sends__n_s_as_the_first_packet._It_is_sent_as_a_RAW_binary_file_for_VIP_nYour_target_either_wasnt_expecting_this_file__OR_your_file_was_not_digitially_signed_correctly_n_nCant_continue_due_to_this_error._Your_target_does_not_like_what_you_sent_n_n
push 0x159f
push str.SendSignedDigestTable
push 2
call fcn.004016a0
add esp, 0x18
jmp 0x40b181