Function at 0x45c1a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.0045b980
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.004306b0
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
push 4
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00431910
add esp, 0xc
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x45c21c
jmp 0x45c403
mov edx, dword [ebp + 8]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x10], 0
jne 0x45c259
jmp 0x45c32f
mov edx, dword [ebp + 8]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x45c2cc
mov eax, dword [ebp + 8]
add eax, 0x3c
push eax
lea ecx, [ebp - 0x10]
push ecx
push 1
lea edx, [ebp - 0x1d]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45c2c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0x3e5
je 0x45c2ad
jmp 0x45c2b6
mov dword [ebp - 0xc], 0
jmp 0x45c2c3
push str.ReadFile__
mov ecx, dword [ebp + 8]
call fcn.0045ba70
jmp 0x45c2cc
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x45c309
mov dword [ebp - 0xc], 1
push 1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x3c
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45c309
push str.GetOverlappedResults___in_ReadFile__
mov ecx, dword [ebp + 8]
call fcn.0045ba70
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 8]
mov dl, byte [ebp - 0x1d]
mov byte [ecx], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45c204
cmp dword [ebp - 8], 0
jle 0x45c3e4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x45c3e4
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], 1
jne 0x45c38a
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0045b650
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x84]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0x7f3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x45c3e4
mov ecx, dword [ebp + 8]
call fcn.0045b980
push eax
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x8c]
push eax
call fcn.00431910
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x8c]
push ecx
call fcn.004347a0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x84]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x7f3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x1c], 0
je 0x45c403
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00431514
add esp, 4
mov dword [ebp - 0x1c], 0
mov esp, ebp
pop ebp
ret