Function at 0x46c957
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4af0a5
call fcn.004ab348
sub esp, 0x1c
and dword [ebp - 0x24], 0
push esi
push edi
lea eax, [ebp - 0x20]
push str.tid1
push eax
call fcn.0042bc50
push eax
call fcn.0042ba36
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
lea eax, [ebp - 0x20]
push str.tid2
push eax
call fcn.0042bc50
push eax
call fcn.0042ba36
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
lea eax, [ebp - 0x20]
push 0x4be224
push eax
call fcn.0042bc50
push eax
call fcn.0042ba36
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
mov esi, 0x4c393c
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0042bc50
push eax
call fcn.0042ba36
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
lea eax, [ebp - 0x20]
push str.tod1
push eax
call fcn.0042bc50
push eax
call fcn.0042ba36
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
lea eax, [ebp - 0x20]
push str.tod2
push eax
call fcn.0042bc50
push eax
call fcn.0042ba36
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
lea eax, [ebp - 0x20]
push str.uidreg
push eax
call fcn.0042bc50
push eax
call fcn.0042ba36
and dword [ebp - 4], 0
lea edi, [ebx + 0x40]
call fcn.00405107
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405b78
lea eax, [ebp - 0x20]
push 0x4c37b8
push eax
call fcn.0042bc50
push eax
call fcn.0042ba36
lea edi, [ebx + 0x44]
mov dword [ebp - 4], 1
call fcn.00405107
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405b78
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
xor edi, edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
call fcn.0044926f
add esp, 0x10
test eax, eax
je 0x46cb0c
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x10], eax
jmp 0x46cb23
call fcn.0046c8a1
test eax, eax
je 0x46cb23
mov dword [ebx + 4], 0x834
mov dword [ebx + 8], 1
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 0x4ddd24]
je 0x46cb38
add edi, 4
cmp edi, 0x24
jb 0x46cb26
jmp 0x46cb3f
mov dword [ebx + 0x4c], 1
lea edi, [ebx + 0x24]
push str.tid1
mov eax, edi
call fcn.0046c67d
test eax, eax
je 0x46cb78
push str.tid1
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.0046c5d6
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
push str.tid2
mov eax, edi
call fcn.0046c67d
test eax, eax
je 0x46cbae
push str.tid2
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.0046c5d6
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
push 0x4c3954
mov eax, edi
call fcn.0046c67d
test eax, eax
je 0x46cbe4
push 0x4c3954
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.0046c5d6
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
push str.tod1
mov eax, edi
call fcn.0046c67d
test eax, eax
je 0x46cc1a
push str.tod1
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.0046c5d6
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
push str.tod2
mov eax, edi
call fcn.0046c67d
test eax, eax
je 0x46cc50
push str.tod2
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.0046c5d6
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
push esi
mov eax, edi
call fcn.0046c67d
test eax, eax
je 0x46cc8b
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.0046c5d6
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
cmp dword [ebx + 0x1c], 1
jne 0x46cc8b
mov dword [ebx + 0x1c], 0xf
push 0x4bdd80
mov eax, edi
call fcn.0046c67d
test eax, eax
jne 0x46ccab
push 0x4be3e0
mov eax, edi
call fcn.0046c67d
test eax, eax
je 0x46ccb2
mov dword [ebx + 0x1c], 0xf
mov esi, str.param
push esi
mov eax, edi
call fcn.0046c67d
test eax, eax
je 0x46cce5
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.0046c5d6
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
mov esi, str.from
push esi
mov eax, edi
call fcn.0046c67d
test eax, eax
je 0x46cd18
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.0046c5d6
push dword [eax]
call fcn.0048f06f
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00405b78
mov esi, 0x4c3974
push esi
mov eax, edi
call fcn.0046c67d
test eax, eax
je 0x46cda2
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.0046c5d6
lea esi, [ebx + 0x48]
mov edi, esi
mov dword [ebp - 4], 2
call fcn.00405107
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405b78
mov eax, dword [esi]
cmp dword [eax - 0xc], 3
jl 0x46cd82
push 3
pop ecx
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.004065e5
push dword [eax]
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov byte [ebp - 0xd], 1
jne 0x46cd86
mov byte [ebp - 0xd], 0
test byte [ebp - 0x24], 1
je 0x46cd97
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405b78
cmp byte [ebp - 0xd], 0
je 0x46cda2
call fcn.00405da8
push 0x4c3978
lea eax, [ebx + 0x24]
call fcn.0046c67d
test eax, eax
je 0x46cdbf
xor eax, eax
inc eax
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x44]
cmp dword [eax - 0xc], 0
je 0x46ce15
mov eax, dword [ebx + 0x40]
cmp dword [eax - 0xc], 0
je 0x46ce15
call fcn.0042af4d
mov esi, eax
lea edi, [esi + 4]
lea eax, [ebx + 0x44]
call fcn.00405107
lea edi, [esi + 8]
lea eax, [ebx + 0x40]
call fcn.00405107
mov dword [esi + 0xc], 1
call fcn.0042af4d
cmp dword [eax + 0xc], 0
je 0x46ce15
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0042b001
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405b78
mov eax, dword [ebx + 0x1c]
mov ecx, eax
and cl, 1
dec cl
neg cl
sbb ecx, ecx
inc ecx
xor esi, esi
cmp eax, esi
mov dword [ebx + 0x18], ecx
jne 0x46ce34
mov dword [ebx + 0x1c], 6
lea eax, [ebp - 0x24]
push eax
push str.tid1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.0042af4d
call fcn.0042b4c1
lea eax, [ebp - 0x20]
push eax
push str.tid2
call fcn.0042af4d
call fcn.0042b4c1
lea eax, [ebp - 0x1c]
push eax
push str.tod1
call fcn.0042af4d
call fcn.0042b4c1
lea eax, [ebp - 0x18]
push eax
push str.tod2
call fcn.0042af4d
call fcn.0042b4c1
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x46cea8
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret