Function at 0x1086f40
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x264
push esi
mov esi, dword [ebp + 0x78]
push 0x100bc88
push esi
call fcn.0104cdcf
test eax, eax
pop ecx
pop ecx
je 0x1086f79
call fcn.0104bfa2
push 2
pop esi
mov dword [eax], esi
call fcn.0104bfb5
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x1087218
push ebx
xor ebx, ebx
cmp byte [esi + 1], 0x3a
jne 0x1086fb5
mov al, byte [esi]
cmp al, bl
je 0x1086fa6
cmp byte [esi + 2], bl
jne 0x1086fa6
call fcn.0104bfa2
push 2
pop esi
mov dword [eax], esi
call fcn.0104bfb5
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x1087217
movsx eax, al
push eax
call fcn.01088703
pop ecx
sub eax, 0x60
jmp 0x1086fba
call fcn.01088642
mov dword [ebp + 0x50], eax
push edi
lea eax, [ebp - 0xf0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or edi, 0xffffffff
cmp eax, edi
mov dword [ebp + 0x5c], eax
jne 0x108708a
push 0x100bc84
push esi
call fcn.0104cdcf
test eax, eax
pop ecx
pop ecx
je 0x1087074
push 0x104
lea eax, [ebp - 0x1f4]
push esi
push eax
call fcn.0104db97
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x1087074
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x108700d
sub eax, edx
cmp eax, 3
je 0x1087026
mov ecx, esi
call fcn.01086ebc
test eax, eax
je 0x1087074
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x1087074
push edi
push ebx
push ebx
push ebx
push 1
push 1
push 0x7bc
mov dword [ebp - 0xf0], 0x10
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], ebx
mov byte [ebp - 0xc4], bl
call fcn.01088534
mov esi, dword [ebp + 0x7c]
add esp, 0x1c
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
jmp 0x10871c2
call fcn.0104bfa2
push 2
pop esi
mov dword [eax], esi
call fcn.0104bfb5
mov dword [eax], esi
jmp 0x1087214
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10871fe
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10871fe
movzx eax, word [ebp + 0x6c]
push edi
push eax
movzx eax, word [ebp + 0x6a]
push eax
movzx eax, word [ebp + 0x68]
push eax
movzx eax, word [ebp + 0x66]
push eax
movzx eax, word [ebp + 0x62]
push eax
movzx eax, word [ebp + 0x60]
push eax
call fcn.01088534
mov esi, dword [ebp + 0x7c]
add esp, 0x1c
cmp dword [ebp - 0xe4], ebx
mov dword [esi + 0x1c], eax
jne 0x10870f6
cmp dword [ebp - 0xe0], ebx
je 0x108714c
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10871fe
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10871fe
movzx eax, word [ebp + 0x6c]
push edi
push eax
movzx eax, word [ebp + 0x6a]
push eax
movzx eax, word [ebp + 0x68]
push eax
movzx eax, word [ebp + 0x66]
push eax
movzx eax, word [ebp + 0x62]
push eax
movzx eax, word [ebp + 0x60]
push eax
call fcn.01088534
add esp, 0x1c
cmp dword [ebp - 0xec], ebx
mov dword [esi + 0x18], eax
jne 0x1087164
cmp dword [ebp - 0xe8], ebx
jne 0x1087164
mov eax, dword [esi + 0x1c]
jmp 0x10871b6
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10871fe
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10871fe
movzx eax, word [ebp + 0x6c]
push edi
push eax
movzx eax, word [ebp + 0x6a]
push eax
movzx eax, word [ebp + 0x68]
push eax
movzx eax, word [ebp + 0x66]
push eax
movzx eax, word [ebp + 0x62]
push eax
movzx eax, word [ebp + 0x60]
push eax
call fcn.01088534
add esp, 0x1c
push dword [ebp + 0x5c]
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0x78]
push dword [ebp - 0xf0]
call fcn.01086dff
mov word [esi + 6], ax
mov eax, dword [ebp - 0xd0]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x50]
dec eax
pop ecx
mov dword [esi], eax
mov dword [esi + 0x10], eax
pop ecx
mov word [esi + 8], 1
mov word [esi + 4], bx
mov word [esi + 0xc], bx
mov word [esi + 0xa], bx
xor eax, eax
jmp 0x1087216
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0104bfc8
pop ecx
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop ebx
pop esi
add ebp, 0x70
leave
ret