Function at 0x4c6360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ba90
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x4c6652
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4c6652
mov edi, dword [eax]
mov dword [ebp - 0x24], edi
cmp edi, esi
je 0x4c6652
cmp dword [ebx + 0x4804], esi
jne 0x4c63de
lea eax, [esi + 6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x54], eax
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4c641d
push str.CreateEvent
call esi
mov ecx, eax
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
cmp edi, 0x1000
jle 0x4c6497
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
xor edi, edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
sub eax, edi
je 0x4c647e
cmp eax, 0x1000
mov dword [ebp - 0x18], 0x1000
jge 0x4c6448
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
push esi
mov ecx, ebx
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x4c646d
mov eax, dword [ebp - 0x18]
add edi, eax
mov dword [ebp - 0x28], edi
add esi, eax
mov dword [ebp - 0x2c], esi
jmp 0x4c6430
mov dword [ebp - 0x30], eax
push 0x5814b0
lea ecx, [ebp - 0x30]
push ecx
call fcn.004fd5a3
test edi, edi
je 0x4c6649
mov edx, dword [ebp + 0xc]
mov dword [edx], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x4c66a0
mov eax, dword [ebx]
mov ecx, ebx
mov edx, dword [eax + 0x24]
call edx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4c64bc
mov dword [ebp - 0x34], 0xaa
push 0x5814b0
lea eax, [ebp - 0x34]
push eax
call fcn.004fd5a3
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 0x4804]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c6630
call esi
mov esi, eax
cmp esi, 0x26
je 0x4c661b
cmp esi, 0x3e5
je 0x4c655c
push 0x5746b8
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
cmp esi, 0x57
jne 0x4c654b
push 0
mov edx, dword [ebp + 0xc]
push edx
push edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 0x4804]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c653b
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x4c66a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5746b8
jmp 0x4c6637
mov dword [ebp - 0x38], esi
push 0x5814b0
lea edx, [ebp - 0x38]
push edx
call fcn.004fd5a3
push 0x64
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x64
mov dword [ebp - 0x40], edi
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebx + 0x4804]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4c6649
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x26
je 0x4c6606
cmp esi, 0x3e4
je 0x4c65c9
push 0x574690
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 0x3c], esi
push 0x5814b0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004fd5a3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
mov dword [ebp - 0x40], edi
mov eax, dword [ebp + 0x10]
cmp edi, eax
jbe 0x4c6570
push eax
push str.Read_Time_Out__MAX_TIME____d_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x44], 0x102
push 0x5814b0
lea edx, [ebp - 0x44]
push edx
call fcn.004fd5a3
mov dword [ebp - 0x48], 0
push 0x5814b0
lea eax, [ebp - 0x48]
push eax
call fcn.004fd5a3
mov dword [ebp - 0x4c], 0
push 0x5814b0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.004fd5a3
call esi
push str.Read_Data
mov dword [ebp - 0x14], eax
mov ecx, eax
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x4c66a0
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x20], 0
je 0x4c66af
mov eax, dword [ebx]
mov ecx, ebx
mov edx, dword [eax + 0x28]
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc