Function at 0x473088
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
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 0x4730bc
push 1
mov eax, dword [ebp + 0x1c]
push eax
push edi
push ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004b6d0c
jmp 0x47342e
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x4730cd
mov eax, 2
jmp 0x47342e
cmp dword [eax + 0x18], 1
jne 0x473429
cmp dword [eax + 8], 0
jne 0x473409
mov edx, dword [eax]
push edx
call fcn.004d7dfc
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
xor edx, edx
mov dl, byte [eax]
push edx
push 0x4f7083
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push edi
call sub.KERNEL32.dll_GetDriveTypeA
mov dword [0x511b74], eax
cmp dword [ebx + 0xc], 0
je 0x473396
push 0x2e
mov ecx, dword [ebx]
push ecx
call fcn.004015cc
add esp, 8
mov dword [0x511b70], eax
test eax, eax
je 0x473396
cmp dword [0x511b74], 1
jbe 0x473409
push 0x4f7089
mov edx, dword [0x511b70]
push edx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x4731da
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
xor edx, edx
mov dl, byte [eax]
push edx
push 0x4f7091
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 8
push 0x511a4c
push edi
call fcn.004049dc
add esp, 0xc
mov dword [0x511b78], eax
push 0
call sub.KERNEL32.dll_SetErrorMode
cmp dword [0x511b78], 0
jne 0x473409
test byte [0x511a54], 8
je 0x473409
push esi
mov edi, 0x511a5c
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 0x473409
push 0x4f709a
mov eax, dword [0x511b70]
push eax
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x4732de
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
mov byte [esi], 0
cmp dword [0x515ee8], 0
je 0x47327e
push 0x4f70a1
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x47327e
push 0x4f70af
mov edx, dword [ebp - 0x20]
push edx
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x473275
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
xor edx, edx
mov dl, byte [eax]
push edx
push 0x4f70c4
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0xc]
push edx
push edi
call dword [ebp - 4]
test eax, eax
je 0x473275
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x4f70ca
push esi
call fcn.00405ba4
add esp, 0x10
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.dll_FreeLibrary
cmp byte [esi], 0
jne 0x4732d2
push 0x511b5c
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
call fcn.00408bd0
pop ecx
add al, 0xa0
push eax
call fcn.00406fbc
add esp, 8
mov eax, dword [0x511b68]
cmp eax, 0xffffffff
je 0x4732d2
mov edx, dword [0x511b5c]
imul edx, dword [0x511b64]
imul edx, eax
mov dword [0x511b6c], edx
push edx
push 0x4f70d2
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
call sub.KERNEL32.dll_SetErrorMode
jmp 0x473409
push 0x4f70d7
mov ecx, dword [0x511b70]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x473409
cmp dword [0x511b74], 2
jne 0x473317
push esi
mov edi, esi
mov esi, 0x4f70de
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x473409
cmp dword [0x511b74], 3
jne 0x473333
push esi
mov edi, esi
mov esi, 0x4f70e9
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x473409
cmp dword [0x511b74], 4
jne 0x473350
push esi
mov edi, esi
mov esi, 0x4f70f0
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x473409
cmp dword [0x511b74], 5
jne 0x47336c
push esi
mov edi, esi
mov esi, 0x4f70f8
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x473409
cmp dword [0x511b74], 6
jne 0x473387
push esi
mov edi, esi
mov esi, 0x4f70ff
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
jmp 0x473409
push esi
mov edi, esi
mov esi, 0x4f7108
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
jmp 0x473409
cmp dword [0x511b74], 1
ja 0x4733b0
push esi
mov edi, esi
mov esi, 0x4f7111
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x473409
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 0x511b5c
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [ecx]
push eax
call fcn.00408bd0
pop ecx
add al, 0xa0
push eax
call fcn.00406fbc
add esp, 8
push 0
call sub.KERNEL32.dll_SetErrorMode
cmp dword [0x511b68], 0xffffffff
jne 0x4733fb
push esi
mov edi, esi
mov esi, 0x4f7119
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x473409
push esi
mov edi, esi
mov esi, 0x4f7121
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
mov edx, dword [ebx + 0x30]
push edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push eax
call fcn.00498fb0
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor ecx, ecx
mov dword [ebx + 4], ecx
mov eax, 2
jmp 0x47342e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18