Function at 0x10afd0a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x10e3200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push 0x103bc1c
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], 1
call fcn.010bce33
push 0x11
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x440], edi
call fcn.010af695
test eax, eax
jne 0x10afda3
mov ecx, 0x522
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x438], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10b0a6f
test byte [eax + 0x1c], 8
je 0x10b0a6f
push 0x103bc00
push ecx
push 0x103b6c8
push 0x11
jmp 0x10afde6
push 0x12
call fcn.010af695
test eax, eax
jne 0x10afdf6
mov ecx, 0x522
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x438], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10b0a6f
test byte [eax + 0x1c], 8
je 0x10b0a6f
push 0x103bc00
push ecx
push 0x103b6c8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acaf3
jmp 0x10b0a6f
push ebx
call fcn.010af774
mov ebx, eax
mov dword [ebp - 0x458], ebx
cmp ebx, edi
jne 0x10afe4a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x434], edi
call esi
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103ab9c
call esi
push eax
push 0x103b6c8
push 0x13
jmp 0x10b0a5e
push 0x434
call fcn.010bd1d1
mov dword [ebp - 0x44c], eax
cmp eax, edi
jne 0x10afe99
push 0xe
pop ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x438], ecx
mov eax, dword [0x10e308c]
cmp eax, 0x10e308c
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103ab90
push ecx
push 0x103b6c8
push 0x14
jmp 0x10b0a63
mov dword [ebp - 0x444], edi
cmp dword [ebx + 4], edi
jbe 0x10afee8
lea esi, [ebx + 8]
mov ax, word [esi + 4]
shr ax, 1
movzx eax, ax
push edi
push eax
mov eax, dword [esi]
add eax, ebx
push eax
mov ax, word [esi + 0x14]
shr ax, 1
movzx eax, ax
push eax
mov eax, dword [esi + 0x10]
add eax, ebx
push eax
push dword [ebp - 0x44c]
call fcn.010af9f2
inc dword [ebp - 0x444]
mov eax, dword [ebp - 0x444]
add esi, 0x18
cmp eax, dword [ebx + 4]
jb 0x10afea7
mov edi, dword [ebp - 0x44c]
mov esi, 0x10e308c
mov ebx, 0x103b6c8
cmp dword [edi + 4], 0
je 0x10b03aa
mov eax, dword [edi + 8]
test eax, eax
je 0x10b03aa
movzx ecx, word [edi + 0x1a]
push ecx
push eax
push 0x105
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x444], ecx
call fcn.010474f0
test eax, eax
jl 0x10b03b9
push 0x5c
pop eax
mov word [ebp - 0x22e], ax
lea eax, [ebp - 0x230]
push eax
call fcn.010af712
test eax, eax
jne 0x10b03aa
mov eax, dword [ebp - 0x444]
add eax, eax
push 0x5c
pop ecx
mov word [ebp + eax - 0x230], cx
xor ecx, ecx
mov word [ebp + eax - 0x22e], cx
xor eax, eax
cmp dword [edi + 0x1c], eax
jne 0x10aff81
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp dword [edi + 0x1c], 0
jne 0x10b00f9
cmp eax, 3
je 0x10b0102
test eax, eax
je 0x10b03aa
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x444], eax
test eax, eax
jne 0x10b0032
push 0x1088
call fcn.010bd1d1
mov dword [ebp - 0x440], eax
test eax, eax
je 0x10b040c
and dword [eax], 0
movzx ecx, word [edi + 0x1a]
push ecx
push dword [edi + 8]
add eax, 0x808
push 0x40
push eax
call fcn.010474f0
test eax, eax
jl 0x10b0441
movzx eax, word [edi + 0x18]
push eax
push dword [edi + 4]
mov eax, dword [ebp - 0x440]
push 0x400
add eax, 8
push eax
call fcn.010474f0
test eax, eax
jl 0x10b0495
push dword [ebp - 0x440]
mov eax, dword [ebp - 0x450]
add eax, 8
push eax
call fcn.010af5f6
test eax, eax
je 0x10b04ea
and dword [ebp - 0x440], 0
jmp 0x10b03aa
push 0x1088
call fcn.010bd1d1
mov dword [ebp - 0x440], eax
test eax, eax
je 0x10b0528
and dword [eax], 0
movzx ecx, word [edi + 0x1a]
push ecx
push dword [edi + 8]
add eax, 0x808
push 0x40
push eax
call fcn.010474f0
test eax, eax
jl 0x10b055d
mov eax, dword [ebp - 0x444]
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
mov eax, dword [ebp - 0x440]
push 0x400
add eax, 0x888
push eax
call fcn.010474f0
test eax, eax
jl 0x10b05b1
movzx eax, word [edi + 0x18]
push eax
push dword [edi + 4]
mov eax, dword [ebp - 0x440]
push 0x400
add eax, 8
push eax
call fcn.010474f0
test eax, eax
jl 0x10b060d
push dword [ebp - 0x440]
mov eax, dword [ebp - 0x450]
add eax, 8
push eax
call fcn.010af5f6
test eax, eax
je 0x10b0662
mov eax, dword [ebp - 0x444]
mov eax, dword [eax + 8]
and dword [ebp - 0x440], 0
mov dword [ebp - 0x444], eax
test eax, eax
jne 0x10b0032
jmp 0x10b03aa
cmp eax, 3
jne 0x10b0197
lea eax, [ebp - 0x445]
push eax
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 0x445], 0
call fcn.010afb96
test eax, eax
jne 0x10b015d
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b03aa
test byte [eax + 0x1c], 4
je 0x10b03aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x230]
push eax
mov eax, dword [0x10e308c]
push ebx
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acc55
jmp 0x10b03aa
cmp byte [ebp - 0x445], 0
je 0x10b0197
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b03aa
test byte [eax + 0x1c], 4
je 0x10b03aa
lea ecx, [ebp - 0x230]
push ecx
push ebx
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acbe8
jmp 0x10b03aa
cmp dword [edi + 0x1c], 0
jne 0x10b01c4
lea eax, [ebp - 0x454]
push eax
push 0x100
lea eax, [ebp - 0x430]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.010af567
jmp 0x10b0204
lea eax, [edi + 0x20]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.010474b6
test eax, eax
jl 0x10b069e
lea eax, [edi + 0x22a]
push eax
push 0x100
lea eax, [ebp - 0x430]
push eax
call fcn.010474b6
test eax, eax
jl 0x10b06e6
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x454], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x444], eax
test eax, eax
jne 0x10b02c1
push 0xab4
call fcn.010bd1d1
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x10b0737
and dword [eax], 0
movzx ecx, word [edi + 0x1a]
push ecx
push dword [edi + 8]
add eax, 8
push 0x40
push eax
call fcn.010474f0
test eax, eax
jl 0x10b076c
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x43c]
push 0x10
add eax, 0x888
push eax
call fcn.010474b6
test eax, eax
jl 0x10b07be
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 0x43c]
push 0x100
add eax, 0x8a8
push eax
call fcn.010474b6
test eax, eax
jl 0x10b080e
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x454]
push eax
push dword [ebp - 0x450]
mov dword [eax + 0xaa8], ecx
call fcn.010af5f6
test eax, eax
je 0x10b0864
and dword [ebp - 0x43c], 0
jmp 0x10b03aa
push 0xab4
call fcn.010bd1d1
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x10b08a2
and dword [eax], 0
movzx ecx, word [edi + 0x1a]
push ecx
push dword [edi + 8]
add eax, 8
push 0x40
push eax
call fcn.010474f0
test eax, eax
jl 0x10b08d7
mov eax, dword [ebp - 0x444]
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
mov eax, dword [ebp - 0x43c]
push 0x400
add eax, 0x88
push eax
call fcn.010474f0
test eax, eax
jl 0x10b0929
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x43c]
push 0x10
add eax, 0x888
push eax
call fcn.010474b6
test eax, eax
jl 0x10b0985
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 0x43c]
push 0x100
add eax, 0x8a8
push eax
call fcn.010474b6
test eax, eax
jl 0x10b09d2
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x454]
push eax
push dword [ebp - 0x450]
mov dword [eax + 0xaa8], ecx
call fcn.010af5f6
test eax, eax
je 0x10b0a2d
mov eax, dword [ebp - 0x444]
mov eax, dword [eax + 8]
and dword [ebp - 0x43c], 0
mov dword [ebp - 0x444], eax
test eax, eax
jne 0x10b02c1
mov edi, dword [edi]
test edi, edi
jne 0x10afef8
jmp 0x10b0a6e
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103bbb0
push dword [ebp - 0x444]
lea eax, [ebp - 0x230]
push dword [edi + 8]
push 0x105
push eax
call fcn.010474f0
push eax
push ebx
push 0x15
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
push 0xe
pop ecx
mov dword [ebp - 0x438], ecx
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103bba4
push ecx
push ebx
push 0x25
jmp 0x10b0a63
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
movzx eax, word [edi + 0x1a]
push 0x103bb40
push eax
push dword [edi + 8]
mov eax, dword [ebp - 0x440]
push 0x40
add eax, 0x808
push eax
call fcn.010474f0
push eax
push ebx
push 0x26
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
movzx eax, word [edi + 0x18]
push 0x103bad8
push eax
push dword [edi + 4]
mov eax, dword [ebp - 0x440]
push 0x400
add eax, 8
push eax
call fcn.010474f0
push eax
push ebx
push 0x27
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103ab9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x28
jmp 0x10b0a5e
and dword [ebp - 0x434], 0
push 0xe
pop ecx
mov dword [ebp - 0x438], ecx
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103bba4
push ecx
push ebx
push 0x29
jmp 0x10b0a63
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
movzx eax, word [edi + 0x1a]
push 0x103bb40
push eax
push dword [edi + 8]
mov eax, dword [ebp - 0x440]
push 0x40
add eax, 0x808
push eax
call fcn.010474f0
push eax
push ebx
push 0x2a
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
mov eax, dword [ebp - 0x444]
movzx ecx, word [eax + 4]
push 0x103ba70
push ecx
push dword [eax]
mov eax, dword [ebp - 0x440]
push 0x400
add eax, 0x888
push eax
call fcn.010474f0
push eax
push ebx
push 0x2b
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
movzx eax, word [edi + 0x18]
push 0x103bad8
push eax
push dword [edi + 4]
mov eax, dword [ebp - 0x440]
push 0x400
add eax, 8
push eax
call fcn.010474f0
push eax
push ebx
push 0x2c
jmp 0x10b0a1b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x434], 0
call edi
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103ab9c
call edi
push eax
push ebx
push 0x2d
jmp 0x10b0a5e
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103ba30
add edi, 0x20
push edi
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.010474b6
push eax
push ebx
push 0x18
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103b9f4
add edi, 0x22a
push edi
push 0x100
lea eax, [ebp - 0x430]
push eax
call fcn.010474b6
push eax
push ebx
push 0x19
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
push 0xe
pop ecx
mov dword [ebp - 0x438], ecx
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103b9e8
push ecx
push ebx
push 0x1a
jmp 0x10b0a63
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
movzx eax, word [edi + 0x1a]
push 0x103b988
push eax
push dword [edi + 8]
mov eax, dword [ebp - 0x43c]
push 0x40
add eax, 8
push eax
call fcn.010474f0
push eax
push ebx
push 0x1b
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103b940
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x43c]
push 0x10
add eax, 0x888
push eax
call fcn.010474b6
push eax
push ebx
push 0x1c
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103b8f8
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 0x43c]
push 0x100
add eax, 0x8a8
push eax
call fcn.010474b6
push eax
push ebx
push 0x1d
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103ab9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1e
jmp 0x10b0a5e
and dword [ebp - 0x434], 0
push 0xe
pop ecx
mov dword [ebp - 0x438], ecx
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103b9e8
push ecx
push ebx
push 0x1f
jmp 0x10b0a63
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
movzx eax, word [edi + 0x1a]
push 0x103b988
push eax
push dword [edi + 8]
mov eax, dword [ebp - 0x43c]
push 0x40
add eax, 8
push eax
call fcn.010474f0
push eax
push ebx
push 0x20
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
mov eax, dword [ebp - 0x444]
movzx ecx, word [eax + 4]
push 0x103b890
push ecx
push dword [eax]
mov eax, dword [ebp - 0x43c]
push 0x400
add eax, 0x88
push eax
call fcn.010474f0
push eax
push ebx
push 0x21
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103b940
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x43c]
push 0x10
add eax, 0x888
push eax
call fcn.010474b6
push eax
push ebx
push 0x22
jmp 0x10b0a1b
and dword [ebp - 0x434], 0
mov ecx, eax
call fcn.010bcebf
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103b8f8
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 0x43c]
push 0x100
add eax, 0x8a8
push eax
call fcn.010474b6
push eax
push ebx
push 0x23
mov eax, dword [0x10e308c]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acaf3
jmp 0x10b0a6e
and dword [ebp - 0x434], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x438], eax
mov eax, dword [0x10e308c]
cmp eax, esi
je 0x10b0a6e
test byte [eax + 0x1c], 8
je 0x10b0a6e
push 0x103ab9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x24
mov eax, dword [0x10e308c]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010acaf3
pop ebx
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 0x440]
call esi
push dword [ebp - 0x458]
call esi
cmp dword [ebp - 0x44c], 0
pop edi
pop esi
je 0x10b0aa4
lea eax, [ebp - 0x44c]
push eax
call fcn.010af645
push 0x103bc1c
call fcn.010bce68
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x434]
xor ecx, ebp
call fcn.010987b7
leave
ret 4