Function at 0x10031ba1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008223d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push esi
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x10031c16
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
push dword [eax]
push 1
push 0x7619
mov eax, dword [ebp - 0x140]
push dword [eax]
call fcn.1002e0d0
add esp, 0x10
jmp 0x10032603
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x118], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x11c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x144], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xfc], 0x1342f3d4
mov dword [ebp - 0x100], 0xe3cb5af9
mov dword [ebp - 0x134], 9
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x4c], 0
jmp 0x10031c75
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jge 0x10031c88
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x14], 0x7d21
jmp 0x10031c6e
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x160], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
push 4
pop ecx
imul ecx, ecx, 0
sub eax, dword [ebp + ecx - 0x14]
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0x14]
jle 0x10031cc4
mov dword [ebp - 0x90], 1
jmp 0x10031ccb
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x100], eax
push 4
pop eax
imul eax, eax, 0
imul eax, dword [ebp + eax - 0x14], 7
cmp eax, 0xf49c23ed
jb 0x10031d01
mov dword [ebp - 0xe8], 1
jmp 0x10031d08
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0xe8]
sub eax, 0x23dd972c
jne 0x10031d1e
mov dword [ebp - 0x70], 1
jmp 0x10031d22
and dword [ebp - 0x70], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
cmp dword [ebp - 0x70], eax
jle 0x10031d3d
mov dword [ebp - 0xf0], 1
jmp 0x10031d44
and dword [ebp - 0xf0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
add eax, dword [ebp - 0xf0]
jne 0x10031d5f
mov dword [ebp - 0x78], 1
jmp 0x10031d63
and dword [ebp - 0x78], 0
push 4
pop eax
imul eax, eax, 0
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x14]
add ecx, dword [ebp - 0x78]
cmp dword [ebp + eax - 0x14], ecx
je 0x10031d88
mov dword [ebp - 0xf8], 1
jmp 0x10031d8f
and dword [ebp - 0xf8], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
add eax, dword [ebp - 0xf8]
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0x14]
jge 0x10031dc4
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x14], 0
je 0x10031dc4
mov dword [ebp - 0x114], 1
jmp 0x10031dcb
and dword [ebp - 0x114], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x100]
cmp dword [ebp + eax - 0x14], ecx
jle 0x10031de9
mov dword [ebp - 0x84], 1
jmp 0x10031df0
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x134]
cmp dword [ebp - 0x84], eax
je 0x10031e0a
mov dword [ebp - 0xc4], 1
jmp 0x10031e11
and dword [ebp - 0xc4], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
cmp dword [ebp - 0xc4], eax
jl 0x10031e2f
mov dword [ebp - 0x8c], 1
jmp 0x10031e36
and dword [ebp - 0x8c], 0
cmp dword [ebp - 0x8c], 6
jle 0x10031e4b
mov dword [ebp - 0xe4], 1
jmp 0x10031e52
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x2c], 0
jmp 0x10031e6b
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x12
jg 0x10031e98
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x10031e96
push 0x4889
push 0x2c54
push 0x10ab
push 0
call fcn.1002a01c
add esp, 0x10
jmp 0x10031e64
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp - 0x144]
mov ecx, dword [ecx]
lea eax, [eax + ecx*8 + 0x10088844]
mov ecx, dword [ebp - 0x124]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x50]
mov eax, dword [eax + ecx*4]
mov dword [edx], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0xab39e224
mov dword [ebp - 0x48], 0
jmp 0x10031ee0
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 4
jge 0x10031ef3
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0x60], 0xc64a6847
jmp 0x10031ed9
mov dword [ebp - 0x10], 3
jmp 0x10031f03
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10032369
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x30], 0x35ff5744
mov dword [ebp - 0x3c], 0x9cbadbef
mov dword [ebp - 0xac], 0xdc28bf2f
mov dword [ebp - 0xbc], 0x6f6066fa
mov dword [ebp - 0x10c], 0x89736453
mov eax, dword [ebp - 0x10]
push 0xfffffffffffffff7
pop ecx
sub ecx, dword [ebp + eax*4 - 0x60]
je 0x1003203b
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x60]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x60], 0xdef9
jge 0x10031f79
mov dword [ebp - 0x94], 1
jmp 0x10031f80
and dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0
jne 0x10031f98
cmp dword [ebp - 0x34], 0
jne 0x10031f98
and dword [ebp - 0xcc], 0
jmp 0x10031fa2
mov dword [ebp - 0xcc], 1
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x190], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x60]
mov dword [ebp - 0x17c], eax
imul eax, dword [ebp - 0x10], 0xfffc
imul eax, eax, 0x434a
imul eax, dword [ebp - 0x10]
push 4
pop ecx
imul ecx, ecx, 3
cmp eax, dword [ebp + ecx - 0x60]
jle 0x10032000
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x60], 0
je 0x10032000
mov dword [ebp - 0x9c], 1
jmp 0x10032007
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x60]
cmp dword [ebp - 0x9c], eax
jge 0x10032022
mov dword [ebp - 0x13c], 1
jmp 0x10032029
and dword [ebp - 0x13c], 0
cmp dword [ebp - 0x30], 0
jne 0x1003203b
mov dword [ebp - 0x12c], 1
jmp 0x10032042
and dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x60]
mov dword [ebp - 0x16c], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x60]
mov dword [ebp - 0x18c], eax
xor eax, eax
inc eax
je 0x10032079
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x60], 0
je 0x10032079
mov dword [ebp - 0xf4], 1
jmp 0x10032080
and dword [ebp - 0xf4], 0
cmp dword [ebp - 0xf4], 0xffffffff
jle 0x10032327
mov dword [ebp - 0x38], 0x772679f1
mov dword [ebp - 0x7c], 0xc7a8f60f
xor eax, eax
inc eax
sub eax, dword [ebp - 0x34]
je 0x1003210e
lea eax, [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x6228
push 0x7bf1
call fcn.10029fb2
add esp, 0x14
mov dword [ebp - 0x1c], 3
jmp 0x100320cf
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x10032109
mov dword [ebp - 0x30], 0
jmp 0x100320e5
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jg 0x10032107
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x10032105
push 0x39b3
push 1
call fcn.10029ca2
pop ecx
pop ecx
jmp 0x100320de
jmp 0x100320c8
jmp 0x1003231f
push 1
lea ecx, [ebp - 0x15c]
call fcn.100188f1
and dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
jmp 0x1003212f
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 1
jge 0x10032148
push dword [ebp - 0x40]
lea ecx, [ebp - 0x15c]
call fcn.1001898f
or dword [eax], 0xffffffff
jmp 0x10032128
push 0
lea ecx, [ebp - 0x15c]
call fcn.1001898f
cmp dword [eax], 0
je 0x1003216d
push 0xfffffffffffffffc
pop eax
test eax, eax
je 0x1003216d
mov dword [ebp - 0x98], 1
jmp 0x10032174
and dword [ebp - 0x98], 0
cmp dword [ebp - 0x34], 0xffffffff
jl 0x10032186
mov dword [ebp - 0xa4], 1
jmp 0x1003218d
and dword [ebp - 0xa4], 0
cmp dword [ebp - 0xa4], 0x4d18
jl 0x100321a5
mov dword [ebp - 0xd4], 1
jmp 0x100321ac
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x100321cd
mov dword [ebp - 0xec], 1
jmp 0x100321d4
and dword [ebp - 0xec], 0
cmp dword [ebp - 0xec], 4
jle 0x100321e9
mov dword [ebp - 0xb4], 1
jmp 0x100321f0
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x60]
cmp dword [ebp - 0xb4], eax
jge 0x1003220b
mov dword [ebp - 0xdc], 1
jmp 0x10032212
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x3c], 0xfffffff6
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x170], eax
mov esi, dword [ebp - 0x38]
push 0
lea ecx, [ebp - 0x15c]
call fcn.1001898f
cmp esi, dword [eax]
jle 0x10032278
mov dword [ebp - 0x80], 1
jmp 0x1003227c
and dword [ebp - 0x80], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x60]
cmp dword [ebp - 0x80], eax
je 0x10032297
mov dword [ebp - 0x88], 1
jmp 0x1003229e
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x88]
imul eax, dword [ebp - 0x38]
test eax, eax
jne 0x100322bd
push 4
pop eax
test eax, eax
jne 0x100322bd
and dword [ebp - 0x64], 0
jmp 0x100322c4
mov dword [ebp - 0x64], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x60]
cmp eax, dword [ebp - 0x64]
jle 0x100322dc
mov dword [ebp - 0xa0], 1
jmp 0x100322e3
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0xa0]
jle 0x100322fd
mov dword [ebp - 0xa8], 1
jmp 0x10032304
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x10c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.10018973
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
jmp 0x10032364
mov dword [ebp - 0x110], 0xd081
push 0x664d
push 0x429
push 0x504
push 0
push 0x1e7e
push 0x171e
push 0xdb1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.10030d03
add esp, 0x24
jmp 0x10031efc
lea eax, [ebp - 0x10]
push eax
push 0x1f00
push 0
call fcn.1002fa33
add esp, 0xc
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x10032603
mov dword [ebp - 0x28], 0xfffffff8
mov dword [ebp - 0x130], 0xd73ae4c7
mov dword [ebp - 0x44], 0
jmp 0x100323b1
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 2
jge 0x100323c7
mov eax, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x14c], 0xae355683
jmp 0x100323aa
mov dword [ebp - 0x28], 0
jmp 0x100323d7
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jg 0x100325cf
mov dword [ebp - 0x18], 0xb659d568
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x68], 0x3063
mov dword [ebp - 0x108], 0x5702
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x10032415
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x178], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14c]
inc eax
cmp eax, dword [ebp - 0x18]
jne 0x1003243d
mov dword [ebp - 0xb0], 1
jmp 0x10032444
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 1
jae 0x10032459
mov dword [ebp - 0xb8], 1
jmp 0x10032460
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xb8], eax
jg 0x10032477
mov dword [ebp - 0xc0], 1
jmp 0x1003247e
and dword [ebp - 0xc0], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x14c]
cmp dword [ebp - 0xc0], eax
je 0x1003249f
mov dword [ebp - 0x120], 1
jmp 0x100324a6
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jle 0x100324ba
mov dword [ebp - 0xc8], 1
jmp 0x100324c1
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x128]
cmp dword [ebp - 0xc8], eax
jg 0x100324db
mov dword [ebp - 0xd0], 1
jmp 0x100324e2
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0xd0], eax
jl 0x100324f9
mov dword [ebp - 0xd8], 1
jmp 0x10032500
and dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xd8], eax
jle 0x10032517
mov dword [ebp - 0xe0], 1
jmp 0x1003251e
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0xe0]
cmp eax, dword [ebp - 0x108]
je 0x10032541
cmp dword [ebp - 0x28], 0
je 0x10032541
mov dword [ebp - 0x6c], 1
jmp 0x10032545
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
jge 0x10032556
mov dword [ebp - 0x74], 1
jmp 0x1003255a
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x74]
jne 0x10032586
mov byte [ebp - 0x20], 0
movzx eax, byte [ebp - 0x20]
test eax, eax
je 0x10032584
push 1
push 0
push 0x13d2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemInt]
jmp 0x100325ca
mov dword [ebp - 0x18], 0
jmp 0x10032596
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jg 0x100325b8
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x100325b6
push 1
push 0x6eee
call fcn.10029cd2
pop ecx
pop ecx
jmp 0x1003258f
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x14c], 0
je 0x100325ca
jmp 0x100325cf
jmp 0x100323d0
mov byte [ebp - 0x1f], 0
movzx eax, byte [ebp - 0x1f]
test eax, eax
je 0x100325f4
push 0x5e8f
push 0
push 0x18e
push 0x7598
call fcn.100301b7
add esp, 0x10
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
or eax, 0x200
mov ecx, dword [ebp - 0x50]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret