Function at 0x40ad20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp byte [0x23b5c09], 0
push ebx
push esi
push edi
je 0x40af19
mov edi, dword [0x23b6494]
test edi, edi
jl 0x40af19
mov esi, dword [0x23b6490]
jg 0x40ad56
cmp esi, 0x35
jbe 0x40af19
mov edx, dword [0x23b649c]
mov eax, dword [0x23b6480]
mov ecx, dword [0x23b6484]
push edx
mov edx, dword [0x23b6498]
add eax, 1
push edx
adc ecx, 0
push ecx
push eax
call fcn.004239b0
or eax, edx
jne 0x40af19
push 0x100000
push 0x27dc8a0
push 0x3c24680
call fcn.00422b50
mov eax, 0x259bfe0
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ada3
sub eax, edx
jne 0x40add0
push edi
push esi
push str.ChainedDigestTableFilename_was_not_set_with___chaineddigestsSomeFilename.bin_and_you_have_at_least__lld_digests
push 0x14c0
push str.TestIfWeNeedToSendDigestTable
push 2
call fcn.004016a0
add esp, 0x18
push 1
call fcn.00401c50
push str._t_________________________________________
push 0x14c5
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
push str._t________________________________
push 0x14c6
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
push str._t____________________________________
push 0x14c7
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
push str._t___________________________________
push 0x14c8
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
add esp, 0x40
push 0x430fb4
push 0x14c9
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
push str._t_______________________._______
push 0x14ca
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
mov eax, dword [0x23b648c]
mov ecx, dword [0x23b6488]
mov edx, dword [0x23b6484]
push eax
mov eax, dword [0x23b6480]
push ecx
push edx
push eax
push str.Since_CurrentDigestLocation_lld__Need_to_send_digest_table_here_digest_file_offset_lld
push 0x14cc
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
add esp, 0x40
push 0
mov ecx, 0x259bfe0
call fcn.00410560
add esp, 4
test eax, eax
jne 0x40aec2
push 0x259bfe0
push str._s_not_found
push 0x14d9
push str.TestIfWeNeedToSendDigestTable
push 2
call fcn.004016a0
add esp, 0x14
push 1
call fcn.00401c50
push 0x800
mov edx, 0x42ddb4
mov ecx, eax
call fcn.00412100
add esp, 4
mov esi, eax
call fcn.004150f0
mov ebx, edx
push ebx
mov edi, eax
push edi
push str.File_size_is__lld_bytes
push 0x14e0
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
add esp, 0x18
or edi, ebx
jne 0x40af20
push str.__chaineddigests_file_was_0_bytes__not_sending_any_chained_digest_tables
push 0x14e4
push str.TestIfWeNeedToSendDigestTable
push 4
call fcn.004016a0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x23b648c]
test eax, eax
jl 0x40af47
mov ecx, dword [0x23b6488]
jg 0x40af35
test ecx, ecx
je 0x40af47
push 0
push eax
push ecx
push esi
call fcn.0041aa2a
mov eax, dword [0x23b648c]
add esp, 0x10
mov ecx, dword [0x3b1d2fc]
mov edx, dword [0x3b1d2f8]
push ecx
push edx
push 0x259bfe0
push eax
mov eax, dword [0x23b6488]
push eax
push str.At_location__lld_in__s_attempting_to_read__lld_bytes
push 0x14ec
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
mov ecx, dword [0x3b1d2f8]
add esp, 0x24
push esi
push ecx
push 1
push 0x27dc8a0
call fcn.0041b2f9
push esi
mov edi, eax
xor ebx, ebx
call fcn.0041bc41
add esp, 0x14
push ebx
push edi
push str.BytesRead_is__lld_bytes
push 0x14f2
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
mov edx, edi
add esp, 0x18
or edx, ebx
jne 0x40afd0
push 0x259bfe0
push str.Read_0_bytes_from__s
push 0x14f6
jmp 0x40aeac
push ebx
push edi
mov byte [0x23b5c09], bl
call fcn.0040c280
add esp, 8
test eax, eax
je 0x40aebb
push 0x100000
push 0x3c24680
push 0x27dc8a0
mov byte [0x23b5c09], 1
call fcn.00422b50
add esp, 0xc
cmp byte [0x23b6538], bl
je 0x40b074
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]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b066
sub eax, edx
mov dword [0x23b6524], eax
mov bl, byte [0x23b642a]
mov byte [0x23b642a], 0
call fcn.0040f420
cmp byte [0x23b5c13], 0
mov byte [0x23b642a], bl
je 0x40b0f5
push str.Got_the_ACK
push 0x1523
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
push str.DIGEST_TABLE_ACCEPTED___Just_RESET_CurrentDigestLocation_to_0__since_now_using_a_new_table
push 0x1524
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004016a0
mov edx, dword [0x23b6498]
xor eax, eax
mov dword [0x23b6480], eax
mov dword [0x23b6484], eax
mov eax, dword [0x23b649c]
shld eax, edx, 5
add esp, 0x20
shl edx, 5
add dword [0x23b6488], edx
pop edi
pop esi
adc dword [0x23b648c], eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Digest_Table_was_NOT_ACCEPTED._Cant_continue
push 0x152a
push str.TestIfWeNeedToSendDigestTable
push 2
call fcn.004016a0
add esp, 0x10
jmp 0x40aebb