Function at 0x1001fdd5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 8
call fcn.10026bb6
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x1003f2c9
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov eax, 0x1003f2d1
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1001fe3b
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
push 0x80000301
push 0
push 0x1000
push 1
mov ebx, 0x1bc
call fcn.10027e90
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001fe76
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.100070df
mov dword [ebp - 0x20], eax
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 0x1000
push dword [ebp - 0x20]
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10008d8c
test eax, eax
je 0x100204c6
push 0x80000301
push 0
push 3
push 0x80000301
push 0
push 2
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1001fedd
mov eax, 0x1003f2c9
push eax
push 3
mov ebx, 0x19c
call fcn.10027c60
add esp, 0x28
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x1001ff11
and eax, 0xff
jmp 0x1001ff5c
cmp ecx, 0x80000201
jne 0x1001ff1c
cwde
jmp 0x1001ff5c
cmp ecx, 0x80000301
je 0x1001ff5c
cmp ecx, 0x80000401
je 0x1001ff5c
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x1001ff4c
cmp ecx, 0x80000601
je 0x1001ff51
push 2
call fcn.10026bbc
add esp, 4
fld dword [ebp - 0x30]
jmp 0x1001ff57
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.1000153b
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 0x80000301
push 0
push 9
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1001ff88
mov eax, 0x1003f2c9
push eax
push 3
mov ebx, 0x1a8
call fcn.10028210
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001ffb2
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.1000ee3e
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1001ffd8
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp dword [ebp + 0x14], 0
jne 0x10020030
mov dword [ebp - 0x20], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1002000c
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1002002b
push eax
mov ebx, eax
call fcn.100018ec
inc eax
push eax
call fcn.10026bb6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100204d0
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x1bc
call fcn.10027e90
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10020065
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], esp
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10020076
add eax, 8
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x10020098
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push htons
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x100200b8
mov eax, 0x1003f2c9
push eax
push 2
mov ebx, 0x1a0
call fcn.10028510
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100200e2
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push htons
push 0
push 0x100413f0
push htons
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x1002010b
mov eax, 0x1003f2c9
push eax
push 3
mov ebx, 0x1c4
call fcn.10028790
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10020143
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1002013f
imul eax, dword [ebx]
jmp 0x10020134
mov ecx, eax
test ecx, ecx
je 0x10020162
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1002015b
push ebx
push eax
call fcn.10026bb0
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10020149
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
call fcn.100018d3
xor ecx, ecx
push eax
lea eax, [ebp - 0x18]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x1002047b
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.10027770
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x100201c2
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
call fcn.1000100e
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x100201e3
push 4
call fcn.10026bbc
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100201f6
push 1
call fcn.10026bbc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x14]
call fcn.1000100e
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x1002021b
push 4
call fcn.10026bbc
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1002022e
push 1
call fcn.10026bbc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x100413fa
mov ebx, dword [ebp - 0x24]
push dword [ebx]
mov ecx, 2
call fcn.1000920b
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10020266
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
call fcn.1000100e
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x10020289
push 4
call fcn.10026bbc
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1002029c
push 1
call fcn.10026bbc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esp
push 0x80
push dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
je 0x100202bb
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x100202d8
push 6
call fcn.10026bbc
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x100202fd
mov eax, 0x1003f2d1
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x10020313
mov eax, 0x1003f2d1
push eax
push 4
mov ebx, 0x148
call fcn.100277b0
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x10020473
mov ebx, dword [ebp - 0x14]
call fcn.1000100e
push ebx
push ecx
mov eax, dword [ebp - 0x18]
dec eax
jns 0x10020350
push 4
call fcn.10026bbc
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10020363
push 1
call fcn.10026bbc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push htons
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x10020380
mov eax, 0x1003f2c9
push eax
push 1
mov ebx, 0x168
call fcn.100271f0
add esp, 0x10
mov dword [ebp - 0x24], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.1000ffd1
push 0x80000004
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x100203bf
mov eax, 0x1003f2d1
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x100203d3
mov eax, 0x1003f2d1
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x100203e9
mov eax, 0x1003f2d1
push eax
push 6
mov ebx, 0x180
call fcn.10028930
add esp, 0x4c
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x1002040f
push ebx
call fcn.10026bb0
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10020425
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x20], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1002044f
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1002046e
push eax
mov ebx, eax
call fcn.100018ec
inc eax
push eax
call fcn.10026bb6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100204d0
pop eax
pop ebx
pop ecx
jmp 0x1002017f
add esp, 0xc
mov dword [ebp - 0x20], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x100204a2
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100204c1
push eax
mov ebx, eax
call fcn.100018ec
inc eax
push eax
call fcn.10026bb6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100204d0
mov eax, 0x1003f2d1
jmp 0x100204d0
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100204e1
push ebx
call fcn.10026bb0
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100204f1
push ebx
call fcn.10026bb0
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1002050f
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1002050b
imul eax, dword [ebx]
jmp 0x10020500
mov ecx, eax
test ecx, ecx
je 0x1002052e
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10020527
push ebx
push eax
call fcn.10026bb0
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10020515
call fcn.10026bb0
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10020546
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10