Function at 0x45cec0
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.0045c6a0
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 0x45cf3c
jmp 0x45d123
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 0x45cf79
jmp 0x45d04f
mov edx, dword [ebp + 8]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x45cfec
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 0x45cfe5
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 0x45cfcd
jmp 0x45cfd6
mov dword [ebp - 0xc], 0
jmp 0x45cfe3
push str.ReadFile__
mov ecx, dword [ebp + 8]
call fcn.0045c790
jmp 0x45cfec
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x45d029
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 0x45d029
push str.GetOverlappedResults___in_ReadFile__
mov ecx, dword [ebp + 8]
call fcn.0045c790
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 0x45cf24
cmp dword [ebp - 8], 0
jle 0x45d104
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x45d104
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], 1
jne 0x45d0aa
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0045c370
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 0x45d104
mov ecx, dword [ebp + 8]
call fcn.0045c6a0
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 0x45d123
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