Function at 0x484750
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a9e90
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4d9114]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4d9114]
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 0x48479b
call fcn.00488376
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
cmp edi, dword [ebx + 0x10]
jbe 0x4847ae
call fcn.00488376
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.00483ae0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor edi, edi
push edi
push edi
call ebx
mov esi, eax
cmp esi, edi
je 0x484a0a
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.00410682
mov dword [esp + 0x68], edi
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x48480e
lea eax, [esp + 0x40]
push eax
push esi
call ebx
test eax, eax
je 0x4849db
push 0x4bcbd8
lea ecx, [esp + 0x14]
call fcn.00403c71
mov byte [esp + 0x68], 1
cmp dword [esp + 0x54], 8
mov ebx, dword [esp + 0x40]
jae 0x48483c
lea ebx, [esp + 0x40]
cmp word [ebx], di
je 0x4849cd
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.00410682
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
movzx edi, word [ebx]
test esi, esi
jle 0x484a28
cmp dword [eax - 4], 1
jle 0x484894
mov eax, esi
push eax
lea ecx, [esp + 0x14]
call fcn.00407a0e
mov eax, dword [esp + 0x10]
mov word [eax], di
test esi, esi
jl 0x484a28
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x484a28
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 0x4848cc
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 0x484974
lea ecx, [esp + 0x14]
call fcn.00483140
mov byte [esp + 0x68], 3
mov eax, ebx
lea edx, [eax + 2]
jmp 0x484900
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x484900
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.00405cab
cmp dword [esp + 0x38], edi
jb 0x48492c
mov eax, dword [esp + 0x24]
mov edx, eax
test eax, eax
jne 0x484930
jmp 0x484944
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x484935
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00405cab
lea ecx, [esp + 0x14]
call fcn.00403d35
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004846d0
mov byte [esp + 0x68], 2
lea ecx, [esp + 0x14]
call fcn.00482a50
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x484980
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2 + 2]
mov byte [esp + 0x68], 1
cmp dword [esp + 0x38], edi
jb 0x4849ab
mov edx, dword [esp + 0x24]
push edx
call fcn.004876dd
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 0x484845
mov byte [esp + 0x68], 0
lea ecx, [esp + 0x10]
call fcn.00403910
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x4849f7
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004876dd
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.004876e8
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040101f
int3