Function at 0x1000a798
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 8
call fcn.1005090d
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x100ff252
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov eax, 0x100ff251
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000a805
push ebx
call fcn.10050907
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.10052020
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000a840
push ebx
call fcn.10050907
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.1000af9b
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
push 0x1000
push dword [ebp - 0x24]
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10002861
test eax, eax
je 0x1000af14
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 0x1000a89f
mov eax, 0x100ff252
push eax
push 3
mov ebx, 0x19c
call fcn.10051ca0
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmp ecx, 0x80000101
jne 0x1000a8d3
and eax, 0xff
jmp 0x1000a928
cmp ecx, 0x80000201
jne 0x1000a8de
cwde
jmp 0x1000a928
cmp ecx, 0x80000301
je 0x1000a928
cmp ecx, 0x80000401
je 0x1000a928
mov dword [ebp - 0x34], eax
cmp ecx, 0x80000501
je 0x1000a918
cmp ecx, 0x80000601
je 0x1000a91d
push 0xd6
push 0x40355f5
push 2
call fcn.1005092b
add esp, 0xc
fld dword [ebp - 0x34]
jmp 0x1000a923
mov dword [ebp - 0x30], edx
fld qword [ebp - 0x34]
call fcn.10002940
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 0x80000301
push 0
push 9
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000a954
mov eax, 0x100ff252
push eax
push 3
mov ebx, 0x1a8
call fcn.10052050
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000a97e
push ebx
call fcn.10050907
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.1000afbf
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000a9a4
push ebx
call fcn.10050907
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp dword [ebp + 0x14], 0
jne 0x1000aa06
mov dword [ebp - 0x24], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x1000a9e2
push 0x1f8
push 0x40355f5
push 6
call fcn.1005092b
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000aa01
push eax
mov ebx, eax
call fcn.10002fe8
inc eax
push eax
call fcn.1005090d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000af1e
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x1bc
call fcn.10052020
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000aa3b
push ebx
call fcn.10050907
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000aa4c
add eax, 8
push eax
push 0x100
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x1000aa78
push 0x264
push 0x40355f5
push 6
call fcn.1005092b
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0x14]
push htons
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1000aa98
mov eax, 0x100ff252
push eax
push 2
mov ebx, 0x1a0
call fcn.100520a0
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000aac2
push ebx
call fcn.10050907
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push htons
push 0
push 0x100ff381
push htons
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1000aaeb
mov eax, 0x100ff252
push eax
push 3
mov ebx, 0x1c4
call fcn.100520d0
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1000ab23
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1000ab1f
imul eax, dword [ebx]
jmp 0x1000ab14
mov ecx, eax
test ecx, ecx
je 0x1000ab42
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1000ab3b
push ebx
push eax
call fcn.10050907
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1000ab29
call fcn.10050907
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
call fcn.10001d8c
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x1000aebf
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.10051290
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1000aba2
push ebx
call fcn.10050907
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
call fcn.10001371
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x1000abcd
push 0x376
push 0x40355f5
push 4
call fcn.1005092b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000abea
push 0x376
push 0x40355f5
push 1
call fcn.1005092b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x18]
call fcn.10001371
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x1000ac19
push 0x396
push 0x40355f5
push 4
call fcn.1005092b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000ac36
push 0x396
push 0x40355f5
push 1
call fcn.1005092b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push 0x100ff38b
mov ebx, dword [ebp - 0x28]
push dword [ebx]
mov ecx, 2
call fcn.1000a739
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000ac6e
push ebx
call fcn.10050907
add esp, 4
pop eax
mov ebx, dword [ebp - 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
call fcn.10001371
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x1000ac9b
push 0x3cc
push 0x40355f5
push 4
call fcn.1005092b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000acb8
push 0x3cc
push 0x40355f5
push 1
call fcn.1005092b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esp
push 0x80
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
je 0x1000acd7
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x1000acfe
push 0x3cc
push 0x40355f5
push 6
call fcn.1005092b
add esp, 0xc
push reloc.oleaut32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x1000ad23
mov eax, 0x100ff251
push eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x1000ad39
mov eax, 0x100ff251
push eax
push 4
mov ebx, 0x148
call fcn.10051e40
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x1000aeb7
mov ebx, dword [ebp - 0x18]
call fcn.10001371
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x1000ad80
push 0x48a
push 0x40355f5
push 4
call fcn.1005092b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000ad9d
push 0x48a
push 0x40355f5
push 1
call fcn.1005092b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push htons
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x1000adba
mov eax, 0x100ff252
push eax
push 1
mov ebx, 0x168
call fcn.10051580
add esp, 0x10
mov dword [ebp - 0x28], eax
push reloc.oleaut32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.1000a790
push VariantClear
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x1000adf9
mov eax, 0x100ff251
push eax
push VariantClear
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x1000ae0d
mov eax, 0x100ff251
push eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x1000ae23
mov eax, 0x100ff251
push eax
push 6
mov ebx, 0x180
call fcn.10052290
add esp, 0x4c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x1000ae49
push ebx
call fcn.10050907
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1000ae5f
push ebx
call fcn.10050907
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x24], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x1000ae93
push 0x4c4
push 0x40355f5
push 6
call fcn.1005092b
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000aeb2
push eax
mov ebx, eax
call fcn.10002fe8
inc eax
push eax
call fcn.1005090d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000af1e
pop eax
pop ebx
pop ecx
jmp 0x1000ab5f
add esp, 0xc
mov dword [ebp - 0x24], esp
mov ebx, dword [ebp + 0x10]
push dword [ebx]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x1000aef0
push 0x51a
push 0x40355f5
push 6
call fcn.1005092b
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000af0f
push eax
mov ebx, eax
call fcn.10002fe8
inc eax
push eax
call fcn.1005090d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000af1e
mov eax, 0x100ff251
jmp 0x1000af1e
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000af2f
push ebx
call fcn.10050907
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000af3f
push ebx
call fcn.10050907
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1000af5d
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1000af59
imul eax, dword [ebx]
jmp 0x1000af4e
mov ecx, eax
test ecx, ecx
je 0x1000af7c
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1000af75
push ebx
push eax
call fcn.10050907
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1000af63
call fcn.10050907
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1000af94
push ebx
call fcn.10050907
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10