Function at 0x468b33
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4a8fcd
call fcn.004a5298
sub esp, 0x1c
and dword [ebp - 0x24], 0
push esi
push edi
mov esi, str.tid1
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0042b8ee
push eax
call fcn.0042b6d4
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
lea eax, [ebp - 0x20]
push str.tid2
push eax
call fcn.0042b8ee
push eax
call fcn.0042b6d4
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
lea eax, [ebp - 0x20]
push 0x4b7a1c
push eax
call fcn.0042b8ee
push eax
call fcn.0042b6d4
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
lea eax, [ebp - 0x20]
push 0x4bca40
push eax
call fcn.0042b8ee
push eax
call fcn.0042b6d4
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
lea eax, [ebp - 0x20]
push str.tod1
push eax
call fcn.0042b8ee
push eax
call fcn.0042b6d4
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
lea eax, [ebp - 0x20]
push str.tod2
push eax
call fcn.0042b8ee
push eax
call fcn.0042b6d4
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
lea eax, [ebp - 0x20]
push str.uidreg
push eax
call fcn.0042b8ee
push eax
call fcn.0042b6d4
and dword [ebp - 4], 0
lea edi, [ebx + 0x3c]
call fcn.00404ead
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040589c
lea eax, [ebp - 0x20]
push 0x4bc908
push eax
call fcn.0042b8ee
push eax
call fcn.0042b6d4
lea edi, [ebx + 0x40]
mov dword [ebp - 4], 1
call fcn.00404ead
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040589c
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0044813f
add esp, 0x10
test eax, eax
je 0x468ce6
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
lea edi, [ebx + 0x24]
push esi
mov eax, edi
call fcn.004688ff
test eax, eax
je 0x468d17
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00468858
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
mov esi, str.tid2
push esi
mov eax, edi
call fcn.004688ff
test eax, eax
je 0x468d4a
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00468858
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
mov esi, 0x4bca58
push esi
mov eax, edi
call fcn.004688ff
test eax, eax
je 0x468d7d
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00468858
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
mov esi, str.tod1
push esi
mov eax, edi
call fcn.004688ff
test eax, eax
je 0x468db0
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00468858
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
mov esi, str.tod2
push esi
mov eax, edi
call fcn.004688ff
test eax, eax
je 0x468de3
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00468858
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
mov esi, 0x4bca40
push esi
mov eax, edi
call fcn.004688ff
test eax, eax
je 0x468e23
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00468858
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
cmp dword [ebx + 0x1c], 1
jne 0x468e23
mov dword [ebx + 0x1c], 0xf
push 0x4b7578
mov eax, edi
call fcn.004688ff
test eax, eax
jne 0x468e43
push 0x4b7bd8
mov eax, edi
call fcn.004688ff
test eax, eax
je 0x468e4a
mov dword [ebx + 0x1c], 0xf
mov esi, str.param
push esi
mov eax, edi
call fcn.004688ff
test eax, eax
je 0x468e7d
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00468858
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
mov esi, str.from
push esi
mov eax, edi
call fcn.004688ff
test eax, eax
je 0x468eb0
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00468858
push dword [eax]
call fcn.0048b52f
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040589c
mov esi, 0x4bca78
push esi
mov eax, edi
call fcn.004688ff
test eax, eax
je 0x468f3a
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00468858
lea esi, [ebx + 0x44]
mov edi, esi
mov dword [ebp - 4], 2
call fcn.00404ead
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040589c
mov eax, dword [esi]
cmp dword [eax - 0xc], 3
jl 0x468f1a
push 3
pop ecx
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.00406212
push dword [eax]
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov byte [ebp - 0xd], 1
jne 0x468f1e
mov byte [ebp - 0xd], 0
test byte [ebp - 0x24], 1
je 0x468f2f
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040589c
cmp byte [ebp - 0xd], 0
je 0x468f3a
call fcn.00405ad7
mov eax, dword [ebx + 0x40]
cmp dword [eax - 0xc], 0
je 0x468f90
mov eax, dword [ebx + 0x3c]
cmp dword [eax - 0xc], 0
je 0x468f90
call fcn.0042ac32
mov esi, eax
lea edi, [esi + 4]
lea eax, [ebx + 0x40]
call fcn.00404ead
lea edi, [esi + 8]
lea eax, [ebx + 0x3c]
call fcn.00404ead
mov dword [esi + 0xc], 1
call fcn.0042ac32
cmp dword [eax + 0xc], 0
je 0x468f90
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0042ace6
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040589c
mov eax, dword [ebx + 0x1c]
mov ecx, eax
and cl, 1
dec cl
neg cl
sbb ecx, ecx
inc ecx
test eax, eax
mov dword [ebx + 0x18], ecx
jne 0x468fad
mov dword [ebx + 0x1c], 6
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret