Function at 0x485700
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ad180
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4dc104]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ecx + 0x20]
lea ebx, [ecx + 0x10]
mov dword [esp + 0x1c], ebx
cmp dword [ebx + 0xc], esi
jbe 0x48574b
call fcn.004891d9
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
cmp edi, dword [ebx + 0x10]
jbe 0x48575e
call fcn.004891d9
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
push esi
push ecx
push edi
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.00484a90
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor edi, edi
push edi
push edi
call ebx
mov esi, eax
cmp esi, edi
je 0x4859ba
push edi
lea ecx, [esi + 1]
xor eax, eax
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], edi
mov word [esp + 0x48], ax
call fcn.00411398
mov dword [esp + 0x68], edi
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x4857be
lea eax, [esp + 0x40]
push eax
push esi
call ebx
test eax, eax
je 0x48598b
push 0x4bfa88
lea ecx, [esp + 0x14]
call fcn.00403c8f
mov byte [esp + 0x68], 1
cmp dword [esp + 0x54], 8
mov ebx, dword [esp + 0x40]
jae 0x4857ec
lea ebx, [esp + 0x40]
cmp word [ebx], di
je 0x48597d
push edi
xor edx, edx
push 0x105
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
call fcn.00411398
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
movzx edi, word [ebx]
test esi, esi
jle 0x4859d8
cmp dword [eax - 4], 1
jle 0x485844
mov eax, esi
push eax
lea ecx, [esp + 0x14]
call fcn.004085cb
mov eax, dword [esp + 0x10]
mov word [eax], di
test esi, esi
jl 0x4859d8
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x4859d8
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x48587c
lea eax, [esp + 0x24]
push 0x104
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x485924
lea ecx, [esp + 0x14]
call fcn.004840f0
mov byte [esp + 0x68], 3
mov eax, ebx
lea edx, [eax + 2]
jmp 0x4858b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4858b0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.0040658b
cmp dword [esp + 0x38], edi
jb 0x4858dc
mov eax, dword [esp + 0x24]
mov edx, eax
test eax, eax
jne 0x4858e0
jmp 0x4858f4
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4858e5
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.0040658b
lea ecx, [esp + 0x14]
call fcn.00403d53
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00485680
mov byte [esp + 0x68], 2
lea ecx, [esp + 0x14]
call fcn.00483a00
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x485930
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2 + 2]
mov byte [esp + 0x68], 1
cmp dword [esp + 0x38], edi
jb 0x48595b
mov edx, dword [esp + 0x24]
push edx
call fcn.0048867e
add esp, 4
xor eax, eax
xor edi, edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp word [ebx], di
jne 0x4857f5
mov byte [esp + 0x68], 0
lea ecx, [esp + 0x10]
call fcn.0040392e
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x4859a7
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0048867e
add esp, 4
xor edx, edx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00488689
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040103e
int3