Function at 0x10008740
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068c9f
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], ebx
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x80], 1
call fcn.100089f0
cmp byte [ebp - 0x30], 0
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
jne 0x100087d4
xor ecx, ecx
jmp 0x100087e9
lea ecx, [ebp - 0x30]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100087e0
sub ecx, edx
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x78]
call fcn.100027a0
push 0
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call edi
mov esi, eax
push esi
call fcn.10048c87
add esp, 4
mov dword [ebp - 0x7c], eax
push eax
push esi
call edi
lea edi, [esi - 2]
cmp edi, 3
jl 0x10008961
push 1
call fcn.100498c3
mov esi, eax
add esp, 4
test esi, esi
je 0x1000883c
mov byte [esi], 3
jmp 0x1000883e
xor esi, esi
xor eax, eax
mov word [esi], ax
mov byte [esi + 2], al
mov eax, dword [ebp - 0x7c]
mov al, byte [eax + edi - 3]
mov byte [esi], al
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp byte [esi], 0
jne 0x1000886a
xor ecx, ecx
jmp 0x10008879
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008870
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.100027a0
mov ecx, dword [ebp - 0x7c]
push esi
movzx eax, byte [ecx + edi - 2]
mov byte [esi + 1], al
movzx eax, byte [ecx + edi]
mov byte [esi + 2], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x10008940
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], al
cmp byte [esi], 0
jne 0x100088c3
xor ecx, ecx
jmp 0x100088d1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100088c8
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x60]
call fcn.100027a0
push dword [ebp - 0x38]
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x78]
push eax
call fcn.1000a460
cmp eax, 0xffffffff
jne 0x1000892f
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.1000db80
add esp, 8
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.10003360
cmp dword [ebp - 0x88], 0x10
jb 0x1000892f
push dword [ebp - 0x9c]
call fcn.100498af
add esp, 4
cmp dword [ebp - 0x4c], 0x10
jb 0x10008940
push dword [ebp - 0x60]
call fcn.100498af
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 0x10
jb 0x10008955
push dword [ebp - 0x48]
call fcn.100498af
add esp, 4
sub edi, 4
cmp edi, 3
jge 0x10008827
mov eax, dword [ebp - 0x7c]
push eax
call fcn.100498af
mov edx, dword [ebx + 4]
mov eax, 0x2aaaaaab
mov ecx, dword [ebx]
add esp, 4
sub edx, ecx
imul edx
push dword [ebp - 0x84]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebx + 4]
push eax
call fcn.10008c20
add esp, 8
cmp dword [ebp - 0x64], 0x10
jb 0x100089a8
push dword [ebp - 0x78]
call fcn.100498af
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret 4