Function at 0x475cb5
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 + 4], 0
jne 0x475ce6
push 1
push dword [ebp + 0x1c]
push edi
push ebx
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call fcn.004bf5f3
jmp 0x476174
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x475cf7
mov eax, 2
jmp 0x476174
cmp dword [eax + 0x18], 1
jne 0x47616f
cmp dword [eax + 8], 0
jne 0x476151
push dword [eax]
call fcn.004e4f94
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
push 0x52f0ab
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push edi
call sub.KERNEL32.dll_GetDriveTypeA
mov dword [0x551b9c], eax
cmp dword [ebx + 0xc], 0
je 0x4760de
push 0x2e
push dword [ebx]
call fcn.005186c4
add esp, 8
mov dword [0x551b98], eax
test eax, eax
je 0x4760de
cmp dword [0x551b9c], 1
jbe 0x476151
push str..label
push dword [0x551b98]
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x475e01
mov edx, dword [ebx + 0x30]
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 0x551a74
push edi
call fcn.0051bae0
add esp, 0xc
mov dword [0x551ba0], eax
push 0
call sub.KERNEL32.dll_SetErrorMode
cmp dword [0x551ba0], 0
jne 0x476151
test byte [0x551a7c], 8
je 0x476151
push esi
mov edi, 0x551a84
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 0x476151
push str..free
push dword [0x551b98]
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x475f14
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
mov byte [esi], 0
cmp dword [0x532a54], 0
je 0x475ea7
cmp dword [0x532a80], 0
jne 0x475e4a
push 0x52f0c9
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x532a80], eax
mov eax, dword [0x532a80]
test eax, eax
je 0x475ea7
push 0x52f0d7
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x475ea7
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
push 0x52f0ec
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 0x475ea7
push dword [ebp - 4]
push dword [ebp - 8]
push 0x52f0f2
push esi
call fcn.0051d64c
add esp, 0x10
cmp byte [esi], 0
jne 0x475f08
push esi
mov edi, esi
mov esi, 0x52f0fa
mov eax, edi
movsw word es:[edi], word [esi]
pop esi
push 0x551b84
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
call fcn.00520834
pop ecx
add al, 0xa0
push eax
call fcn.0051eb04
add esp, 8
mov eax, dword [0x551b90]
cmp eax, 0xffffffff
je 0x475f08
mov edx, dword [0x551b84]
imul edx, dword [0x551b8c]
imul edx, eax
mov dword [0x551b94], edx
push edx
push 0x52f0fd
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
call sub.KERNEL32.dll_SetErrorMode
jmp 0x476151
push 0x52f102
push dword [0x551b98]
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x476027
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
mov byte [esi], 0
cmp dword [0x532a54], 0
je 0x475fba
cmp dword [0x532a80], 0
jne 0x475f5d
push 0x52f109
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x532a80], eax
mov eax, dword [0x532a80]
test eax, eax
je 0x475fba
push str.GetDiskFreeSpaceExA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x475fba
mov edx, dword [ebx + 0x30]
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 0x475fba
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push str._I64Ld
push esi
call fcn.0051d64c
add esp, 0x10
cmp byte [esi], 0
jne 0x47601b
push esi
mov edi, esi
mov esi, 0x52f13a
mov eax, edi
movsw word es:[edi], word [esi]
pop esi
push 0x551b84
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
call fcn.00520834
pop ecx
add al, 0xa0
push eax
call fcn.0051eb04
add esp, 8
mov eax, dword [0x551b90]
cmp eax, 0xffffffff
je 0x47601b
mov edx, dword [0x551b88]
imul edx, dword [0x551b8c]
imul edx, eax
mov dword [0x551b94], edx
push edx
push 0x52f13d
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
call sub.KERNEL32.dll_SetErrorMode
jmp 0x476151
push 0x52f142
push dword [0x551b98]
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x476151
cmp dword [0x551b9c], 2
jne 0x47605f
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 0x476151
cmp dword [0x551b9c], 3
jne 0x47607b
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 0x476151
cmp dword [0x551b9c], 4
jne 0x476098
push esi
mov edi, esi
mov esi, 0x52f15b
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x476151
cmp dword [0x551b9c], 5
jne 0x4760b4
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 0x476151
cmp dword [0x551b9c], 6
jne 0x4760cf
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 0x476151
push esi
mov edi, esi
mov esi, 0x52f173
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
jmp 0x476151
cmp dword [0x551b9c], 1
ja 0x4760f8
push esi
mov edi, esi
mov esi, 0x52f17c
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x476151
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 0x551b84
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
call fcn.00520834
pop ecx
add al, 0xa0
push eax
call fcn.0051eb04
add esp, 8
push 0
call sub.KERNEL32.dll_SetErrorMode
cmp dword [0x551b90], 0xffffffff
jne 0x476143
push esi
mov edi, esi
mov esi, 0x52f184
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x476151
push esi
mov edi, esi
mov esi, 0x52f18c
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
push dword [ebx + 0x30]
mov edx, dword [ebp + 0xc]
push dword [edx]
call fcn.0049dd87
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
mov dword [ebx + 4], eax
mov eax, 2
jmp 0x476174
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18