Function at 0x48bd00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de1c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x526f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call fcn.004ad3ae
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x48bd4a
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], edi
jge 0x48bd6f
push 0x80070057
call fcn.00422000
movzx eax, word [eax]
movzx ecx, ax
push ecx
call fcn.004bf788
mov esi, eax
lea edx, [esi - 0x41]
add esp, 4
cmp edx, 0x19
ja 0x48c083
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 1
jge 0x48bd9f
push 0x80070057
call fcn.00422000
movzx eax, word [eax + 2]
cmp ax, 0x3a
jne 0x48c083
cmp dword [0x52cc60], edi
jne 0x48bdba
call fcn.0048d5b0
push 0x52d120
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi*4 + 0x52d034]
cmp eax, 0xffffffff
jne 0x48bfb0
push esi
lea eax, [ebp - 0x18]
push 0x4f00cc
push eax
call fcn.0046da40
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48be11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 1
jne 0x48be19
or edi, 0xffffffff
push 0x4eda54
mov dword [ebp - 0x18], edi
mov dword [esi*4 + 0x52d034], edi
lea ebx, [esi*4 + 0x52d09c]
call fcn.004bbaea
add esp, 4
push eax
push 0x4eda54
mov ecx, ebx
call fcn.004253d4
cmp edi, 0xffffffff
je 0x48bfc3
push 0x4eda54
lea ecx, [ebp - 0x10]
call fcn.004247ec
push esi
lea ecx, [ebp - 0x1c]
push 0x50e3a0
push ecx
mov byte [ebp - 4], 3
call fcn.0046da40
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x48be9d
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0042251a
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48bed1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004bbacb
add esp, 8
test eax, eax
jl 0x48bd65
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x48bd65
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
je 0x48bf8b
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00425445
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x1c]
add esp, 4
push eax
call fcn.0048c150
add esp, 8
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00424830
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bf5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.00424edf
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
push eax
push str.ResolveDosDrive:_DeviceFileName_s____DosDriveCache_s
push ecx
call fcn.0046da40
add esp, 0x10
call fcn.0048bc00
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bfc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x48bfc3
lea ecx, [esi*4 + 0x52d09c]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00424edf
push 0x52d120
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x10], 0
je 0x48c046
cmp dword [ebp - 0x18], 4
je 0x48c046
mov esi, dword [ebp + 8]
push 0x4eda54
mov ecx, esi
call fcn.004247ec
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48c00c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c032
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.00425445
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c113
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x48c113
call fcn.004ad3ae
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x48c09d
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov ecx, 0x4eda54
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x48c0d9
mov edx, ecx
movzx esi, dx
push esi
call fcn.004b5332
test eax, eax
je 0x48c0f3
push esi
push eax
mov ecx, edi
call fcn.00424e51
jmp 0x48c0f3
push 0x4eda54
call fcn.004bbaea
add esp, 4
push eax
push 0x4eda54
mov ecx, edi
call fcn.004253d4
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c113
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c139
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret