Function at 0x10009680
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc174
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x814], esi
mov dword [ebp - 0x83c], ebx
mov dword [ebp - 0x824], 0
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x10009bef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x81c], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x81c]
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x10009714
push 0
push 0x101fe8a0
lea ecx, [ebp - 0x81c]
call fcn.10006ab0
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.10009620
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.100041a0
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x844], edi
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, dword [str._hard_]
test eax, eax
je 0x10009b4b
cmp dword [edi - 0xc], 0
jl 0x10009b4b
push eax
push edi
call fcn.1019f712
add esp, 8
test eax, eax
je 0x10009b4b
sub eax, edi
sar eax, 1
jne 0x10009b4b
mov edx, dword [str._hard_]
test edx, edx
jne 0x10009781
xor ecx, ecx
jmp 0x10009795
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009786
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x81c]
call fcn.10006ab0
mov ecx, dword [ebp - 0x814]
mov eax, dword [ecx]
mov edx, dword [eax - 0xc]
mov eax, dword [ebp - 0x81c]
sub edx, dword [eax - 0xc]
lea eax, [ebp - 0x840]
push edx
push eax
call fcn.1000aa20
mov byte [ebp - 4], 4
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x810]
push 0x800
push 0
push eax
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x820], 0
test eax, eax
je 0x1000994d
lea ebx, [ebp - 0x810]
nop
call fcn.100049d0
test eax, eax
je 0x10009bef
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x814]
push ebx
call fcn.10004060
test al, al
jne 0x1000988c
test ebx, ebx
jne 0x10009869
xor ecx, ecx
jmp 0x1000987f
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009870
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x814]
call fcn.10006ab0
mov byte [ebp - 4], 7
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x100098ab
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
jmp 0x1000991b
mov esi, dword [ebp - 0x814]
push esi
call fcn.10009330
add esp, 4
test eax, eax
je 0x100098c0
jmp 0x10009911
mov eax, dword [ebp - 0x834]
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x830], eax
je 0x100098fe
mov dword [ebp - 0x818], eax
lea eax, [esi - 0x10]
push eax
call fcn.100041a0
mov ecx, dword [ebp - 0x828]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 4], 7
add dword [ebp - 0x834], 4
jmp 0x10009911
lea ecx, [ebp - 0x814]
push ecx
push eax
lea ecx, [ebp - 0x838]
call fcn.10007500
mov byte [ebp - 4], 5
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000992f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x820]
add ebx, 8
add eax, 4
mov dword [ebp - 0x820], eax
cmp eax, dword [ebp - 0x82c]
jb 0x10009830
mov eax, dword [ebp - 0x834]
xor ebx, ebx
sub eax, dword [ebp - 0x838]
sar eax, 2
mov dword [ebp - 0x828], ebx
test eax, eax
je 0x10009b19
nop dword [eax]
call fcn.100049d0
test eax, eax
je 0x10009bef
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x838]
lea ebx, [eax + ebx*4]
mov byte [ebp - 4], 0xe
mov eax, dword [ebx]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x100099b0
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x100099c4
call fcn.100049d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x10009bef
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x820], eax
mov byte [ebp - 4], 0xe
or dword [ebp - 0x824], 1
mov eax, dword [ebp - 0x840]
mov ecx, dword [ebx]
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0x820]
push ecx
push eax
call fcn.10004210
mov eax, dword [ebp - 0x820]
lea edx, [esi - 0x10]
add esp, 0x14
mov dword [ebp - 0x82c], edx
lea ebx, [eax - 0x10]
cmp ebx, edx
je 0x10009a72
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
jl 0x10009a5d
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x10009a5d
push ebx
call fcn.100041a0
add esp, 4
mov dword [ebp - 0x818], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x10009a52
mov esi, dword [ebp - 0x82c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x818]
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
jmp 0x10009a72
push dword [eax - 0xc]
lea ecx, [ebp - 0x814]
push eax
call fcn.10006ab0
mov esi, dword [ebp - 0x814]
and dword [ebp - 0x824], 0xfffffffe
mov byte [ebp - 4], 0xd
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10009a92
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x83c]
mov ebx, dword [eax + 4]
cmp dword [eax + 8], ebx
je 0x10009ac7
lea eax, [esi - 0x10]
mov dword [ebp - 0x818], ebx
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov byte [ebp - 4], 0xd
mov ebx, dword [ebp - 0x83c]
add dword [ebx + 4], 4
jmp 0x10009ad6
lea ecx, [ebp - 0x814]
push ecx
push ebx
mov ecx, eax
call fcn.10007500
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10009af2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x834]
mov ebx, dword [ebp - 0x828]
sub eax, dword [ebp - 0x838]
inc ebx
sar eax, 2
mov dword [ebp - 0x828], ebx
cmp ebx, eax
jb 0x10009970
or esi, 0xffffffff
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x838]
call fcn.1000aca0
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x840]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009b91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10009b91
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x814]
mov dword [ebp - 0x818], eax
cmp dword [ebx + 8], eax
je 0x10009b88
mov dword [ebp - 0x82c], eax
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.100041a0
mov ecx, dword [ebp - 0x818]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 4], 3
add dword [ebx + 4], 4
jmp 0x10009b91
push ecx
push eax
mov ecx, ebx
call fcn.10007500
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10009bac
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10009bce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
int3