Function at 0x409be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp byte [0x2389f29], 0
push ebx
push esi
push edi
je 0x409dd9
mov edi, dword [0x238a7b4]
test edi, edi
jl 0x409dd9
mov esi, dword [0x238a7b0]
jg 0x409c16
cmp esi, 0x35
jbe 0x409dd9
mov edx, dword [0x238a7bc]
mov eax, dword [0x238a7a0]
mov ecx, dword [0x238a7a4]
push edx
mov edx, dword [0x238a7b8]
add eax, 1
push edx
adc ecx, 0
push ecx
push eax
call fcn.00421ce0
or eax, edx
jne 0x409dd9
push 0x100000
push 0x277b380
push 0x3b88ec0
call fcn.00420e80
mov eax, 0x253aac0
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409c63
sub eax, edx
jne 0x409c90
push edi
push esi
push str.ChainedDigestTableFilename_was_not_set_with___chaineddigestsSomeFilename.bin_and_you_have_at_least__lld_digests
push 0x11cb
push str.TestIfWeNeedToSendDigestTable
push 1
call fcn.00401210
add esp, 0x18
push 1
call fcn.004017c0
push str._t_________________________________________
push 0x11d0
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
push str._t________________________________
push 0x11d1
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
push str._t____________________________________
push 0x11d2
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
push str._t___________________________________
push 0x11d3
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
add esp, 0x40
push 0x42f52c
push 0x11d4
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
push str._t_______________________._______
push 0x11d5
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
mov eax, dword [0x238a7ac]
mov ecx, dword [0x238a7a8]
mov edx, dword [0x238a7a4]
push eax
mov eax, dword [0x238a7a0]
push ecx
push edx
push eax
push str.Since_CurrentDigestLocation_lld__Need_to_send_digest_table_here_digest_file_offset_lld
push 0x11d7
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
add esp, 0x40
push 0
mov ecx, 0x253aac0
call fcn.0040f4a0
add esp, 4
test eax, eax
jne 0x409d82
push 0x253aac0
push str._s_not_found
push 0x11e4
push str.TestIfWeNeedToSendDigestTable
push 1
call fcn.00401210
add esp, 0x14
push 1
call fcn.004017c0
push 0x800
mov edx, 0x42e7e0
mov ecx, eax
call fcn.00410f40
add esp, 4
mov esi, eax
call fcn.00413cf0
mov ebx, edx
push ebx
mov edi, eax
push edi
push str.File_size_is__lld_bytes
push 0x11eb
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
add esp, 0x18
or edi, ebx
jne 0x409de0
push str.__chaineddigests_file_was_0_bytes__not_sending_any_chained_digest_tables
push 0x11ef
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 [0x238a7ac]
test eax, eax
jl 0x409e07
mov ecx, dword [0x238a7a8]
jg 0x409df5
test ecx, ecx
je 0x409e07
push 0
push eax
push ecx
push esi
call fcn.0041935a
mov eax, dword [0x238a7ac]
add esp, 0x10
mov ecx, dword [0x3a8659c]
mov edx, dword [0x3a86598]
push ecx
push edx
push 0x253aac0
push eax
mov eax, dword [0x238a7a8]
push eax
push str.At_location__lld_in__s_attempting_to_read__lld_bytes
push 0x11f7
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
mov ecx, dword [0x3a86598]
add esp, 0x24
push esi
push ecx
push 1
push 0x277b380
call fcn.00419c29
push esi
mov edi, eax
xor ebx, ebx
call fcn.0041a4c4
add esp, 0x14
push ebx
push edi
push str.BytesRead_is__lld_bytes
push 0x11fd
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
mov edx, edi
add esp, 0x18
or edx, ebx
jne 0x409e90
push 0x253aac0
push str.Read_0_bytes_from__s
push 0x1201
jmp 0x409d6c
push ebx
push edi
mov byte [0x2389f29], bl
call fcn.0040b140
add esp, 8
test eax, eax
je 0x409d7b
push 0x100000
push 0x3b88ec0
push 0x277b380
mov byte [0x2389f29], 1
call fcn.00420e80
add esp, 0xc
cmp byte [0x238a7c3], bl
je 0x409f34
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]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409f26
sub eax, edx
mov dword [0x238a844], eax
mov bl, byte [0x238a74a]
mov byte [0x238a74a], 0
call fcn.0040e350
cmp byte [0x2389f33], 0
mov byte [0x238a74a], bl
je 0x409fb5
push str.Got_the_ACK
push 0x122e
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 0x122f
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.00401210
mov edx, dword [0x238a7b8]
xor eax, eax
mov dword [0x238a7a0], eax
mov dword [0x238a7a4], eax
mov eax, dword [0x238a7bc]
shld eax, edx, 5
add esp, 0x20
shl edx, 5
add dword [0x238a7a8], edx
pop edi
pop esi
adc dword [0x238a7ac], eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Digest_Table_was_NOT_ACCEPTED._Cant_continue
push 0x1235
push str.TestIfWeNeedToSendDigestTable
push 1
call fcn.00401210
add esp, 0x10
jmp 0x409d7b