Function at 0x5779d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a1a5
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5ed130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str._sr.dat
call fcn.00401fe0
add eax, 0x88
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405830
add esp, 0xc
mov dword [ebp - 4], 0
push str.file_sr.dat
call fcn.00580000
add esp, 4
push eax
lea ecx, [ebp - 0x48]
call fcn.00401580
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401700
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401700
mov ecx, eax
mov eax, 8
call fcn.0042ba70
add esp, 4
test eax, eax
je 0x577a78
push 0x5dd79c
mov edx, dword [0x5f9324]
push edx
call fcn.00567c70
push eax
call fcn.005679e0
add esp, 0xc
jmp 0x577c04
push 0x5dd7b4
mov eax, dword [0x5f9324]
push eax
call fcn.00567c70
push eax
call fcn.005679e0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push accept
lea ecx, [ebp - 0x48]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
je 0x577c04
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 4
jbe 0x577bfa
cmp dword [ebp - 0x50], 0xffffffff
je 0x577bfa
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x50]
push edx
call fcn.0043d429
add esp, 4
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x58], eax
push 0
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x50]
cmp edx, dword [ebp - 0x5c]
jne 0x577be8
mov byte [ebp - 0x5d], 0
mov dword [ebp - 0x54], 0
jmp 0x577b38
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x50]
sub ecx, 1
cmp dword [ebp - 0x54], ecx
jae 0x577b6d
mov edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x54]
movzx eax, byte [edx]
xor eax, 0xff
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x54]
mov byte [ecx], al
mov edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x54]
movzx eax, byte [edx]
movzx ecx, byte [ebp - 0x5d]
add ecx, eax
mov byte [ebp - 0x5d], cl
jmp 0x577b2f
movzx edx, byte [ebp - 0x5d]
xor edx, 0xfe
mov byte [ebp - 0x5d], dl
movzx eax, byte [ebp - 0x5d]
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x50]
movzx edx, byte [ecx - 1]
cmp eax, edx
jne 0x577be8
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
imul edx, edx, 0x2ac
add edx, 5
cmp dword [ebp - 0x50], edx
jne 0x577be8
mov eax, dword [ebp - 0x58]
add eax, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], 0
jmp 0x577bc0
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x5c]
jae 0x577be8
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00414d70
mov edx, dword [ebp - 0x64]
add edx, 0x2ac
mov dword [ebp - 0x64], edx
jmp 0x577bb7
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00441a40
add esp, 4
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret