Function at 0x4a8088
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a8446
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4dc164]
mov eax, dword [eax]
call fcn.00482f34
mov eax, dword [ebx + 0x1a4]
call fcn.00404748
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 4], eax
mov esi, 1
mov dword [ebp - 8], 1
jmp 0x4a83b6
cmp dword [ebp - 4], 3
je 0x4a80f7
cmp dword [ebp - 4], 4
jne 0x4a8103
mov byte [ebx + 0x2cc], 0
jmp 0x4a83d7
cmp byte [ebx + 0x17c], 0
je 0x4a8124
push 1
mov ecx, 0x2b11
mov dl, 1
mov eax, dword [0x4a1370]
call fcn.004a7204
call fcn.00403c40
cmp dword [ebx + 0x1b0], 0
jge 0x4a814b
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4a8460
mov edx, 0x2b19
mov eax, ebx
call fcn.004a3760
or dword [ebp - 8], 0x10
jmp 0x4a82df
cmp byte [ebx + 0x60], 0
je 0x4a829a
mov eax, dword [ebx + 0x188]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx + 0x1f4]
test ecx, ecx
je 0x4a8191
mov eax, ecx
cdq
cmp edx, dword [ebx + 0x18c]
jne 0x4a8186
cmp eax, dword [ebx + 0x188]
jae 0x4a8191
jmp 0x4a8188
jge 0x4a8191
mov eax, ecx
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebx + 0x1b0]
mov dword [ebx + 0x1b4], eax
cmp dword [ebp - 0xc], 0
jne 0x4a81ab
cmp dword [ebp - 0x10], 0
jbe 0x4a820d
jmp 0x4a81ad
jle 0x4a820d
mov eax, dword [ebx + 0x1b8]
add eax, 4
add eax, dword [ebx + 0x1f0]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fild qword [ebp - 0x10]
fdivp st(1)
call fcn.00402c04
push edx
push eax
mov eax, dword [ebx + 0x1b4]
cdq
cmp edx, dword [esp + 4]
jne 0x4a81e4
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4a820d
jmp 0x4a81e8
pop edx
pop eax
jge 0x4a820d
mov eax, dword [ebx + 0x1b8]
add eax, 4
add eax, dword [ebx + 0x1f0]
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fild qword [ebp - 0x10]
fdivp st(1)
call fcn.00402c04
mov dword [ebx + 0x1b4], eax
cmp dword [ebp - 0xc], 0
jne 0x4a821b
cmp dword [ebp - 0x10], 0
jbe 0x4a8264
jmp 0x4a821d
jle 0x4a8264
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x4a8488
mov edx, 0x2b1a
mov eax, ebx
call fcn.004a3760
mov eax, dword [ebp - 0x20]
mov edx, dword [ebx + 0x1b0]
inc edx
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x2c], 0
mov edx, dword [ebx + 0x1b4]
inc edx
mov dword [ebp - 0x28], edx
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x30]
mov ecx, 1
call fcn.0040a024
jmp 0x4a82df
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x4a84b8
mov edx, 0x2b26
mov eax, ebx
call fcn.004a3760
mov eax, dword [ebp - 0x34]
mov edx, dword [ebx + 0x1b0]
inc edx
mov dword [ebp - 0x3c], edx
mov byte [ebp - 0x38], 0
lea edx, [ebp - 0x3c]
xor ecx, ecx
call fcn.0040a024
jmp 0x4a82df
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x4a8488
mov edx, 0x2b1a
mov eax, ebx
call fcn.004a3760
mov eax, dword [ebp - 0x40]
mov edx, dword [ebx + 0x1b0]
inc edx
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x2c], 0
mov edx, dword [ebx + 0x1b4]
inc edx
mov dword [ebp - 0x28], edx
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x30]
mov ecx, 1
call fcn.0040a024
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x4a84e0
mov edx, 0x2b1b
mov eax, ebx
call fcn.004a3760
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebx + 0x1a4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
xor ecx, ecx
pop eax
call fcn.0040a024
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x14]
call fcn.00404550
cmp word [ebx + 0x2d2], 0
je 0x4a837f
mov byte [ebp - 0x15], 0
mov eax, dword [ebx + 0x1b4]
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebx + 0x1a4]
call fcn.004047a8
mov eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x15]
push eax
mov ecx, dword [ebx + 0x1b0]
inc ecx
mov edx, ebx
mov eax, dword [ebx + 0x2d4]
call dword [ebx + 0x2d0]
cmp byte [ebp - 0x15], 0
je 0x4a8378
mov esi, 3
jmp 0x4a83af
mov esi, 1
jmp 0x4a83af
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x50]
mov eax, dword [0x4dc164]
mov eax, dword [eax]
call fcn.00482bf4
mov eax, dword [ebp - 0x50]
call fcn.00404748
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404748
push eax
mov eax, dword [ebx + 0x48]
push eax
call sub.user32.dll_MessageBoxA_1
mov esi, eax
mov byte [ebx + 0x2cc], 0
cmp esi, 1
jne 0x4a83ca
mov eax, ebx
call fcn.004a6eb8
test al, al
je 0x4a80eb
cmp byte [ebx + 0x2cc], 0
jne 0x4a80eb
cmp esi, 1
je 0x4a83f4
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x4a1370]
call fcn.004a7204
call fcn.00403c40
test esi, esi
jne 0x4a8410
push 1
mov ecx, 0x2afe
mov dl, 1
mov eax, dword [0x4a1370]
call fcn.004a7204
call fcn.00403c40
mov ebx, dword [ebp - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a844d
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.004042ac
lea eax, [ebp - 0x34]
call fcn.00404288
lea eax, [ebp - 0x20]
call fcn.00404288
lea eax, [ebp - 0x14]
call fcn.00404288
ret