Function at 0x4257a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c44ae
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x519100]
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 0x425845
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4cc2f8]
mov ecx, dword [ebp - 0x20]
call edi
cmp dword [ebp + 0x18], edx
ja 0x425845
mov ecx, dword [ebp + 0x14]
jb 0x42582c
cmp ecx, eax
jae 0x425845
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 [0x4cc2f8]
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 [0x4cc2f8]
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 [0x4cc2f8]
mov ecx, dword [ebp - 0x20]
call edi
cmp dword [ebp - 0x14], edx
ja 0x425928
jb 0x42588e
cmp dword [ebp - 0x2c], eax
ja 0x425928
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.00498320
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 0x425953
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp dword [ebp - 0x14], eax
jne 0x425953
cmp ecx, dword [ebp - 0x28]
jne 0x425953
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.0048471b
mov esp, ebp
pop ebp
ret 0x1c
push str.FileReader:_unable_to_read_file__out_of_range_
lea ecx, [ebp - 0x64]
call fcn.0040b2a0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4c]
call fcn.00425760
push 0x516930
lea eax, [ebp - 0x4c]
push eax
call fcn.00486900
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 - 0x4c]
call fcn.00429310
push 0x516930
lea eax, [ebp - 0x4c]
push eax
call fcn.00486900
int3