Function at 0x608d60
Capabilities:
Get disk size
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659a20
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x67206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x74], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x6c], ebx
call fcn.0060f3a0
push 0
push 0x20000080
push 3
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push 0
cmovae eax, dword [ebp - 0x44]
push 1
push 0x80000000
mov dword [ebx], 0
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x608de4
or esi, eax
jmp 0x608fb0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x608e03
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xffffff38
jmp 0x608fb0
test eax, eax
jne 0x608e15
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x608fb0
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x64]
mov dword [ebx], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
movzx eax, word [eax]
push eax
call fcn.0060e730
xor eax, eax
mov dword [ebp - 0x2c], 0x669c14
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
inc dword [0x674754]
push 0x669810
call fcn.00611370
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x60]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00611030
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0060ed70
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x80]
mov ebx, 0x200
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x84]
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
mov eax, dword [ebp - 0x6c]
cmovne ebx, dword [ebp - 0x78]
mov dword [ebp - 0x70], ebx
mov eax, dword [eax]
add eax, 2
push eax
call fcn.006317ca
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x608eed
mov eax, dword [ebp - 0x6c]
push edi
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffe70
jmp 0x608fa8
push 4
push 0x1000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x608f25
push dword [esi]
call fcn.00631787
mov eax, dword [ebp - 0x6c]
add esp, 4
mov dword [esi], ebx
push edi
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffe0c
jmp 0x608fa8
xor esi, esi
lea eax, [ebp - 0x68]
push esi
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x68], esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x608f78
nop
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x608f78
push eax
mov eax, dword [ebp - 0x74]
push ebx
mov eax, dword [eax]
add eax, esi
push eax
call fcn.006331b0
add esi, dword [ebp - 0x68]
lea eax, [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x68], 0
push 0
push eax
push dword [ebp - 0x70]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x608f40
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [eax]
mov eax, dword [edx]
mov byte [ecx + eax], 0
cmp esi, dword [edx]
jne 0x608fa3
xor esi, esi
jmp 0x608fa8
mov esi, 0xffffff94
lea ecx, [ebp - 0x64]
call fcn.0060ed70
dec dword [0x674754]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x48], 0x669c14
cmp edx, 8
jb 0x608ff3
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x608fe9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x609011
push edx
push ecx
call fcn.006317bc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00631776
mov esp, ebp
pop ebp
ret
call fcn.006375a6
int3