Function at 0x474ecc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x4753de
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
cmp byte [eax + 0xb2], 0
jne 0x474f24
mov eax, dword [ebx]
mov eax, dword [eax + 0xce]
call fcn.0046cd30
call fcn.00409994
call fcn.00409f18
mov eax, dword [ebx]
fstp qword [eax + 0xc1]
wait
jmp 0x474f32
call fcn.0040b348
mov eax, dword [ebx]
fstp qword [eax + 0xc1]
wait
mov eax, dword [ebx]
call fcn.004754c0
test eax, eax
jle 0x474f77
mov eax, dword [ebx]
mov eax, dword [eax + 0xbd]
test eax, eax
je 0x474f60
mov edx, dword [ebx]
cmp byte [edx + 0x38], 7
je 0x474f60
call fcn.00404280
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0xbd], edx
mov eax, dword [ebx]
mov eax, dword [eax + 0xb9]
call fcn.00404280
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0xb9], edx
mov eax, dword [ebx]
mov edx, dword [eax + 0xce]
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
call fcn.0046eecc
test al, al
jne 0x475055
mov eax, dword [ebx]
cmp byte [eax + 0x14d], 0
jne 0x474fe5
mov eax, dword [ebx]
cmp word [eax + 0x82], 0
je 0x474fc0
mov eax, dword [ebx]
lea ecx, [eax + 0x44]
mov esi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [esi + 0x84]
call dword [esi + 0x80]
mov eax, dword [ebx]
cmp byte [eax + 0x44], 0
jne 0x474fe5
mov eax, dword [ebx]
call fcn.00474a40
mov ecx, 0x4753f4
mov dl, 1
mov eax, dword [0x46dc14]
call fcn.0040d1b4
call fcn.00404af4
mov eax, dword [ebx]
cmp byte [eax + 0x44], 1
je 0x474ffc
mov eax, dword [ebx]
cmp byte [eax + 0x14d], 0
je 0x4751c7
mov eax, dword [0x481954]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0046218c
push ebp
call fcn.00474acc
pop ecx
test al, al
jne 0x475042
mov eax, dword [0x481954]
mov eax, dword [eax]
xor edx, edx
call fcn.0046218c
mov eax, dword [ebx]
call fcn.00474a40
mov ecx, 0x475410
mov dl, 1
mov eax, dword [0x46dbbc]
call fcn.0040d1b4
call fcn.00404af4
mov eax, dword [0x481954]
mov eax, dword [eax]
xor edx, edx
call fcn.0046218c
jmp 0x4751c7
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
movzx eax, word [eax + 8]
mov edx, dword [ebx]
mov dword [edx + 0xca], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
cmp word [eax + 8], 0
jbe 0x4750d2
lea ecx, [ebp - 0x20]
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov edx, 3
call fcn.0046ced8
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0xc]
call fcn.00408d04
mov eax, dword [ebp - 0xc]
cmp byte [eax + 1], 0x3a
je 0x4750a9
mov dl, 2
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4750db
lea eax, [ebp - 0xc]
call fcn.0046d220
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4750c7
mov dl, 1
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4750db
mov dl, 2
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4750db
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
cmp word [eax + 0xe], 0
jbe 0x4751c7
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x475123
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
movzx eax, word [eax + 0xa]
mov edx, dword [ebx]
cmp eax, dword [edx + 0xca]
je 0x475123
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
movzx edx, word [eax + 0xa]
inc edx
mov eax, dword [ebx]
call fcn.004748d0
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
mov edx, dword [eax + 0x14]
mov eax, dword [ebx]
mov eax, dword [eax + 0xce]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 0xce]
mov ecx, 4
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [ebp - 0x18], 0x2014b50
je 0x4751b1
mov eax, dword [0x481954]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0046218c
push ebp
call fcn.00474acc
pop ecx
test al, al
jne 0x4751a1
mov eax, dword [0x481954]
mov eax, dword [eax]
xor edx, edx
call fcn.0046218c
mov eax, dword [ebx]
call fcn.00474a40
mov ecx, 0x475410
mov dl, 1
mov eax, dword [0x46dbbc]
call fcn.0040d1b4
call fcn.00404af4
mov eax, dword [0x481954]
mov eax, dword [eax]
xor edx, edx
call fcn.0046218c
jmp 0x4751c7
mov eax, dword [ebx]
mov eax, dword [eax + 0xce]
mov cx, 1
mov edx, 0xfffffffc
mov esi, dword [eax]
call dword [esi + 0x14]
mov cl, 2
mov dl, 1
mov eax, dword [0x46e348]
call fcn.0046f024
mov esi, eax
mov eax, dword [ebx]
mov dword [eax + 0xb9], esi
mov byte [esi + 0x12], 7
mov eax, dword [ebx]
mov dword [eax + 0xbd], esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
movzx esi, word [eax + 0xe]
dec esi
test esi, esi
jl 0x475340
inc esi
mov dword [ebp - 0x10], 0
mov dl, 1
mov eax, dword [0x46e188]
call fcn.0046e414
mov dword [ebp - 8], eax
mov eax, dword [ebx]
cmp byte [eax + 0xc9], 0
jne 0x47522d
mov eax, dword [ebx]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x475243
push 0
push 0
mov eax, dword [ebx]
mov edx, dword [eax + 0xce]
mov eax, dword [ebp - 8]
call fcn.0046e8f0
jmp 0x47525b
mov eax, dword [ebx]
push eax
push 0x474a1c
mov eax, dword [ebx]
mov edx, dword [eax + 0xce]
mov eax, dword [ebp - 8]
call fcn.0046e8f0
mov eax, dword [ebx]
cmp byte [eax + 0xc9], 0
je 0x4752ce
lea ecx, [ebp - 0x14]
mov eax, dword [ebx]
mov eax, dword [eax + 0xb9]
mov edx, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x48]
test al, al
je 0x4752bf
mov eax, dword [ebx]
mov eax, dword [eax + 0xb9]
mov edx, dword [ebp - 0x14]
call fcn.0046bf94
mov edx, dword [0x46e188]
call fcn.00404430
mov edi, eax
mov eax, dword [edi + 0x2a]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x2a], eax
mov eax, dword [ebp - 8]
call fcn.00404280
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4752ce
mov eax, dword [ebp - 8]
call fcn.00404280
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x475336
mov eax, dword [ebx]
cmp byte [eax + 0xc9], 0
jne 0x4752e9
mov eax, dword [ebx]
mov eax, dword [eax + 0xb9]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
cmp word [eax + 8], 0
jbe 0x475311
mov eax, dword [ebp - 8]
call fcn.0046eb54
test al, al
je 0x475311
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx]
call fcn.004741b8
mov eax, dword [ebx]
movzx edx, word [eax + 0x112]
mov eax, dword [ebx]
movzx eax, word [eax + 0x114]
add edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xce]
mov cx, 1
mov edi, dword [eax]
call dword [edi + 0x14]
inc dword [ebp - 0x10]
dec esi
jne 0x475208
mov eax, dword [ebx]
mov esi, dword [eax + 0x122]
cmp word [esi + 8], 0
jbe 0x475388
mov eax, esi
call fcn.0046f018
test al, al
je 0x475388
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
movzx eax, word [eax + 8]
movzx edx, ax
mov ecx, dword [ebx]
cmp edx, dword [ecx + 0xca]
je 0x47537e
movzx edx, ax
inc edx
mov eax, dword [ebx]
call fcn.004748d0
lea edx, [ebp - 0x28]
mov eax, dword [ebx]
call fcn.0047434c
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
movzx eax, word [eax + 8]
inc eax
mov edx, dword [ebx]
mov dword [edx + 0x47], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x122]
movzx eax, word [eax + 8]
mov edx, dword [ebx]
mov dword [edx + 0xca], eax
mov eax, dword [ebx]
movzx edx, byte [eax + 0x38]
mov eax, dword [ebx]
call fcn.00475428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4753e5
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004050d0
lea eax, [ebp - 0xc]
call fcn.004050ac
ret