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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6c7f5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x20], ecx
jne 0x565856
mov eax, dword [0x7198e0]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x24], edi
je 0x5659fe
mov dword [esp + 0x14], edi
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x274], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
call fcn.0069197a
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x5658d9
mov dword [esp + 0x34], ebx
push 0
lea ecx, [esp + 0x30]
push ecx
push esi
push ebx
push edi
mov byte [esp + 0x280], 1
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x5658fd
push ebx
call fcn.00693d31
add esp, 4
test edi, edi
je 0x5658e4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebx]
add edi, 8
lea eax, [edi + ebx]
mov dword [esp + 0x18], eax
mov eax, dword [eax - 4]
push eax
mov dword [esp + 0x14], eax
call fcn.0069197a
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x565954
mov edx, dword [esp + 0x1c]
push edx
call fcn.00693d31
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x56593b
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ebx
sub esi, edi
push esi
push ecx
mov byte [esp + 0x27c], 2
call fcn.00578370
mov edx, dword [esp + 0x20]
mov ecx, dword [0x732630]
add esp, 0x10
push 3
push 0
push edx
push ebx
call fcn.005782a0
mov eax, 0x76b981db
mul dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov esi, edx
shr esi, 8
mov ecx, esi
imul ecx, ecx, 0x228
push ecx
mov dword [eax + 4], esi
call fcn.0069197a
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov byte [esp + 0x26c], 3
je 0x5659d6
push 0x565750
push esi
push 0x228
push edi
call fcn.00401000
jmp 0x5659d8
xor edi, edi
test edi, edi
mov eax, dword [esp + 0x20]
mov dword [eax], edi
jne 0x565a17
push ebx
call fcn.00693d31
mov edx, dword [esp + 0x20]
push edx
call fcn.00693d31
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00452320
xor al, al
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 4]
test ecx, ecx
mov dword [esp + 0x18], 0
jbe 0x565acf
lea ecx, [ebx + 0x1c8]
xor eax, eax
mov dword [esp + 0x14], ecx
jmp 0x565a40
mov edx, dword [esp + 0x20]
mov esi, ebx
mov ecx, 0x72
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [edx]
add edi, eax
mov ecx, 0x72
lea esi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
sub edi, 0x1c8
mov dword [esp + 0x10], edi
mov ecx, 0x18
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx]
lea edi, [eax + ecx + 0x1c8]
mov ecx, 0x18
lea esi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub esi, 0x60
add edi, 0x228
add ebx, 0x228
mov dword [esp + 0x10], esi
mov esi, dword [edx + 4]
inc ecx
add eax, 0x228
cmp ecx, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
jb 0x565a40
mov eax, dword [esp + 0x28]
test eax, eax
je 0x565ae0
push eax
call fcn.00693d31
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call fcn.00693d31
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x565afc
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x264]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4