Function at 0x6c1ee8
Capabilities:
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a874
mov eax, dword [ebp - 8]
call fcn.0040a874
xor eax, eax
push ebp
push 0x6c266f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x15], 0
call fcn.005fc3ac
test al, al
je 0x6c2628
push 0
push 0
push 3
push 0
push 7
push 1
lea eax, [ebp - 0xc8]
mov ecx, dword [ebp - 4]
mov edx, 0x6c2690
call fcn.0040ba64
mov eax, dword [ebp - 0xc8]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_CreateFileW_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x6c1fba
push 0
push 0x2000000
push 3
push 0
push 0
push 0x20000
mov eax, dword [ebp - 4]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_CreateFileW_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x6c2628
xor edx, edx
push ebp
push 0x6c21ab
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x1000
jae 0x6c1ff3
call fcn.00409f88
jmp 0x6c2628
cmp dword [ebp - 0x30], 0x1400000
jbe 0x6c2006
call fcn.00409f88
jmp 0x6c2628
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xcc]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040bc34
mov eax, dword [ebp - 0xcc]
call fcn.0040b7f8
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceW
test eax, eax
jne 0x6c204e
call fcn.00409f88
jmp 0x6c2628
mov eax, dword [ebp - 0x34]
imul dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x200
jb 0x6c2069
cmp dword [ebp - 0x44], 0x10000
jbe 0x6c2073
call fcn.00409f88
jmp 0x6c2628
mov eax, dword [ebp - 0x30]
xor edx, edx
div dword [ebp - 0x44]
inc eax
mov esi, eax
shl esi, 4
add esi, 0x1c
add esi, 0x400
mov eax, esi
call fcn.004070f4
mov ebx, eax
mov edx, esi
mov eax, ebx
xor ecx, ecx
call fcn.00407f88
push 0
mov ecx, 3
mov edx, 0x1c
mov eax, 9
call fcn.006c1e68
mov edi, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push 8
lea eax, [ebp - 0x28]
push eax
push edi
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
je 0x6c218b
mov eax, dword [ebx]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x6c1e88]
call fcn.0040d2b8
add esp, 4
lea eax, [ebx + 0xc]
call fcn.006c1e28
mov edi, eax
lea eax, [ebp - 0x28]
call fcn.006c1e28
sub edi, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edi
lea eax, [ebx + 0x14]
call fcn.006c1e28
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebx]
cmp eax, 1
jbe 0x6c218b
dec eax
test eax, eax
jle 0x6c218b
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x48], 1
mov edi, dword [ebp - 0x48]
add edi, edi
lea eax, [ebx + edi*8 + 0xc]
call fcn.006c1e28
push eax
lea eax, [ebx + edi*8 - 4]
call fcn.006c1e28
pop edx
sub edx, eax
mov eax, dword [ebp - 0x48]
lea eax, [eax + eax*2]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 8], edx
lea eax, [ebx + edi*8 + 0x14]
call fcn.006c1e28
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx + ecx*2]
mov edi, dword [ebp - 0x10]
mov dword [edi + ecx*4], eax
mov dword [edi + ecx*4 + 4], edx
inc dword [ebp - 0x48]
dec dword [ebp - 0x74]
jne 0x6c2142
mov edx, esi
mov eax, ebx
call fcn.00407110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c21b2
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c2676
lea eax, [ebp - 0xe0]
mov edx, 7
call fcn.0040a7f0
lea eax, [ebp - 0x14]
mov edx, dword [0x6c1eb8]
call fcn.0040d3dc
lea eax, [ebp - 0x10]
mov edx, dword [0x6c1e88]
call fcn.0040d3dc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a7f0
ret