Function at 0x4ddfb8
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb74
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x488], edx
mov dword [ebp - 0x48c], edx
mov dword [ebp - 0x484], edx
mov dword [ebp - 0x380], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4de2c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53f320], 0x7f5
lea esi, [ebp - 0x224]
mov byte [esi + 0xd], 0xb
mov byte [esi + 0xe], 0
mov byte [esi + 0xc], 0xac
mov bl, 0x63
lea eax, [ebp - 0x380]
mov edx, ebx
call fcn.00404798
mov edx, dword [ebp - 0x380]
lea eax, [ebp - 4]
mov ecx, 0x4de2e0
call fcn.004048d8
lea eax, [ebp - 4]
call fcn.00404adc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4de09a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.00404adc
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov eax, dword [ebp - 0xc]
shr eax, 9
imul dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x800
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.00405944
call fcn.00405968
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
jmp 0x4de0a8
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov al, bl
mov edx, dword [ebp - 0x20]
mov dword [esi + eax*4 - 0x17c], edx
inc ebx
cmp bl, 0x67
jne 0x4de012
lea ebx, [esi + 0x20]
mov edx, ebx
lea eax, [esi + 0x10]
mov ecx, 0x10
call fcn.00471140
mov dword [ebp - 0x268], 0x40
lea eax, [ebp - 0x268]
call fcn.004d92b4
push 0
push 0x100000
mov eax, dword [ebp - 0x260]
mov edx, dword [ebp - 0x25c]
call fcn.00405968
mov dword [ebx + 0x10], eax
push 0
push 0x100000
mov eax, dword [ebp - 0x258]
mov edx, dword [ebp - 0x254]
call fcn.00405968
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x484]
call fcn.004713b8
mov edx, dword [ebp - 0x484]
lea eax, [ebp - 0x480]
mov ecx, 0xff
call fcn.00404868
lea edx, [ebp - 0x480]
lea eax, [ebx + 0x1c]
mov cl, 0x1f
call fcn.00402f88
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x44], eax
lea edx, [ebp - 0x379]
mov eax, dword [0x5497a4]
call fcn.00471960
test al, al
je 0x4de21c
cmp dword [ebp - 0x36c], 0
jbe 0x4de1ce
mov eax, dword [ebp - 0x36c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x488]
call fcn.00409420
push dword [ebp - 0x488]
push 0x4de2ec
lea eax, [ebp - 0x48c]
lea edx, [ebp - 0x368]
mov ecx, pe_nt_image_headers32
call fcn.00404820
push dword [ebp - 0x48c]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040494c
jmp 0x4de1e1
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x368]
mov ecx, pe_nt_image_headers32
call fcn.00404820
mov edx, dword [ebp - 0x24]
mov eax, 0x4de2f8
call fcn.00404bc8
test eax, eax
jle 0x4de200
lea edx, [ebp - 0x24]
mov ecx, 0x400
xchg edx, eax
call fcn.00404b24
mov eax, dword [ebp - 0x24]
call fcn.0040488c
cmp eax, 0x5f
jle 0x4de224
lea eax, [ebp - 0x24]
mov edx, 0x5f
call fcn.00404c10
jmp 0x4de224
lea eax, [ebp - 0x24]
call fcn.004045b8
mov eax, dword [0x540538]
add eax, 0x64
mov edx, dword [ebp - 0x24]
call fcn.00409dd0
mov eax, dword [0x540990]
cmp byte [eax], 0
je 0x4de255
mov eax, dword [0x540538]
push esi
push edi
mov esi, eax
lea edi, [ebx + 0x48]
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x4de264
lea eax, [ebx + 0x48]
xor ecx, ecx
mov edx, 0xfc
call fcn.00403098
call sub.kernel32.dll_GetTickCount
mov ecx, 0xea60
xor edx, edx
div ecx
mov dword [ebx + 0x144], eax
mov dword [esi + 4], 0x168
mov edx, esi
mov eax, edi
call fcn.004dd610
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de2cf
lea eax, [ebp - 0x48c]
mov edx, 3
call fcn.004045dc
lea eax, [ebp - 0x380]
call fcn.004045b8
lea eax, [ebp - 0x24]
call fcn.004045b8
lea eax, [ebp - 4]
call fcn.004045b8
ret