Function at 0x4864fa
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 8], 0
jne 0x48652b
push 1
push dword [ebp + 0x1c]
push edi
push ebx
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call fcn.004d58b6
jmp 0x486a0a
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x48653c
mov eax, 2
jmp 0x486a0a
cmp dword [eax + 0x1c], 1
jne 0x486a05
cmp dword [eax + 0xc], 0
jne 0x4869e7
push dword [eax]
call fcn.004fef5f
mov edx, dword [ebx + 0x34]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
push 0x5523d9
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push edi
call sub.KERNEL32.dll_GetDriveTypeA
mov dword [0x578a60], eax
cmp dword [ebx + 0x10], 0
je 0x486974
push 0x2e
push dword [ebx]
call fcn.005398a0
add esp, 8
mov dword [0x578a5c], eax
test eax, eax
je 0x486974
cmp dword [0x578a60], 1
jbe 0x4869e7
push str..label
push dword [0x578a5c]
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x486646
mov edx, dword [ebx + 0x34]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
push str._c:.
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 8
push 0x578938
push edi
call fcn.0053cd24
add esp, 0xc
mov dword [0x578a64], eax
push 0
call sub.KERNEL32.dll_SetErrorMode
cmp dword [0x578a64], 0
jne 0x4869e7
test byte [0x578940], 8
je 0x4869e7
push esi
mov edi, 0x578948
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4869e7
push str..unc
push dword [0x578a5c]
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x486697
push edi
push dword [ebp + 0x1c]
call fcn.0050dab4
test eax, eax
je 0x4869e7
mov eax, dword [ebp + 0x1c]
push esi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4869e7
push str..free
push dword [0x578a5c]
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x4867aa
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
mov byte [esi], 0
cmp dword [0x556164], 0
je 0x48673d
cmp dword [0x556190], 0
jne 0x4866e0
push 0x5523fd
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x556190], eax
mov eax, dword [0x556190]
test eax, eax
je 0x48673d
push 0x55240b
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x48673d
mov edx, dword [ebx + 0x34]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
push 0x552420
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 8]
push eax
push edi
call dword [ebp - 0x1c]
test eax, eax
je 0x48673d
push dword [ebp - 4]
push dword [ebp - 8]
push 0x552426
push esi
call fcn.0053e92c
add esp, 0x10
cmp byte [esi], 0
jne 0x48679e
push esi
mov edi, esi
mov esi, 0x55242e
mov eax, edi
movsw word es:[edi], word [esi]
pop esi
push 0x578a48
mov edx, dword [ebx + 0x34]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
call fcn.00541e80
pop ecx
add al, 0xa0
push eax
call fcn.0053ffd8
add esp, 8
mov eax, dword [0x578a54]
cmp eax, 0xffffffff
je 0x48679e
mov edx, dword [0x578a48]
imul edx, dword [0x578a50]
imul edx, eax
mov dword [0x578a58], edx
push edx
push 0x552431
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
call sub.KERNEL32.dll_SetErrorMode
jmp 0x4869e7
push 0x552436
push dword [0x578a5c]
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x4868bd
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
mov byte [esi], 0
cmp dword [0x556164], 0
je 0x486850
cmp dword [0x556190], 0
jne 0x4867f3
push 0x55243d
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x556190], eax
mov eax, dword [0x556190]
test eax, eax
je 0x486850
push str.GetDiskFreeSpaceExA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x486850
mov edx, dword [ebx + 0x34]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
push str._c:_
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x24]
push eax
push edi
call dword [ebp - 0x38]
test eax, eax
je 0x486850
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push str._I64Ld
push esi
call fcn.0053e92c
add esp, 0x10
cmp byte [esi], 0
jne 0x4868b1
push esi
mov edi, esi
mov esi, 0x55246e
mov eax, edi
movsw word es:[edi], word [esi]
pop esi
push 0x578a48
mov edx, dword [ebx + 0x34]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
call fcn.00541e80
pop ecx
add al, 0xa0
push eax
call fcn.0053ffd8
add esp, 8
mov eax, dword [0x578a54]
cmp eax, 0xffffffff
je 0x4868b1
mov edx, dword [0x578a4c]
imul edx, dword [0x578a50]
imul edx, eax
mov dword [0x578a58], edx
push edx
push 0x552471
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
call sub.KERNEL32.dll_SetErrorMode
jmp 0x4869e7
push 0x552476
push dword [0x578a5c]
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x4869e7
cmp dword [0x578a60], 2
jne 0x4868f5
push esi
mov edi, esi
mov esi, str.removable
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x4869e7
cmp dword [0x578a60], 3
jne 0x486911
push esi
mov edi, esi
mov esi, str.fixed
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x4869e7
cmp dword [0x578a60], 4
jne 0x48692e
push esi
mov edi, esi
mov esi, 0x55248f
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4869e7
cmp dword [0x578a60], 5
jne 0x48694a
push esi
mov edi, esi
mov esi, str.cdrom
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x4869e7
cmp dword [0x578a60], 6
jne 0x486965
push esi
mov edi, esi
mov esi, str.ramdisk
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4869e7
push esi
mov edi, esi
mov esi, 0x5524a7
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4869e7
cmp dword [0x578a60], 1
ja 0x48698e
push esi
mov edi, esi
mov esi, 0x5524b0
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4869e7
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 0x578a48
mov edx, dword [ebx + 0x34]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
call fcn.00541e80
pop ecx
add al, 0xa0
push eax
call fcn.0053ffd8
add esp, 8
push 0
call sub.KERNEL32.dll_SetErrorMode
cmp dword [0x578a54], 0xffffffff
jne 0x4869d9
push esi
mov edi, esi
mov esi, 0x5524b8
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4869e7
push esi
mov edi, esi
mov esi, 0x5524c0
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
push dword [ebx + 0x34]
mov edx, dword [ebp + 0xc]
push dword [edx]
call fcn.004b103a
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
mov dword [ebx + 8], eax
mov eax, 2
jmp 0x486a0a
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18