Function at 0x1009979
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
xor edi, edi
xor esi, esi
inc esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], esi
mov byte [ebp - 1], 0
call fcn.010088ba
push dword [0x101a998]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
jne 0x1009894
call fcn.0100b23e
test eax, eax
je 0x100988d
push 0x10020dc
push esi
push 0x197
push 0x46
call fcn.0100b327
add esp, 0x10
xor eax, eax
jmp 0x1009a8f
add eax, 0x10
cmp dword [reloc.msvcrt.dll___p__commode], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
jl 0x1009a7c
jg 0x10098ba
cmp dword [reloc.msvcrt.dll___p__commode], edi
jbe 0x1009a7c
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101a20c]
push dword [0x101a208]
push dword [ebp - 0xc]
call fcn.01008bec
mov eax, dword [ebp - 0x1c]
test eax, eax
mov ecx, dword [ebp - 0x18]
jne 0x10098ed
test ecx, ecx
je 0x1009a7b
cmp ecx, dword [ebp + 0x10]
jl 0x1009a55
jg 0x1009901
cmp eax, dword [ebp + 0xc]
jb 0x1009a55
add eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
adc ecx, ebx
cmp dword [ebp + 0x28], 0
je 0x10099db
cmp dword [reloc.msvcrt.dll___p__commode], 2
jne 0x10099db
cmp ebx, dword [reloc.msvcrt.dll___p__commode]
jg 0x100997c
mov edi, dword [reloc.msvcrt.dll___p__commode]
jl 0x1009935
cmp dword [ebp - 0x14], edi
jae 0x100997c
mov esi, dword [reloc.msvcrt.dll___p__commode]
cmp ecx, esi
jl 0x100997c
mov edx, dword [reloc.msvcrt.dll___p__commode]
jg 0x100994b
cmp eax, edx
jbe 0x100997c
cmp ebx, esi
jg 0x100995c
jl 0x1009956
cmp dword [ebp - 0x14], edx
jae 0x100995c
mov eax, edx
mov ecx, esi
jmp 0x100997c
mov edx, dword [reloc.msvcrt.dll___p__commode]
cmp ecx, edx
jl 0x1009a55
jg 0x1009974
cmp eax, edi
jbe 0x1009a55
mov ebx, edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
cmp ebx, dword [reloc.msvcrt.dll___p__commode]
jg 0x10099db
mov edi, dword [reloc.msvcrt.dll___p__commode]
jl 0x1009991
cmp dword [ebp - 0x14], edi
jae 0x10099db
mov esi, dword [reloc.msvcrt.dll___p__commode]
cmp ecx, esi
jl 0x10099db
mov edx, dword [reloc.msvcrt.dll___p__commode]
jg 0x10099a7
cmp eax, edx
jbe 0x10099db
cmp ebx, esi
jg 0x10099bb
jl 0x10099b5
cmp dword [ebp - 0x14], edx
jae 0x10099bb
mov ebx, dword [ebp - 0x10]
mov eax, edx
mov ecx, esi
jmp 0x10099db
mov edx, dword [reloc.msvcrt.dll___p__commode]
cmp ecx, edx
jl 0x1009a55
jg 0x10099d3
cmp eax, edi
jbe 0x1009a55
mov ebx, edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
cmp ebx, dword [ebp + 0x20]
jg 0x1009a25
jl 0x10099ea
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x1c]
jae 0x1009a25
cmp ecx, dword [ebp + 0x18]
jl 0x1009a25
jg 0x10099f6
cmp eax, dword [ebp + 0x14]
jbe 0x1009a25
cmp ebx, dword [ebp + 0x18]
jg 0x1009a0d
jl 0x1009a05
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x14]
jae 0x1009a0d
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
jmp 0x1009a25
cmp ecx, dword [ebp + 0x20]
jl 0x1009a55
jg 0x1009a19
cmp eax, dword [ebp + 0x1c]
jbe 0x1009a55
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ebx
mov edx, dword [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 1]
push eax
push 0x18
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
sbb ecx, ebx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ecx
call dword [sym.imp.ntdll.dll_RtlInsertElementGenericTableAvl]
test eax, eax
je 0x1009a77
mov eax, dword [ebp - 0x20]
cmp eax, dword [reloc.msvcrt.dll___p__commode]
jl 0x10098bb
jg 0x1009a7b
mov eax, dword [ebp - 0x24]
cmp eax, dword [reloc.msvcrt.dll___p__commode]
jb 0x10098bb
jmp 0x1009a7b
and dword [ebp - 8], 0
pop ebx
mov eax, dword [reloc.msvcrt.dll___p__commode]
test eax, eax
je 0x1009a8c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x24