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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4d
push 0
push 0
dec ecx
jne 0x4853e8
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404b60
xor eax, eax
push ebp
push 0x4857da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.0040487c
lea eax, [ebp - 0x238]
mov edx, 0x4857f0
call fcn.00404978
mov eax, dword [ebp - 0x238]
call fcn.00404b70
push eax
call sub.kernel32.dll_GetDriveTypeA
mov edx, eax
sub edx, 2
jb 0x4857b4
cmp eax, 6
ja case.default.0x48544e
jmp dword [eax*4 + 0x485455]
mov byte [ebx + 8], 0
jmp case.default.0x48544e
mov byte [ebx + 8], 1
jmp case.default.0x48544e
mov byte [ebx + 8], 2
jmp case.default.0x48544e
mov byte [ebx + 8], 3
jmp case.default.0x48544e
mov byte [ebx + 8], 4
jmp case.default.0x48544e
mov byte [ebx + 8], 5
jmp case.default.0x48544e
mov byte [ebx + 8], 6
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.004046e8
push pe_nt_image_headers32
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebx + 0xc]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x23c]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.0040487c
lea eax, [ebp - 0x23c]
mov edx, 0x4857f0
call fcn.00404978
mov eax, dword [ebp - 0x23c]
call fcn.00404b70
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4855ec
lea eax, [ebx + 0x18]
lea edx, [ebp - 0x134]
mov ecx, pe_nt_image_headers32
call fcn.00404904
lea eax, [ebx + 0x1c]
lea edx, [ebp - 0x234]
mov ecx, pe_nt_image_headers32
call fcn.00404904
mov al, byte [0x4857f4]
mov byte [ebx + 0x20], al
mov eax, dword [ebp - 0x34]
and eax, 2
cmp eax, 2
jne 0x485545
mov al, byte [0x4857f8]
or al, byte [ebx + 0x20]
mov byte [ebx + 0x20], al
mov eax, dword [ebp - 0x34]
and eax, 1
cmp eax, 1
jne 0x48555b
mov al, byte [0x4857fc]
or al, byte [ebx + 0x20]
mov byte [ebx + 0x20], al
mov eax, dword [ebp - 0x34]
and eax, 4
cmp eax, 4
jne 0x485571
mov al, byte [0x485800]
or al, byte [ebx + 0x20]
mov byte [ebx + 0x20], al
mov eax, dword [ebp - 0x34]
and eax, 8
cmp eax, 0x10
jne 0x485587
mov al, byte [0x485804]
or al, byte [ebx + 0x20]
mov byte [ebx + 0x20], al
mov eax, dword [ebp - 0x34]
and eax, 8
cmp eax, 0x8000
jne 0x48559f
mov al, byte [0x485808]
or al, byte [ebx + 0x20]
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0xc]
call fcn.0040732c
movzx eax, ax
lea ecx, [ebp - 0x240]
mov edx, 4
call fcn.00408c60
push dword [ebp - 0x240]
push 0x485814
lea ecx, [ebp - 0x244]
movzx eax, word [ebx + 0xc]
mov edx, 4
call fcn.00408c60
push dword [ebp - 0x244]
lea eax, [ebx + 0x10]
mov edx, 3
call fcn.00404a30
mov eax, dword [ebp - 4]
mov al, byte [eax]
sub al, 0x41
inc eax
call fcn.004097e0
cmp edx, 0xffffffff
jne 0x485601
cmp eax, 0xffffffff
setne al
mov byte [ebx + 0x14], al
cmp byte [ebx + 0x14], 0
je 0x4857b4
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 - 0x248]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.0040487c
lea eax, [ebp - 0x248]
mov edx, 0x4857f0
call fcn.00404978
mov eax, dword [ebp - 0x248]
call fcn.00404b70
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x48565d
mov esi, dword [ebp - 8]
imul esi, dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24c]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.0040487c
lea eax, [ebp - 0x24c]
mov edx, 0x4857f0
call fcn.00404978
mov eax, dword [ebp - 0x24c]
call fcn.00404b70
push eax
mov eax, dword [0x499228]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4856b7
mov eax, esi
imul dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, esi
imul dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x250]
call fcn.00408c38
mov edx, dword [ebp - 0x250]
lea eax, [ebx + 0x24]
call fcn.004046e8
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x254]
call fcn.00408c38
mov edx, dword [ebp - 0x254]
lea eax, [ebx + 0x28]
call fcn.004046e8
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x258]
call fcn.00408c38
mov edx, dword [ebp - 0x258]
lea eax, [ebx + 0x2c]
call fcn.004046e8
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x25c]
call fcn.00408c38
mov edx, dword [ebp - 0x25c]
lea eax, [ebx + 0x30]
call fcn.004046e8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x260]
call fcn.00408c38
mov edx, dword [ebp - 0x260]
lea eax, [ebx + 0x34]
call fcn.004046e8
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x264]
call fcn.00408c38
mov edx, dword [ebp - 0x264]
lea eax, [ebx + 0x38]
call fcn.004046e8
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x268]
call fcn.00408c38
mov edx, dword [ebp - 0x268]
lea eax, [ebx + 0x3c]
call fcn.004046e8
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x26c]
call fcn.00408c38
mov edx, dword [ebp - 0x26c]
lea eax, [ebx + 0x40]
call fcn.004046e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4857e1
lea eax, [ebp - 0x26c]
mov edx, 0xe
call fcn.004046b8
lea eax, [ebp - 4]
call fcn.00404694
ret