Function at 0x409fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, 0x23f8a60
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ff1
sub eax, edx
je 0x40a460
push 1
mov ecx, 0x23f8a60
mov byte [0x2389f29], 1
mov byte [0x2389f2a], 1
call fcn.0040f4a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a048
push 0x23f8a60
push str._s_not_found
push 0x124b
push str.SendSignedDigestTable
push 1
call fcn.00401210
add esp, 0x14
push 1
call fcn.004017c0
mov eax, dword [0x238a86c]
mov ecx, dword [0x238a868]
push 0x2389728
push eax
push ecx
push str.Signed_Digest_Table___lld_bytes___s
push 0x124f
push str.SendSignedDigestTable
push 4
call fcn.00401210
add esp, 0x1c
push 0x800
mov edx, 0x42e7e0
mov ecx, esi
call fcn.00410f40
add esp, 4
push str.Trying_get_filesize__calling_fseek__
push 0x24b0
push str.ReturnFileSize
push 5
mov edi, eax
call fcn.00401210
push 2
push 0
push 0
push edi
call fcn.0041935a
push edi
call fcn.0041809e
add esp, 0x24
push 0
push 0
push 0
push edi
mov esi, eax
mov ebx, edx
call fcn.0041935a
push ebx
push esi
push str.File_size_is__lld_bytes
push 0x1255
push str.SendSignedDigestTable
push 5
call fcn.00401210
push edi
push esi
push 1
push 0x277b380
call fcn.00419c29
push edi
mov dword [ebp - 8], eax
call fcn.0041a4c4
mov ecx, dword [ebp - 8]
mov edx, ecx
xor eax, eax
add esp, 0x3c
or edx, eax
jne 0x40a115
push 0x23f8a60
push str.Read_0_bytes_from__s
push 0x125d
jmp 0x40a032
cmp eax, ebx
jg 0x40a146
jl 0x40a11f
cmp ecx, esi
jae 0x40a146
push ebx
push esi
push 0x23f8a60
push eax
push ecx
push str.Read__lld_bytes_from__s_but_expected__lld
push 0x1263
push str.SendSignedDigestTable
push 1
call fcn.00401210
add esp, 0x24
jmp 0x40a041
test ebx, ebx
jl 0x40a168
jg 0x40a154
cmp esi, 0x1928
jbe 0x40a168
mov eax, esi
push 0
sub eax, 0x1928
mov ecx, ebx
push 0x20
sbb ecx, 0
push ecx
push eax
jmp 0x40a178
mov edx, esi
push 0
sub edx, 0x28
mov eax, ebx
push 0x20
sbb eax, 0
push eax
push edx
call fcn.00421c30
push edx
push eax
push str.SIGNED_Digest_table_had__lld_digests
push 0x1278
push str.SendSignedDigestTable
push 4
mov dword [0x238a7b4], edx
mov dword [0x238a7b0], eax
call fcn.00401210
mov ecx, dword [0x238a7bc]
mov edx, dword [0x238a7b8]
push ecx
push edx
push str.MaxNumDigestsPerTable_is__lld
push 0x127a
push str.SendSignedDigestTable
push 4
call fcn.00401210
mov edx, dword [0x238a7b8]
mov edi, dword [0x238a7bc]
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 0x127e
push str.SendSignedDigestTable
push 4
mov dword [0x238a7a0], eax
mov dword [0x238a7a4], ecx
call fcn.00401210
add esp, 0x50
push ebx
push esi
push str.Calling_sendTransmitBufferBytes__lld_bytes_
push 0x1286
push str.SendSignedDigestTable
push 4
mov byte [0x2389f29], 0
call fcn.00401210
push ebx
push esi
call fcn.0040b140
add esp, 0x20
test eax, eax
je 0x40a041
cmp byte [0x238a7c3], 0
mov byte [0x2389f29], 1
je 0x40a2ae
mov eax, dword [0x238a848]
mov ecx, 0x100000
sub ecx, eax
push 0
push ecx
lea eax, [eax + 0x297b440]
call fcn.0040b0b0
push 0x297b440
mov eax, str._data__n
call fcn.0040b0e0
add esp, 0xc
push 0x297b440
mov eax, str._response_value_ACK_
call fcn.0040b0e0
add esp, 4
push 0x297b440
mov eax, str.___n__data_
call fcn.0040b0e0
mov eax, 0x297b440
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a2a0
sub eax, edx
mov dword [0x238a844], eax
call fcn.0040e350
cmp byte [0x2389f33], 0
je 0x40a467
push str.Got_the_ACK
push 0x12a1
push str.SendSignedDigestTable
push 5
call fcn.00401210
push str._t____________________________
push 0x12ae
push str.SendSignedDigestTable
push 4
call fcn.00401210
push str._t___________________________
push 0x12af
push str.SendSignedDigestTable
push 4
call fcn.00401210
push str._t____._____________________________________
push 0x12b0
push str.SendSignedDigestTable
push 4
call fcn.00401210
add esp, 0x40
push str._t____.______________________________
push 0x12b1
push str.SendSignedDigestTable
push 4
call fcn.00401210
push str._t______________________________
push 0x12b2
push str.SendSignedDigestTable
push 4
call fcn.00401210
push 0x42fbcc
push 0x12b3
push str.SendSignedDigestTable
push 4
call fcn.00401210
push str._t______________
push 0x12b4
push str.SendSignedDigestTable
push 4
call fcn.00401210
add esp, 0x40
push str._t_________________n
push 0x12b5
push str.SendSignedDigestTable
push 4
call fcn.00401210
push str._t_____________________________
push 0x12b6
push str.SendSignedDigestTable
push 4
call fcn.00401210
push 0x42fc60
push 0x12b7
push str.SendSignedDigestTable
push 4
call fcn.00401210
push 0x42fc80
push 0x12b8
push str.SendSignedDigestTable
push 4
call fcn.00401210
add esp, 0x40
push str._t__________________________
push 0x12b9
push str.SendSignedDigestTable
push 4
call fcn.00401210
push str._t_____________________
push 0x12ba
push str.SendSignedDigestTable
push 4
call fcn.00401210
push str._t_______________________n
push 0x12bb
push str.SendSignedDigestTable
push 4
call fcn.00401210
push str.FIREHOSE:_Signed_DIGEST_sent._This_is_not_counted_towards_command_sent
push 0x12bc
push str.SendSignedDigestTable
push 5
call fcn.00401210
add esp, 0x40
push str.FIREHOSE:_PacketsSent_reset_to_0
push 0x12bd
push str.SendSignedDigestTable
push 5
call fcn.00401210
xor eax, eax
mov dword [0x238a798], eax
mov dword [0x238a79c], eax
or eax, 0xffffffff
add esp, 0x10
add dword [0x238a7a0], eax
adc dword [0x238a7a4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x23f8a60
push 0x23f8a60
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 0x12aa
push str.SendSignedDigestTable
push 1
call fcn.00401210
add esp, 0x18
jmp 0x40a041