Function at 0x453d30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
xor eax, eax
push ebx
mov dword [esp + 0x18], eax
push esi
push edi
mov dword [esp + 0x24], eax
push str.Read_Thread_Proc:_Begin_n
xor edi, edi
mov dword [esp + 0x2c], eax
push 2
mov ebx, ecx
push 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edi
call fcn.004048e0
add esp, 0xc
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esp + 0x2c], eax
jne 0x453dab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEvent_Failed_with_Err:__d_n
push 1
push 1
call fcn.004048e0
add esp, 0x10
push str.Read_Thread_Proc_:_End_n
push 2
push 1
call fcn.004048e0
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
push 0x2014
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x453df8
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Read_Thread_Proc_buffer_allocation_failed_n
push 1
push 1
call fcn.004048e0
add esp, 0xc
push str.Read_Thread_Proc_:_End_n
push 2
push 1
call fcn.004048e0
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov dword [esi + 0x200c], 0x1000
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x50]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x50]
cmp ecx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jne 0x453e26
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebp
lea ebp, [esi + 0x1004]
mov ecx, 0x400
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x200c]
mov dword [ebp], eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 4]
test eax, eax
je 0x453eda
lea ecx, [esp + 0x20]
lea ebp, [esi + 0x1004]
push ecx
push ebp
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453e82
push str.ReadFile_returned_successfully._n
push 2
push 1
call fcn.004048e0
add esp, 0xc
jmp 0x453e9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_returned_with_Err:__d_n
push 1
push 1
call fcn.004048e0
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x453ee2
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push 0
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x453f57
dec eax
jne 0x453ee2
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
push str.Read_Thread_Proc:_Exit_Signaled_._n
push 2
push 1
call fcn.004048e0
add esp, 0xc
mov dword [esp + 0x10], 1
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x453e2d
lea edi, [ebx + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x34]
add esp, 4
test eax, eax
pop ebp
je 0x453f24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
je 0x453f34
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.Read_Thread_Proc:_End_n
push 2
push 1
call fcn.004048e0
add esp, 0xc
mov ax, 1
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov edx, dword [ebx + 4]
push 0
lea ecx, [esp + 0x24]
push ebp
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x453fb8
push str.GetOverlappedResult_returned_successfully._n
push 2
push 1
call fcn.004048e0
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
jbe 0x453fa2
push str.Process_the_received_packet._n
push 2
push 1
call fcn.004048e0
mov eax, dword [ebx]
add esp, 0xc
mov ecx, ebx
push esi
call dword [eax]
jmp 0x453ee2
push str.Read_0_length_packet._n
push 2
push 1
call fcn.004048e0
add esp, 0xc
jmp 0x453ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetOverlappedResult_returned_with_Err:__d_n
push 1
push 1
call fcn.004048e0
add esp, 0x10
jmp 0x453ee2