Function at 0x4cdfda
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bc0
xor eax, eax
push ebp
push 0x4ce276
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 8]
add eax, 0x28
call fcn.00404700
mov eax, dword [ebp - 8]
add eax, 0x2c
call fcn.00404700
mov eax, dword [ebp - 8]
add eax, 0x30
call fcn.00404700
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [ebp - 0x38], 0xff
mov eax, dword [ebp - 0x38]
call fcn.00408e10
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x4ce24c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
mov ecx, 0x4ce28c
mov edx, dword [ebp - 4]
call fcn.00404a1c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
call fcn.0040a434
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.default.0x4cdfb7
jmp dword [eax*4 + 0x4cdfbe]
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp case.default.0x4cdfb7
mov eax, dword [ebp - 8]
mov byte [eax], 1
jmp case.default.0x4cdfb7
mov eax, dword [ebp - 8]
mov byte [eax], 2
jmp case.default.0x4cdfb7
mov eax, dword [ebp - 8]
mov byte [eax], 3
jmp case.default.0x4cdfb7
mov eax, dword [ebp - 8]
mov byte [eax], 4
jmp case.default.0x4cdfb7
mov eax, dword [ebp - 8]
mov byte [eax], 5
jmp case.default.0x4cdfb7
mov eax, dword [ebp - 8]
mov byte [eax], 6
push 1
call sub.kernel32.dll_SetErrorMode
mov word [ebp - 0xa], ax
xor eax, eax
push ebp
push 0x4ce22f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
add eax, 0x10
push eax
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
mov eax, dword [ebp - 8]
add eax, 4
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x4ce217
mov eax, 8
call fcn.00402abc
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4ce121
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4ce0c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x5626c8]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x24], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ce106
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce128
mov edx, 8
mov eax, dword [ebp - 0x24]
call fcn.00402aec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce236
movzx eax, word [ebp - 0xa]
push eax
call sub.kernel32.dll_SetErrorMode
ret