Function at 0x10030bd7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085d22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10030c21
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
and dword [eax], 0
jmp 0x1003167a
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc4], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x170], 0xcd4431fa
mov dword [ebp - 0x34], 0xffffffea
jmp 0x10030c54
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x12
jge 0x10030e49
push 2
lea ecx, [ebp - 0xfc]
call fcn.10017f3e
and dword [ebp - 4], 0
mov dword [ebp - 0x28], 0xbcd76ce4
mov dword [ebp - 0x3c], 0
jmp 0x10030c86
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jge 0x10030ca2
push dword [ebp - 0x3c]
lea ecx, [ebp - 0xfc]
call fcn.10017fdc
mov dword [eax], 1
jmp 0x10030c7f
push 1
lea ecx, [ebp - 0xfc]
call fcn.10017fdc
mov dword [eax], 0xa
jmp 0x10030cdb
push 1
lea ecx, [ebp - 0xfc]
call fcn.10017fdc
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xd8]
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0xfc]
call fcn.10017fdc
cmp dword [eax], 0
jge 0x10030dee
mov dword [ebp - 0x20], 0xe5c7a00f
mov dword [ebp - 0x20], 0xffffffe9
jmp 0x10030d08
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffe4
jle 0x10030dba
mov dword [ebp - 0x48], 0
jmp 0x10030d22
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jge 0x10030d38
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x148], 0xfffffffe
jmp 0x10030d1b
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x148], 0x10
jmp 0x10030d63
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x148]
dec eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x148], eax
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x148], 9
jge 0x10030d9e
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x10030d9c
push 0x270d
push 0x3f52
push 0x2365
push 1
push 0x5bba
call fcn.1002d1a3
add esp, 0x14
jmp 0x10030d4a
mov byte [ebp - 0x24], 0
push 1
lea eax, [ebp - 0x24]
push eax
push 0x4612
call fcn.1002d2c5
add esp, 0xc
jmp 0x10030d01
mov dword [ebp - 0x20], 0
jmp 0x10030dca
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1a
je 0x10030de9
mov dword [ebp - 0xd0], 0x1d1b
mov eax, dword [ebp - 0xd0]
inc eax
mov dword [ebp - 0xd0], eax
jmp 0x10030dc3
jmp 0x10030cb7
mov dword [ebp - 0x28], 0
jmp 0x10030dfe
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jg 0x10030e35
push dword [ebp - 0x28]
lea ecx, [ebp - 0xfc]
call fcn.10017fdc
cmp dword [eax], 0
je 0x10030e19
jmp 0x10030e35
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x10030e33
push 0x763e
push 0
call fcn.1002fc6f
pop ecx
pop ecx
jmp 0x10030df7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.10017fc0
jmp 0x10030c4d
mov byte [ebp - 0x23], 0
movzx eax, byte [ebp - 0x23]
test eax, eax
je 0x10030e5d
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x110], 0xffff
mov dword [ebp - 0x44], 0
jmp 0x10030e8a
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 6
jge 0x10030ecd
mov dword [ebp - 0x130], 0xffffffff
push 0x2d91
push 0x3fc8
lea eax, [ebp - 0x130]
push eax
push 0x7d08
push 0x6248
push 0x2960
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.100319b7
add esp, 0x20
jmp 0x10030e83
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax]
push 8
pop ecx
imul ecx, ecx, 5
lea eax, [eax + ecx + 0x78]
mov dword [ebp - 0x60], eax
push 3
lea ecx, [ebp - 0xf0]
call fcn.10017f3e
mov dword [ebp - 4], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x10], 0
jmp 0x10030f14
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x10030f27
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x14], 0xfffffffa
jmp 0x10030f0d
mov dword [ebp - 0x10], 0
jmp 0x10030f37
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10030f4d
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x128], 0
jmp 0x10030f30
mov dword [ebp - 0x10], 0
jmp 0x10030f5d
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10030f79
push dword [ebp - 0x10]
lea ecx, [ebp - 0xf0]
call fcn.10017fdc
mov dword [eax], 0x2e974a52
jmp 0x10030f56
mov dword [ebp - 0x10], 0
jmp 0x10030f89
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10030f9f
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x150], 1
jmp 0x10030f82
mov dword [ebp - 0x10], 0
jmp 0x10030faf
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10030fc5
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x180], 0xffffffff
jmp 0x10030fa8
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x14], 0xffffffef
jmp 0x10030fea
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x14], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x14], 0xffffffed
je 0x100311f2
mov dword [ebp - 0x4c], 0x188753e1
mov dword [ebp - 0x108], 0
mov dword [ebp - 0xbc], 0xc93e
mov dword [ebp - 0x38], 0
jmp 0x10031026
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x1003103c
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x15c], 0xffffffff
jmp 0x1003101f
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
mov esi, dword [ebp - 0x4c]
push 1
lea ecx, [ebp - 0xf0]
call fcn.10017fdc
cmp dword [eax], esi
jge 0x10031060
mov dword [ebp - 0x6c], 1
jmp 0x10031064
and dword [ebp - 0x6c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
cmp eax, dword [ebp - 0x6c]
jge 0x1003107f
mov dword [ebp - 0xcc], 1
jmp 0x10031086
and dword [ebp - 0xcc], 0
push 0
lea ecx, [ebp - 0xf0]
call fcn.10017fdc
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov esi, dword [ebp - 0x40]
push 1
lea ecx, [ebp - 0xf0]
call fcn.10017fdc
imul eax, dword [eax], 0xfffffffd
imul esi, eax
push 4
pop eax
shl eax, 1
imul esi, dword [ebp + eax - 0x15c]
test esi, esi
jne 0x100310cb
cmp dword [ebp - 0x40], 0
jne 0x100310cb
and dword [ebp - 0x74], 0
jmp 0x100310d2
mov dword [ebp - 0x74], 1
mov eax, dword [ebp - 0xcc]
cmp eax, dword [ebp - 0x74]
jg 0x100310e9
mov dword [ebp - 0x104], 1
jmp 0x100310f0
and dword [ebp - 0x104], 0
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x15c], 0
jne 0x1003110a
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x14], 0
push 0xfffffffffffffffc
pop eax
test eax, eax
je 0x10031126
cmp dword [ebp - 0x108], 0
je 0x10031126
mov dword [ebp - 0xd4], 1
jmp 0x1003112d
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x7c], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x7c]
mov dword [ebp + eax - 0x15c], ecx
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
add eax, dword [ebp - 0x7c]
jne 0x1003116a
push 0xfffffffffffffff9
pop eax
test eax, eax
jne 0x1003116a
and dword [ebp - 0xdc], 0
jmp 0x10031174
mov dword [ebp - 0xdc], 1
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x128], 0x290b
cmp dword [ebp - 0xdc], 0x290b
jg 0x1003119d
mov dword [ebp - 0xe4], 1
jmp 0x100311a4
and dword [ebp - 0xe4], 0
push 0
lea ecx, [ebp - 0xf0]
call fcn.10017fdc
mov ecx, dword [ebp - 0xe4]
cmp ecx, dword [eax]
je 0x100311c7
mov dword [ebp - 0x88], 1
jmp 0x100311ce
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xbc], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xbc]
mov dword [ebp + eax - 0x150], ecx
jmp 0x10030fd5
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x128], 1
ja 0x1003120e
mov dword [ebp - 0x90], 1
jmp 0x10031215
and dword [ebp - 0x90], 0
cmp dword [ebp - 0x90], 4
je 0x1003122a
mov dword [ebp - 0xc0], 1
jmp 0x10031231
and dword [ebp - 0xc0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
cmp dword [ebp - 0xc0], eax
jg 0x10031247
xor eax, eax
je 0x10031259
mov eax, 0x9f94ad8a
test eax, eax
je 0x10031259
mov dword [ebp - 0x5c], 1
jmp 0x1003125d
and dword [ebp - 0x5c], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + eax - 0x180], ecx
cmp dword [ebp - 0x5c], 0
jb 0x1003127f
mov dword [ebp - 0x98], 1
jmp 0x10031286
and dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 0xc8c6
je 0x1003129e
mov dword [ebp - 0xe0], 1
jmp 0x100312a5
and dword [ebp - 0xe0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
imul eax, dword [ebp - 0xe0]
test eax, eax
jne 0x100312d3
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x150], 0
jne 0x100312d3
and dword [ebp - 0xa0], 0
jmp 0x100312dd
mov dword [ebp - 0xa0], 1
mov eax, dword [ebp - 0xa0]
sub eax, 0x54f47d91
mov ecx, dword [ebp - 0x40]
add ecx, eax
mov dword [ebp - 0xc8], ecx
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xc8]
mov dword [ebp + eax - 0x14], ecx
cmp dword [ebp - 0xc8], 0
je 0x1003131e
cmp dword [ebp - 0x58], 0
je 0x1003131e
mov dword [ebp - 0xa8], 1
jmp 0x10031325
and dword [ebp - 0xa8], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xa8]
mov dword [ebp + eax - 0x128], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.10017fc0
mov eax, dword [ebp - 0x60]
cmp dword [eax + 4], 0
jbe 0x1003167a
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x78]
add ecx, dword [eax]
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp - 0x70]
cmp dword [eax], 0
jbe 0x1003167a
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x80], 7
push 3
lea ecx, [ebp - 0x13c]
call fcn.10017f3e
mov dword [ebp - 4], 2
mov dword [ebp - 0x8c], 0xfffffffe
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x12c], 0x7a2d47e1
mov dword [ebp - 0x164], 0xf13d4640
mov dword [ebp - 0x18], 0
jmp 0x100313d0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x100313e3
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x30], 0xd3650dfa
jmp 0x100313c9
mov dword [ebp - 0x18], 0
jmp 0x100313f3
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x1003140f
push dword [ebp - 0x18]
lea ecx, [ebp - 0x13c]
call fcn.10017fdc
mov dword [eax], 0xfffffffc
jmp 0x100313ec
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x30], 7
je 0x10031428
mov dword [ebp - 0xb0], 1
jmp 0x1003142f
and dword [ebp - 0xb0], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xb0]
sub ecx, dword [ebp + eax - 0x30]
push 4
pop eax
imul eax, eax, 0
cmp ecx, dword [ebp + eax - 0x30]
jge 0x10031457
mov dword [ebp - 0xb8], 1
jmp 0x1003145e
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
push 2
lea ecx, [ebp - 0x13c]
call fcn.10017fdc
mov ecx, dword [ebp - 0x84]
mov dword [eax], ecx
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x84]
sub ecx, dword [ebp + eax - 0x30]
mov dword [ebp - 0x8c], ecx
imul eax, dword [ebp - 0x8c], 0x8a81
push 4
pop ecx
shl ecx, 0
add eax, dword [ebp + ecx - 0x30]
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0x30]
jl 0x100314c7
mov dword [ebp - 0x94], 1
jmp 0x100314ce
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x50], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x50]
sub ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + eax - 0x30]
jne 0x100314f9
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x30], 0
jne 0x10031509
push 8
pop eax
test eax, eax
jne 0x10031509
and dword [ebp - 0x114], 0
jmp 0x10031513
mov dword [ebp - 0x114], 1
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], eax
jl 0x10031539
mov dword [ebp - 0x9c], 1
jmp 0x10031540
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x9c], eax
je 0x10031557
mov dword [ebp - 0xa4], 1
jmp 0x1003155e
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xa4], eax
je 0x10031575
mov dword [ebp - 0x120], 1
jmp 0x1003157c
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x174], eax
push 0
lea ecx, [ebp - 0x13c]
call fcn.10017fdc
mov ecx, dword [ebp - 0x54]
cmp dword [eax], ecx
je 0x100315ab
mov eax, 0xe576
test eax, eax
jne 0x100315ab
and dword [ebp - 0x118], 0
jmp 0x100315b5
mov dword [ebp - 0x118], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x16c], eax
mov eax, 0xc609e820
sub eax, 9
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0x30]
jne 0x100315de
mov dword [ebp - 0xac], 1
jmp 0x100315e5
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xac]
jg 0x100315fc
mov dword [ebp - 0xb4], 1
jmp 0x10031603
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x1c]
neg eax
sub eax, dword [ebp - 0xb4]
push 4
pop ecx
shl ecx, 0
mov ecx, dword [ebp + ecx - 0x30]
lea eax, [eax + ecx - 0x33d4965d]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xf5c6
jge 0x10031634
mov dword [ebp - 0x68], 1
jmp 0x10031638
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x68]
neg eax
mov dword [ebp - 0x12c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.10017fc0
lea eax, [ebp - 0x70]
push eax
push 0
push 0x40ba
mov eax, dword [ebp - 0x10c]
push dword [eax]
push 0x5e87
push dword [ebp - 0x78]
call fcn.1002d446
add esp, 0x18
jmp 0x1003135f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret