Function at 0x57fae3
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x40
mov eax, 0x6bb13d
call fcn.00664608
sub esp, 0x130
xor eax, eax
mov dword [ebp + 0x18], 0xf
push ebx
push esi
mov dword [ebp + 4], eax
mov ebx, ecx
push edi
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x14], eax
mov byte [ebp + 4], al
mov esi, dword [ebp + 0x4c]
lea ecx, [ebp + 4]
push esi
mov dword [ebp - 4], eax
call fcn.00425b84
mov edx, dword [ebp + 0x50]
lea eax, [esi + edx]
mov dword [ebp], eax
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jbe 0x57fea8
mov edi, esi
sub edi, ecx
add edi, edx
cmp edi, dword [ebx + 0x24]
jb 0x57fb45
mov edi, dword [ebx + 0x24]
push 1
lea ecx, [ebp - 0x13c]
call fcn.0043cc35
push str._bytes_of_received_message
push edi
push str.reading
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 1
push eax
call fcn.00445564
mov ecx, eax
call fcn.0044578b
push eax
call fcn.00445564
lea eax, [ebx + 0x58]
push eax
lea eax, [ebp + 0x3c]
push eax
push edi
push dword [ebp + 0x54]
push dword [ebx + 0x8c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx + 0x9c], eax
test esi, esi
jne 0x57fd77
cmp eax, 0x3e5
je 0x57fc2a
xor eax, eax
mov dword [ebp + 0x38], 0xf
push 0xc
mov dword [ebp + 0x24], eax
lea ecx, [ebp + 0x24]
push str.reading_pipe
mov dword [ebp + 0x34], eax
mov byte [ebp + 0x24], al
call fcn.00410407
lea eax, [ebx + 0x9c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 0x40]
mov ecx, ebx
push eax
lea eax, [ebp + 0x24]
push eax
push 9
call fcn.0057e389
mov eax, dword [ebp + 0x38]
cmp eax, 0x10
jb 0x57fe18
mov ecx, dword [ebp + 0x24]
inc eax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x1c], ecx
cmp eax, 0x1000
jb 0x57fc1c
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
jmp 0x57fe18
xor esi, esi
lea eax, [ebx + 0x58]
cmp dword [eax], 0x103
jne 0x57fc4f
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
add esi, 0x64
cmp esi, 0x2710
jb 0x57fc2c
jmp 0x57fd1b
push 1
lea ecx, [ebp + 0x3c]
push ecx
push eax
push dword [ebx + 0x8c]
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
lea ecx, [ebp - 0xa4]
push 1
test eax, eax
je 0x57fcb7
call fcn.0043cc35
push dword [ebp + 0x14]
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
push str.:_offset
push dword [ebp + 0x3c]
push str.overlapped_read
push eax
call fcn.00445564
mov ecx, eax
call fcn.0044578b
push eax
call fcn.00445564
mov ecx, eax
call fcn.0043cf21
push dword [ebp + 0x3c]
lea ecx, [ebp + 4]
push dword [ebp + 0x54]
call fcn.004105af
jmp 0x57fd0c
call fcn.0043cc35
push edi
push str.overlapped_result_when_reading
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 4
push eax
call fcn.00445564
mov ecx, eax
call fcn.0044578b
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00440063
lea eax, [ebx + 0x9c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp + 0x40]
mov ecx, ebx
push eax
lea eax, [ebp + 0x24]
push eax
push 0xb
call fcn.0057e389
lea ecx, [ebp + 0x24]
call fcn.00410858
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.0043d111
cmp esi, 0x2710
jb 0x57fe18
push 1
lea ecx, [ebp - 0xa4]
call fcn.0043cc35
push edi
push str.waiting_after_reading
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 6
push eax
call fcn.00445564
mov ecx, eax
call fcn.0044578b
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00440063
lea eax, [ebx + 0x9c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x24]
push eax
push 0xa
jmp 0x57fdee
cmp dword [ebp + 0x3c], edi
jae 0x57fe0a
push 1
lea ecx, [ebp - 0xa4]
call fcn.0043cc35
push str._reading_pipe
push edi
push str._requested
push dword [ebp + 0x3c]
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 8
push 0x7159d8
push eax
call fcn.00445564
mov ecx, eax
call fcn.0044578b
push eax
call fcn.00445564
mov ecx, eax
call fcn.0044578b
push eax
call fcn.00445564
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00440063
lea eax, [ebx + 0x9c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x24]
push eax
push 0xc
mov ecx, ebx
call fcn.0057e389
lea ecx, [ebp + 0x24]
call fcn.00410858
lea ecx, [ebp - 0xa4]
call fcn.0043d111
jmp 0x57fe18
push dword [ebp + 0x3c]
lea ecx, [ebp + 4]
push dword [ebp + 0x54]
call fcn.004105af
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0
call fcn.0043d111
cmp dword [ebp + 0x40], 0
mov esi, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x50]
lea eax, [esi + edx]
je 0x57fb2c
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp]
cmp eax, ecx
jbe 0x57fea8
push 1
lea ecx, [ebp - 0x13c]
call fcn.0043cc35
push str._reading_pipe
push dword [ebp + 0x14]
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0xa
push str._actual
push esi
push str.expected
push eax
call fcn.00445564
mov ecx, eax
call fcn.0044578b
push eax
call fcn.00445564
mov ecx, eax
call fcn.0043cf21
push eax
call fcn.00445564
cmp dword [ebp + 0x40], 0
jne 0x57fe9b
mov dword [ebp + 0x40], 3
lea ecx, [ebp - 0x13c]
call fcn.0043d111
jmp 0x57ff07
and dword [ebp + 0x24], 0
lea eax, [ebp + 4]
and dword [ebp + 0x34], 0
lea ecx, [ebp + 0x24]
push 0xffffffffffffffff
push edx
push eax
mov dword [ebp + 0x38], 0xf
call fcn.00437739
mov ecx, dword [ebp + 0x58]
lea eax, [ebp + 0x24]
push eax
call fcn.004100cf
mov eax, dword [ebp + 0x38]
cmp eax, 0x10
jb 0x57ff07
mov ecx, dword [ebp + 0x24]
inc eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x4c], ecx
cmp eax, 0x1000
jb 0x57fefe
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x4c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x4c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
cmp eax, 0x10
jb 0x57ff3f
mov ecx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x4c], ecx
cmp eax, 0x1000
jb 0x57ff36
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x4c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x4c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x44
leave
ret 0x10