Function at 0x45c7a0
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.0045bf80
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.00430800
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.00431a40
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 0x45c81c
jmp 0x45ca03
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 0x45c859
jmp 0x45c92f
mov edx, dword [ebp + 8]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x45c8cc
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 0x45c8c5
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 0x45c8ad
jmp 0x45c8b6
mov dword [ebp - 0xc], 0
jmp 0x45c8c3
push str.ReadFile__
mov ecx, dword [ebp + 8]
call fcn.0045c070
jmp 0x45c8cc
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x45c909
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 0x45c909
push str.GetOverlappedResults___in_ReadFile__
mov ecx, dword [ebp + 8]
call fcn.0045c070
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 0x45c804
cmp dword [ebp - 8], 0
jle 0x45c9e4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x45c9e4
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], 1
jne 0x45c98a
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0045bc50
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 0x45c9e4
mov ecx, dword [ebp + 8]
call fcn.0045bf80
push eax
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x8c]
push eax
call fcn.00431a40
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.004348d0
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 0x45ca03
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00431644
add esp, 4
mov dword [ebp - 0x1c], 0
mov esp, ebp
pop ebp
ret