Function at 0x565de0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64faa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0xf0]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x565e4b
cmp eax, dword [ebp + 0xc]
jne 0x565e4b
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00609a4e
lea edx, [eax + eax + 0x14]
push edx
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [ebp - 0x14], edi
jne 0x565e5e
push str.Not_enough_memory_during_call_to_CheckLast___n
mov ecx, esi
call fcn.0055c480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x6f7b78]
mov dword [ebp + 0xc], eax
mov edx, dword [esi + 0x88]
mov ecx, dword [esi + 0xf0]
push ecx
mov byte [ebp - 4], 1
mov eax, dword [edx + 0x10]
push eax
push str._s_d
push edi
call fcn.0060aac7
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x565ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0xc]
push str.Error_reading_saved_last_part__errcode___d._n
push ecx
call fcn.0061fae1
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0055c480
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
jmp 0x565f2d
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x565f10
test ebx, ebx
jne 0x565f10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x565f10
push eax
lea edx, [ebp + 0xc]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.0061fae1
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0055c480
xor edi, edi
jmp 0x565f23
mov ecx, dword [ebp - 0x18]
push 1
push 0
push 0
push ecx
call fcn.0060c730
add edi, eax
adc ebx, edx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xf8]
mov ecx, dword [esi + 0xfc]
mov edx, dword [esi + 0xa8]
add eax, edi
adc ecx, ebx
cmp eax, edx
jne 0x56606f
cmp ecx, dword [esi + 0xac]
jne 0x56606f
push 0x70
call fcn.00622acb
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x565f77
call fcn.00567150
mov edi, eax
jmp 0x565f79
xor edi, edi
test edi, edi
mov byte [ebp - 4], 1
jne 0x565fb8
push str.Not_enough_memory_during_call_to_CheckLast___n
mov ecx, esi
call fcn.0055c480
mov eax, dword [ebp - 0x14]
push eax
call fcn.00622af4
add esp, 4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0xd4]
mov ebx, dword [ebp - 0x14]
mov dword [edi + 0x64], ecx
mov edx, dword [esi + 0xdc]
push ebx
mov ecx, edi
mov dword [edi + 0x68], edx
call fcn.00567230
test eax, eax
je 0x565ff8
mov ecx, edi
call fcn.005671a0
push edi
call fcn.00622af4
add esp, 4
mov ecx, esi
push str.Error_setting_filename_during_call_to_CheckLast___n
call fcn.0055c480
push ebx
jmp 0x565f91
mov eax, dword [esi + 0xf0]
mov ecx, dword [esi + 0x98]
cmp eax, ecx
mov dword [esi + 0xcc], 0
jg 0x566014
mov eax, ecx
push str.The_last_chunk_is_full._n
mov ecx, esi
mov dword [esi + 0x94], eax
call fcn.0055c480
mov eax, dword [esi + 0x8c]
push ebx
mov ecx, dword [eax + 0x58]
mov dword [edi + 0x58], ecx
mov edx, dword [esi + 0x8c]
mov dword [edx + 0x58], edi
mov dword [esi + 0x8c], edi
mov dword [edi + 0x14], 1
mov dword [edi], 0
mov eax, dword [esi + 0xf0]
mov dword [edi + 0x60], eax
mov ecx, dword [esi + 0xf8]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0xfc]
mov dword [edi + 0xc], edx
jmp 0x565f91
mov ebx, dword [ebp - 0x14]
push ebx
jmp 0x565f91