Function at 0x427c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6476
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
lea esi, [ecx + 4]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], 0
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
cmp byte [ebp + 0x1c], 0
je 0x427d25
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4f1320]
mov ecx, dword [ebp - 0x20]
call edi
cmp dword [ebp + 0x18], edx
ja 0x427d25
mov ecx, dword [ebp + 0x14]
jb 0x427d0c
cmp ecx, eax
jae 0x427d25
mov eax, dword [ebp - 0x20]
push dword [ebp + 0x18]
push ecx
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4f1320]
mov ecx, dword [ebp - 0x20]
call edi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x4f1320]
mov ecx, dword [ebp - 0x20]
call edi
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4f1320]
mov ecx, dword [ebp - 0x20]
call edi
cmp dword [ebp - 0x14], edx
ja 0x427e08
jb 0x427d6e
cmp dword [ebp - 0x2c], eax
ja 0x427e08
mov edi, dword [ebp - 0x30]
mov dword [edi], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
push dword [ebp - 0x24]
mov dword [ebp - 0x34], 1
call fcn.004b2710
mov edx, dword [ebp - 0x24]
add esp, 4
mov ecx, eax
mov dword [edi + 8], edx
mov eax, dword [ebp - 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [edi], ecx
mov byte [edi + 0x10], 1
lea edi, [ebp - 0x14]
push 0
mov eax, dword [eax + 0x1c]
push edi
push edx
push ecx
mov dword [ebp - 0x14], 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x30]
test eax, eax
je 0x427e23
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp dword [ebp - 0x14], eax
jne 0x427e23
cmp ecx, dword [ebp - 0x28]
jne 0x427e23
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret 0x1c
push str.FileReader:_unable_to_read_file__out_of_range_
lea ecx, [ebp - 0x50]
call fcn.00499150
push 0x542628
lea eax, [ebp - 0x50]
push eax
call fcn.004a869b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0x3b
push str.FileReader:_unable_to_read_file__size___read___code__
push eax
lea ecx, [ebp - 0x50]
call fcn.0042c1b0
push 0x542628
lea eax, [ebp - 0x50]
push eax
call fcn.004a869b
int3