Function at 0x107fe27
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x109d138
call fcn.0104c920
sub esp, 0x80
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 5
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1080082
push edi
push 0xc
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0104c8c0
push 0x28
lea eax, [ebp - 0x8c]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0104c8c0
add esp, 0x18
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x10], ebx
push ebx
push eax
lea eax, [ebp - 0x8c]
push 0x28
push eax
lea eax, [ebp - 0x24]
push 0xc
push eax
push 0x2d1400
push dword [ebp + 8]
call edi
cmp eax, ebx
je 0x1080078
push esi
push dword [ebp - 0x88]
call fcn.0104c270
push dword [ebp - 0x88]
mov esi, eax
push ebx
push esi
call fcn.0104c8c0
add esp, 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 0x88]
lea eax, [ebp - 0x24]
push esi
push 0xc
push eax
push 0x2d1400
push dword [ebp + 8]
call edi
cmp dword [esi + 0x10], ebx
je 0x1080070
cmp dword [esi + 0x14], ebx
je 0x1080070
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.0101a650
mov edi, dword [esi + 0x10]
mov dword [ebp - 4], ebx
add edi, esi
push edi
call fcn.0104d0c0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.01072f9b
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x107ff9e
lea edi, [eax + esi]
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x44], al
call fcn.0101a650
push edi
call fcn.0104d0c0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x44]
call fcn.0101af80
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0107d50c
add esp, 0xc
push dword [0x100a5d0]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.0101a390
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0101a650
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.0101a650
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jbe 0x1080062
push dword [0x100a5d0]
add eax, 0xfffffff0
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.01079a89
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
sub eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.01079a89
mov edi, dword [esi + 0x14]
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
add edi, esi
mov byte [ebp - 0x44], al
call fcn.0101a650
push edi
call fcn.0104d0c0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x44]
call fcn.0101af80
mov edx, dword [ebp - 0x40]
mov byte [ebp - 4], 5
cmp edx, ebx
mov eax, 0x1001f54
jne 0x1080013
mov edx, eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
cmp ecx, ebx
je 0x1080020
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x50], ebx
je 0x1080028
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x18]
push edx
push dword [ebp - 0x14]
mov ecx, dword [ecx]
push eax
mov edi, dword [ecx]
call dword [edi]
push 1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 4
call fcn.0101a650
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.0101a650
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.0101a650
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x34]
call fcn.0101a650
push esi
call fcn.0104ab95
pop ecx
pop esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop ebx
mov dword fs:[0], ecx
leave
ret 4