Function at 0x4c50e6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a1d4a
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x816078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 0x14], 0
cmp dword [ecx + 0x1c], 0
mov edi, dword [ebp + 0x14]
je 0x4c516d
cmp edi, 0x40000
jb 0x4c516d
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x28]
mov ecx, dword [ecx + 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x70]
push eax
push 0
push edi
push dword [ebp + 0xc]
movlpd qword [ebp - 0x28], xmm0
push dword [ebp + 8]
mov dword [ebp - 0x70], 0x6fe5cc
movlpd qword [ebp - 0x68], xmm0
call fcn.004c3637
mov edx, dword [ebp + 0x18]
mov esi, eax
mov ecx, dword [ebp - 0x28]
add dword [edx], ecx
jmp 0x4c5342
mov eax, dword [ebp + 0x10]
mov esi, 0x10000
mov edx, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp + 0x10], eax
cmp edi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x64], eax
cmovb ebx, edi
mov eax, dword [ebp + 0x1c]
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], edx
cmp dword [eax + 4], 0
je 0x4c5212
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [ebp + 0x1c]
sub eax, dword [ecx + 0x10]
sbb edx, dword [ecx + 0x14]
mov dword [ebp + 0xc], edx
jne 0x4c51b9
cmp eax, 0xfa
jb 0x4c520b
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax + 4]
and dword [ebp - 4], 0
add eax, 0x18
mov ecx, dword fs:[0x2c]
push eax
push edx
mov esi, dword [ecx]
mov ecx, dword [edx]
inc dword [esi + 4]
call dword [ecx + 0xc]
dec dword [esi + 4]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x4c51f0
mov esi, 0x80004004
jmp 0x4c520d
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [ebp + 0x1c]
mov dword [0x829758], eax
mov dword [ecx + 0x10], eax
mov eax, edx
mov dword [ecx + 0x14], edx
mov dword [0x82975c], eax
xor esi, esi
mov ecx, dword [ebp - 0x10]
jmp 0x4c5214
xor esi, esi
test esi, esi
js 0x4c5342
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ecx + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp + 0xc], edx
test eax, eax
jne 0x4c524b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x1c], 0
je 0x4c5279
test eax, eax
jne 0x4c5299
cmp edx, 0x3e5
jne 0x4c527d
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ecx + 0x14]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
neg eax
sbb eax, eax
neg eax
test eax, eax
jne 0x4c5299
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x4c5342
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add dword [ecx], eax
add dword [ebp + 0x14], eax
adc edx, 0
add dword [ebp + 0x10], eax
mov dword [ebp - 0x18], edx
sub edi, eax
je 0x4c5342
mov ecx, dword [ebp - 0x10]
cmp ebx, eax
jne 0x4c52d0
mov eax, 0x10000
mov ebx, eax
cmp edi, eax
mov eax, dword [ebp + 0x14]
jmp 0x4c5188
cmp dword [ecx + 0x1c], 0
mov edx, vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
setne byte [ebp - 0x20]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x6dbd54
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], str.m_fOverlapped
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], edx
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x30], str.cbData
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], edi
push eax
push ecx
push ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], str.lastErrorFromReadFile
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], str.cbRead
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], str.dwChunkSize
mov dword [ebp - 0x50], ebx
call fcn.004c57d6
mov esi, 0x8000ffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18