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

Disassembly:
push 0xffffffffffffffff
push 0x5d14c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov eax, dword [esp + 0x24]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 7
push SysReAllocStringLen
mov ebx, ecx
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x57d529
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x57d51e
mov dword [eax], ebp
mov eax, dword [esp + 0x24]
mov dword [eax], edi
jmp 0x57d6d8
push edi
push edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x57d55e
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x57d54c
mov dword [eax], esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov dword [eax], edi
jmp 0x57d6d8
mov eax, dword [0x87e4b4]
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], edi
cmp esi, eax
mov edi, esi
jne 0x57d573
xor edi, edi
push 0
push edi
lea ecx, [esp + 0x30]
call fcn.00563df0
mov ecx, dword [esp + 0x28]
mov dword [ecx], edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x57d597
mov dword [eax], 0
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x1c], 0
je 0x57d5a8
mov eax, dword [eax + 8]
jmp 0x57d5aa
xor eax, eax
lea edx, [esp + 0x10]
push 0
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x57d604
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x57d5cc
mov dword [eax], 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esi], 0
je 0x57d6d6
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x57d6d6
jmp 0x57d6cd
mov eax, dword [esp + 0x28]
test eax, eax
je 0x57d611
mov eax, dword [eax + 8]
jmp 0x57d613
xor eax, eax
push esi
push eax
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
call fcn.0057d260
lea ecx, [esp + 0x28]
mov ebx, 1
cmp ecx, eax
mov byte [esp + 0x1c], bl
je 0x57d655
mov eax, dword [eax]
test eax, eax
je 0x57d63c
mov ecx, dword [eax]
jmp 0x57d63e
xor ecx, ecx
test eax, eax
je 0x57d647
mov eax, dword [eax + 8]
jmp 0x57d649
xor eax, eax
push ecx
push eax
push ebx
lea ecx, [esp + 0x34]
call fcn.00564fa0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x1c], 0
test eax, eax
je 0x57d67d
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x57d67d
push eax
call fcn.005ad4ce
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esi], 0
je 0x57d6a6
cmp dword [eax + 4], ebx
jle 0x57d69f
mov dword [esi], eax
jmp 0x57d6b7
mov ecx, dword [eax]
mov eax, dword [eax + 8]
jmp 0x57d6aa
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov ecx, esi
call fcn.00564240
mov eax, dword [esp + 0x28]
test eax, eax
je 0x57d6d6
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x57d6d6
push eax
call fcn.005ad4ce
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc