Function at 0x409b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp byte [0x23893a9], 0
push ebx
push esi
push edi
je 0x409d79
mov edi, dword [0x2389c34]
test edi, edi
jl 0x409d79
mov esi, dword [0x2389c30]
jg 0x409bb6
cmp esi, 0x35
jbe 0x409d79
mov edx, dword [0x2389c3c]
mov eax, dword [0x2389c20]
mov ecx, dword [0x2389c24]
push edx
mov edx, dword [0x2389c38]
add eax, 1
push edx
adc ecx, 0
push ecx
push eax
call fcn.00421610
or eax, edx
jne 0x409d79
push 0x100000
push 0x277a800
push 0x3b8cd60
call fcn.004207b0
mov eax, 0x2539f40
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409c03
sub eax, edx
jne 0x409c30
push edi
push esi
push str.ChainedDigestTableFilename_was_not_set_with___chaineddigestsSomeFilename.bin_and_you_have_at_least__lld_digests
push 0x123d
push str.TestIfWeNeedToSendDigestTable
push 1
call fcn.00401210
add esp, 0x18
push 1
call fcn.004017c0
push str._t_________________________________________
push 0x1242
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
push str._t________________________________
push 0x1243
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
push str._t____________________________________
push 0x1244
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
push str._t___________________________________
push 0x1245
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
add esp, 0x40
push 0x42e5d4
push 0x1246
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
push str._t_______________________._______
push 0x1247
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
mov eax, dword [0x2389c2c]
mov ecx, dword [0x2389c28]
mov edx, dword [0x2389c24]
push eax
mov eax, dword [0x2389c20]
push ecx
push edx
push eax
push str.Since_CurrentDigestLocation_lld__Need_to_send_digest_table_here_digest_file_offset_lld
push 0x1249
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
add esp, 0x40
push 0
mov ecx, 0x2539f40
call fcn.0040f430
add esp, 4
test eax, eax
jne 0x409d22
push 0x2539f40
push str._s_not_found
push 0x1256
push str.TestIfWeNeedToSendDigestTable
push 1
call fcn.00401210
add esp, 0x14
push 1
call fcn.004017c0
push 0x800
mov edx, 0x42d888
mov ecx, eax
call fcn.00410ed0
add esp, 4
mov esi, eax
call fcn.00413ca0
mov ebx, edx
push ebx
mov edi, eax
push edi
push str.File_size_is__lld_bytes
push 0x125d
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
add esp, 0x18
or edi, ebx
jne 0x409d80
push str.__chaineddigests_file_was_0_bytes__not_sending_any_chained_digest_tables
push 0x1261
push str.TestIfWeNeedToSendDigestTable
push 4
call fcn.00401210
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x2389c2c]
test eax, eax
jl 0x409da7
mov ecx, dword [0x2389c28]
jg 0x409d95
test ecx, ecx
je 0x409da7
push 0
push eax
push ecx
push esi
call fcn.00418c8a
mov eax, dword [0x2389c2c]
add esp, 0x10
mov ecx, dword [0x3a85a1c]
mov edx, dword [0x3a85a18]
push ecx
push edx
push 0x2539f40
push eax
mov eax, dword [0x2389c28]
push eax
push str.At_location__lld_in__s_attempting_to_read__lld_bytes
push 0x1269
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
mov ecx, dword [0x3a85a18]
add esp, 0x24
push esi
push ecx
push 1
push 0x277a800
call fcn.00419559
push esi
mov edi, eax
xor ebx, ebx
call fcn.00419df4
add esp, 0x14
push ebx
push edi
push str.BytesRead_is__lld_bytes
push 0x126f
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
mov edx, edi
add esp, 0x18
or edx, ebx
jne 0x409e30
push 0x2539f40
push str.Read_0_bytes_from__s
push 0x1273
jmp 0x409d0c
push ebx
push edi
mov byte [0x23893a9], bl
call fcn.0040b0e0
add esp, 8
test eax, eax
je 0x409d1b
push 0x100000
push 0x3b8cd60
push 0x277a800
mov byte [0x23893a9], 1
call fcn.004207b0
add esp, 0xc
cmp byte [0x2389c43], bl
je 0x409ed4
mov eax, dword [0x2389cc8]
mov ecx, 0x100000
sub ecx, eax
push 0
push ecx
lea eax, [eax + 0x297a8c0]
call fcn.0040b050
push 0x297a8c0
mov eax, str._data__n
call fcn.0040b080
add esp, 0xc
push 0x297a8c0
mov eax, str._response_value_ACK_
call fcn.0040b080
add esp, 4
push 0x297a8c0
mov eax, str.___n__data_
call fcn.0040b080
mov eax, 0x297a8c0
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ec6
sub eax, edx
mov dword [0x2389cc4], eax
mov bl, byte [0x2389bca]
mov byte [0x2389bca], 0
call fcn.0040e2e0
cmp byte [0x23893b3], 0
mov byte [0x2389bca], bl
je 0x409f55
push str.Got_the_ACK
push 0x12a0
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
push str.DIGEST_TABLE_ACCEPTED___Just_RESET_CurrentDigestLocation_to_0__since_now_using_a_new_table
push 0x12a1
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
mov edx, dword [0x2389c38]
xor eax, eax
mov dword [0x2389c20], eax
mov dword [0x2389c24], eax
mov eax, dword [0x2389c3c]
shld eax, edx, 5
add esp, 0x20
shl edx, 5
add dword [0x2389c28], edx
pop edi
pop esi
adc dword [0x2389c2c], eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Digest_Table_was_NOT_ACCEPTED._Cant_continue
push 0x12a7
push str.TestIfWeNeedToSendDigestTable
push 1
call fcn.00401210
add esp, 0x10
jmp 0x409d1b