Function at 0x408470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp byte [0x4494f1], 0
push ebx
push esi
push edi
je 0x4085f5
mov esi, dword [0x448c00]
cmp esi, 0x35
jbe 0x4085f5
mov eax, dword [0x449440]
xor edx, edx
inc eax
div dword [0x448c2c]
test edx, edx
jne 0x4085f5
push 0x100000
push 0x2a95300
push 0x25816a0
call fcn.0041bbe0
mov ecx, 0x2e8f3c0
add esp, 0xc
lea edx, [ecx + 1]
jmp 0x4084d0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4084d0
sub ecx, edx
je 0x40878a
push str._t_________________________________________
push 0xdd8
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
push str._t________________________________
push 0xdd9
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
push str._t____________________________________
push 0xdda
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
push str._t___________________________________
push 0xddb
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
add esp, 0x40
push 0x42f0e8
push 0xddc
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
push str._t_______________________._______
push 0xddd
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
push dword [0x448c3c]
push dword [0x449440]
push str.Since_CurrentDigestLocation_ld__Need_to_send_digest_table_here_digest_file_offset_ld
push 0xddf
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
add esp, 0x38
xor dl, dl
mov ecx, 0x2e8f3c0
call fcn.0040d270
test eax, eax
je 0x4087ae
push 0x42eea8
mov edx, 0x800
mov ecx, eax
call fcn.0040eb90
add esp, 4
mov edi, eax
mov ecx, edi
call fcn.004111d0
mov esi, eax
push esi
push str.File_size_is__ld_bytes
push 0xdf3
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
add esp, 0x14
test esi, esi
jne 0x4085fc
push str.__chaineddigests_file_was_0_bytes__not_sending_any_chained_digest_tables
push 0xdf7
push str.TestIfWeNeedToSendDigestTable
push 4
call fcn.004011c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x448c3c]
test eax, eax
je 0x408616
push 0
push eax
push edi
call fcn.00415e23
mov eax, dword [0x448c3c]
add esp, 0xc
push dword [0x2681ecc]
push 0x2e8f3c0
push eax
push str.At_location__ld_in__s_attempting_to_read__ld_bytes
push 0xdff
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
add esp, 0x1c
push edi
push dword [0x2681ecc]
push 1
push 0x2a95300
call fcn.00414f9f
push edi
mov esi, eax
call fcn.00415fc1
add esp, 0x14
push esi
push str.BytesRead_is__ld_bytes
push 0xe05
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
add esp, 0x14
test esi, esi
je 0x4087d6
mov ecx, esi
mov byte [0x4494f1], 0
call fcn.00409900
test eax, eax
je 0x4087fe
push 0x100000
push 0x25816a0
push 0x2a95300
mov byte [0x4494f1], 1
call fcn.0041bbe0
add esp, 0xc
cmp byte [0x448c26], 0
je 0x408717
mov eax, dword [0x4494b0]
mov edx, 0x100000
sub edx, eax
lea ecx, [eax + 0x2895240]
call fcn.00409870
push ecx
mov edx, str._data__n
mov ecx, 0x2895240
call fcn.004098b0
mov edx, str._response_value_ACK_
mov ecx, 0x2895240
call fcn.004098b0
mov edx, str.___n__data_
mov ecx, 0x2895240
call fcn.004098b0
mov ecx, 0x2895240
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408708
sub ecx, edx
mov dword [0x4494f8], ecx
mov bl, byte [0x448c0b]
mov byte [0x448c0b], 0
call fcn.0040c2d0
cmp byte [0x448c38], 0
mov byte [0x448c0b], bl
je 0x408808
push str.Got_the_ACK
push 0xe36
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
push str.DIGEST_TABLE_ACCEPTED___Just_RESET_CurrentDigestLocation_to_0__since_now_using_a_new_table
push 0xe37
push str.TestIfWeNeedToSendDigestTable
push 5
call fcn.004011c0
mov eax, dword [0x448c2c]
add esp, 0x20
shl eax, 5
add dword [0x448c3c], eax
mov dword [0x449440], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.ChainedDigestTableFilename_was_not_set_with___chaineddigestsSomeFilename.bin_and_you_have_at_least__ld_digests
push 0xdd3
push str.TestIfWeNeedToSendDigestTable
push 1
call fcn.004011c0
add esp, 0x14
mov ecx, 1
call fcn.004016b0
push 0x2e8f3c0
push str._s_not_found
push 0xdec
push str.TestIfWeNeedToSendDigestTable
push 1
call fcn.004011c0
add esp, 0x14
mov ecx, 1
call fcn.004016b0
push 0x2e8f3c0
push str.Read_0_bytes_from__s
push 0xe09
push str.TestIfWeNeedToSendDigestTable
push 1
call fcn.004011c0
add esp, 0x14
mov ecx, 1
call fcn.004016b0
mov ecx, 1
call fcn.004016b0
push str.Digest_Table_was_NOT_ACCEPTED._Cant_continue
push 0xe3d
push str.TestIfWeNeedToSendDigestTable
push 1
call fcn.004011c0
add esp, 0x10
mov ecx, 1
call fcn.004016b0
int3