Function at 0x484298
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x34
push 0
push 0
dec ecx
jne 0x4842a1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x174]
mov edx, dword [0x407a8c]
call fcn.00404ed4
xor eax, eax
push ebp
push 0x4846be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3d8], 0
je 0x484682
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 8]
call fcn.00408784
mov eax, dword [ebp - 0x178]
push eax
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call fcn.00408784
mov eax, dword [ebp - 0x17c]
pop edx
call fcn.00404b48
test eax, eax
jne 0x484682
lea edx, [ebp - 0x180]
mov eax, dword [ebp - 8]
call fcn.00408784
mov edx, dword [ebp - 0x180]
mov eax, 0x4846d8
call fcn.00404b48
test eax, eax
jne 0x484682
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 8]
call fcn.00408784
mov edx, dword [ebp - 0x184]
mov eax, 0x4846e8
call fcn.00404b48
test eax, eax
jne 0x484682
mov dl, 1
mov eax, dword [0x417338]
call fcn.004036c4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48467b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, 0x48470c
call fcn.00404950
jne 0x4843d2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.0043dc14
push eax
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 8]
mov edx, 0x48471c
call fcn.00404850
mov edx, dword [ebp - 0x188]
pop eax
call fcn.0043db70
mov eax, dword [0x48a3fc]
mov eax, dword [eax]
call fcn.0047a81c
lea eax, [ebp - 0x18c]
mov ecx, 0x484738
mov edx, dword [ebp - 8]
call fcn.00404850
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x174]
mov edx, 0x12
call fcn.004091c8
mov ebx, eax
test ebx, ebx
jne 0x48446a
mov eax, dword [ebp - 0x16c]
and eax, 0x10
cmp eax, 0x10
jne 0x48444d
mov eax, dword [ebp - 0x168]
mov edx, 0x484744
call fcn.00404950
je 0x48444d
mov eax, dword [ebp - 0x168]
mov edx, 0x484750
call fcn.00404950
je 0x48444d
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x174]
call fcn.00409218
mov ebx, eax
mov eax, dword [0x48a3fc]
mov eax, dword [eax]
call fcn.0047a81c
test ebx, ebx
je 0x48440d
lea eax, [ebp - 0x174]
call fcn.0040923c
lea eax, [ebp - 0x190]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404850
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x174]
mov edx, 0x46
call fcn.004091c8
mov ebx, eax
test ebx, ebx
jne 0x4845dc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3d8], 0
je 0x4845dc
cmp dword [ebp + 8], 3
jne 0x4845bb
xor eax, eax
push ebp
push 0x4845b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x198]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 8]
call fcn.00404850
mov eax, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
call fcn.00483e48
mov eax, dword [ebp - 0x194]
mov ecx, 3
mov edx, 1
call fcn.00404a64
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x18]
call fcn.00404a04
mov esi, eax
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x484530
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 1
jne 0x484590
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0x5c
je 0x484590
lea eax, [ebp - 0x19c]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp - 8]
call fcn.00404850
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x1c]
call fcn.00483e48
mov eax, dword [ebp - 0x1c]
mov edx, 0x48475c
call fcn.00404950
je 0x484590
cmp dword [ebp - 0x1c], 0
je 0x48458b
mov eax, dword [ebp - 0x1c]
call fcn.00409128
test al, al
jne 0x48458b
mov eax, dword [ebp - 0x1c]
call fcn.0047c354
test al, al
jne 0x48458b
xor eax, eax
jmp 0x48458d
mov al, 1
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4845a7
lea ecx, [ebp - 0x174]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048413c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4845bb
lea eax, [ebp - 0x174]
call fcn.00409218
mov ebx, eax
mov eax, dword [0x48a3fc]
mov eax, dword [eax]
call fcn.0047a81c
test ebx, ebx
je 0x4844a6
lea eax, [ebp - 0x174]
call fcn.0040923c
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x484665
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x1a0]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 0x1a0], 0
je 0x484655
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 8]
lea ecx, [ebp - 0x1a8]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x1a8]
push 0x484768
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.004048c4
mov edx, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00484298
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3d8], 0
je 0x484665
inc ebx
dec esi
jne 0x4845f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484682
mov eax, dword [ebp - 0x10]
call fcn.004036f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4846c5
lea eax, [ebp - 0x1a8]
mov edx, 0xd
call fcn.00404568
lea eax, [ebp - 0x174]
mov edx, dword [0x407a8c]
call fcn.00404fa4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404568
ret