Function at 0x48548c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x485995
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
cmp byte [eax + 0xbd], 0
jne 0x4854e4
mov eax, dword [ebx]
mov eax, dword [eax + 0xe0]
call fcn.0047d524
call fcn.004096d0
call fcn.00409cc8
mov eax, dword [ebx]
fstp qword [eax + 0xd0]
wait
jmp 0x4854f2
call fcn.0040b090
mov eax, dword [ebx]
fstp qword [eax + 0xd0]
wait
mov eax, dword [ebx]
call fcn.00485a78
test eax, eax
jle 0x485537
mov eax, dword [ebx]
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x485520
mov edx, dword [ebx]
cmp byte [edx + 0x38], 7
je 0x485520
call fcn.00403f60
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0xc8], edx
mov eax, dword [ebx]
mov eax, dword [eax + 0xc4]
call fcn.00403f60
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0xc4], edx
mov eax, dword [ebx]
mov edx, dword [eax + 0xe0]
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
call fcn.0047f68c
test al, al
jne 0x485615
mov eax, dword [ebx]
cmp byte [eax + 0x164], 0
jne 0x4855a5
mov eax, dword [ebx]
cmp word [eax + 0x8a], 0
je 0x485580
mov eax, dword [ebx]
lea ecx, [eax + 0x48]
mov esi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [esi + 0x8c]
call dword [esi + 0x88]
mov eax, dword [ebx]
cmp byte [eax + 0x48], 0
jne 0x4855a5
mov eax, dword [ebx]
call fcn.00485044
mov ecx, 0x4859ac
mov dl, 1
mov eax, dword [0x47e474]
call fcn.0040ce70
call fcn.0040472c
mov eax, dword [ebx]
cmp byte [eax + 0x48], 1
je 0x4855bc
mov eax, dword [ebx]
cmp byte [eax + 0x164], 0
je 0x485787
mov eax, dword [0x48eeb4]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0045feac
push ebp
call fcn.004850d0
pop ecx
test al, al
jne 0x485602
mov eax, dword [0x48eeb4]
mov eax, dword [eax]
xor edx, edx
call fcn.0045feac
mov eax, dword [ebx]
call fcn.00485044
mov ecx, 0x4859c8
mov dl, 1
mov eax, dword [0x47e41c]
call fcn.0040ce70
call fcn.0040472c
mov eax, dword [0x48eeb4]
mov eax, dword [eax]
xor edx, edx
call fcn.0045feac
jmp 0x485787
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
movzx eax, word [eax + 8]
mov edx, dword [ebx]
mov dword [edx + 0xdc], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
cmp word [eax + 8], 0
jbe 0x485692
lea ecx, [ebp - 0x20]
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov edx, 3
call fcn.0047d6b8
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00408ed4
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 1], 0x3a
je 0x485669
mov dl, 2
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x48569b
lea eax, [ebp - 0x1c]
call fcn.0047d9f0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x485687
mov dl, 1
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x48569b
mov dl, 2
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x48569b
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
cmp word [eax + 0xe], 0
jbe 0x485787
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x4856e3
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
movzx eax, word [eax + 0xa]
mov edx, dword [ebx]
cmp eax, dword [edx + 0xdc]
je 0x4856e3
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
movzx edx, word [eax + 0xa]
inc edx
mov eax, dword [ebx]
call fcn.00484ed4
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
mov edx, dword [eax + 0x14]
mov eax, dword [ebx]
mov eax, dword [eax + 0xe0]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x10]
lea edx, [ebp - 0x14]
mov eax, dword [ebx]
mov eax, dword [eax + 0xe0]
mov ecx, 4
mov esi, dword [eax]
call dword [esi + 8]
cmp dword [ebp - 0x14], 0x2014b50
je 0x485771
mov eax, dword [0x48eeb4]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0045feac
push ebp
call fcn.004850d0
pop ecx
test al, al
jne 0x485761
mov eax, dword [0x48eeb4]
mov eax, dword [eax]
xor edx, edx
call fcn.0045feac
mov eax, dword [ebx]
call fcn.00485044
mov ecx, 0x4859c8
mov dl, 1
mov eax, dword [0x47e41c]
call fcn.0040ce70
call fcn.0040472c
mov eax, dword [0x48eeb4]
mov eax, dword [eax]
xor edx, edx
call fcn.0045feac
jmp 0x485787
mov eax, dword [ebx]
mov eax, dword [eax + 0xe0]
mov cx, 1
mov edx, 0xfffffffc
mov esi, dword [eax]
call dword [esi + 0x10]
mov cl, 2
mov dl, 1
mov eax, dword [0x47eb18]
call fcn.0047f7e8
mov esi, eax
mov eax, dword [ebx]
mov dword [eax + 0xc4], esi
mov byte [esi + 0x18], 7
mov eax, dword [ebx]
mov dword [eax + 0xc8], esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
movzx esi, word [eax + 0xe]
dec esi
test esi, esi
jl 0x485900
inc esi
mov dword [ebp - 0xc], 0
mov dl, 1
mov eax, dword [0x47e958]
call fcn.0047ebe4
mov dword [ebp - 8], eax
mov eax, dword [ebx]
cmp byte [eax + 0xd8], 0
jne 0x4857ed
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x485803
push 0
push 0
mov eax, dword [ebx]
mov edx, dword [eax + 0xe0]
mov eax, dword [ebp - 8]
call fcn.0047f0b8
jmp 0x48581b
mov eax, dword [ebx]
push eax
push 0x485020
mov eax, dword [ebx]
mov edx, dword [eax + 0xe0]
mov eax, dword [ebp - 8]
call fcn.0047f0b8
mov eax, dword [ebx]
cmp byte [eax + 0xd8], 0
je 0x48588e
lea ecx, [ebp - 0x10]
mov eax, dword [ebx]
mov eax, dword [eax + 0xc4]
mov edx, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x48]
test al, al
je 0x48587f
mov eax, dword [ebx]
mov eax, dword [eax + 0xc4]
mov edx, dword [ebp - 0x10]
call fcn.0047c730
mov edx, dword [0x47e958]
call fcn.00404110
mov edi, eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 8]
call fcn.00403f60
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x48588e
mov eax, dword [ebp - 8]
call fcn.00403f60
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4858f6
mov eax, dword [ebx]
cmp byte [eax + 0xd8], 0
jne 0x4858a9
mov eax, dword [ebx]
mov eax, dword [eax + 0xc4]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
cmp word [eax + 8], 0
jbe 0x4858d1
mov eax, dword [ebp - 8]
call fcn.0047f31c
test al, al
je 0x4858d1
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx]
call fcn.004847c0
mov eax, dword [ebx]
movzx edx, word [eax + 0x124]
mov eax, dword [ebx]
movzx eax, word [eax + 0x126]
add edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xe0]
mov cx, 1
mov edi, dword [eax]
call dword [edi + 0x10]
inc dword [ebp - 0xc]
dec esi
jne 0x4857c8
mov eax, dword [ebx]
mov esi, dword [eax + 0x134]
cmp word [esi + 8], 0
jbe 0x485948
mov eax, esi
call fcn.0047f7dc
test al, al
je 0x485948
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
mov ax, word [eax + 8]
movzx edx, ax
mov ecx, dword [ebx]
cmp edx, dword [ecx + 0xdc]
je 0x48593e
movzx edx, ax
inc edx
mov eax, dword [ebx]
call fcn.00484ed4
lea edx, [ebp - 0x28]
mov eax, dword [ebx]
call fcn.00484954
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
movzx eax, word [eax + 8]
inc eax
mov edx, dword [ebx]
mov dword [edx + 0x4c], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x134]
movzx eax, word [eax + 8]
mov edx, dword [ebx]
mov dword [edx + 0xdc], eax
mov eax, dword [ebx]
mov dl, byte [eax + 0x38]
mov eax, dword [ebx]
call fcn.004859e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48599c
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404cf0
ret