Function at 0x100f082
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push dword [0x101a2c8]
lea eax, [ebp - 8]
push dword [0x101a7f8]
xor esi, esi
push eax
push dword [0x101a994]
inc esi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
call fcn.0100ce14
test eax, eax
jne 0x100ef42
push 0xcdb
jmp 0x100ef9d
cmp dword [ebp - 8], esi
jne 0x100ef4c
cmp dword [ebp - 4], edi
je 0x100ef53
push 0xcdc
jmp 0x100ef9d
push dword [0x101a7f8]
mov dword [reloc.msvcrt.dll___p__commode], esi
push 0x80
mov esi, 0x1002278
push esi
mov dword [reloc.msvcrt.dll___p__commode], edi
call fcn.0100e9b8
test eax, eax
jne 0x100ef80
push 0xcdf
jmp 0x100ef9d
mov eax, dword [reloc.msvcrt.dll___p__commode]
cmp dword [eax], edi
je 0x100ef90
push 0xce3
jmp 0x100ef9d
mov ecx, dword [eax + 8]
or ecx, dword [eax + 0xc]
jne 0x100efb3
push 0xce5
push 0x10027b0
push 0x1002760
call fcn.01007320
xor eax, eax
jmp 0x100f1f1
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
push ebx
push 0xa
pop ebx
push dword [0x101a2c8]
mov dword [ebp - 0xc], eax
push dword [0x101a7f8]
lea eax, [ebp - 8]
push eax
push dword [0x101a994]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
call fcn.0100ce14
test eax, eax
jne 0x100f003
push 0xcee
push 0x10027b0
push 0x1002760
call fcn.01007320
xor eax, eax
jmp 0x100f1f0
cmp dword [ebp - 8], ebx
jne 0x100f00d
cmp dword [ebp - 4], edi
je 0x100f014
push 0xcef
jmp 0x100efed
push dword [0x101a7f8]
mov dword [reloc.msvcrt.dll___p__commode], ebx
push 0x80
push esi
mov dword [reloc.msvcrt.dll___p__commode], edi
call fcn.0100e9b8
test eax, eax
jne 0x100f03c
push 0xcf2
jmp 0x100efed
mov eax, dword [reloc.msvcrt.dll___p__commode]
cmp dword [eax], edi
je 0x100f04c
push 0xcf6
jmp 0x100efed
mov ecx, dword [eax + 8]
or ecx, dword [eax + 0xc]
jne 0x100f05b
push 0xcf8
jmp 0x100efed
mov ebx, dword [eax + 0x30]
push dword [0x101a2c8]
add ebx, dword [eax + 0x28]
mov ecx, dword [eax + 0x34]
adc ecx, dword [eax + 0x2c]
push dword [0x101a7f8]
lea eax, [ebp - 8]
push eax
push dword [0x101a994]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.0100ce14
test eax, eax
jne 0x100f099
push 0xd01
jmp 0x100efed
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
je 0x100f0ab
push 0xd02
jmp 0x100efed
push dword [0x101a7f8]
mov dword [reloc.msvcrt.dll___p__commode], edi
push 0x80
push esi
mov dword [reloc.msvcrt.dll___p__commode], edi
call fcn.0100e9b8
test eax, eax
jne 0x100f0d6
push 0xd06
jmp 0x100efed
mov esi, dword [reloc.msvcrt.dll___p__commode]
cmp dword [esi], edi
je 0x100f0ea
push 0xd0a
jmp 0x100efed
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, eax
or edx, ecx
jne 0x100f100
push 0xd0c
jmp 0x100efed
add eax, 1
push 0
adc ecx, 0
push 0x10
push ecx
push eax
lea edi, [esi + 0x28]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
call fcn.01017fa0
add eax, 0x28
adc edx, 0
xor ecx, ecx
cmp edx, ecx
jl 0x100f172
jg 0x100f130
cmp eax, dword [reloc.msvcrt.dll___p__commode]
jbe 0x100f172
mov eax, dword [reloc.msvcrt.dll___p__commode]
push 0x101a7ec
push 0x101a99c
add eax, 0x10000
push eax
call fcn.01005205
test eax, eax
jne 0x100f158
push 0xd16
jmp 0x100efed
add dword [reloc.msvcrt.dll___p__commode], 0x10000
mov esi, dword [reloc.msvcrt.dll___p__commode]
lea edi, [esi + 0x28]
adc dword [reloc.msvcrt.dll___p__commode], 0
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
shl edx, 4
mov dword [edx + edi - 0x10], eax
mov dword [edx + edi - 0xc], ecx
sub ebx, eax
mov eax, dword [ebp - 0x14]
sbb eax, ecx
mov ecx, dword [esi + 8]
shl ecx, 4
mov dword [ecx + edi - 8], ebx
mov dword [ecx + edi - 4], eax
push dword [0x101a1f4]
mov eax, dword [esi + 8]
push dword [0x101a1f0]
shl eax, 4
lea edi, [eax + edi - 8]
push dword [edi + 4]
push dword [edi]
call fcn.01017fa0
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], edx
push dword [0x101a1f4]
push dword [0x101a1f0]
push dword [edi + 4]
push dword [edi]
call fcn.01017fa0
add dword [esi + 0x20], eax
mov eax, dword [esi + 8]
adc dword [esi + 0x24], edx
mov dword [reloc.msvcrt.dll___p__commode], eax
mov eax, dword [esi + 0xc]
mov dword [reloc.msvcrt.dll___p__commode], eax
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret