Function at 0x1000f259
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x10083adc]
xor eax, ebp
mov dword [ebp + 0x3a8], eax
mov eax, dword [0x1015568c]
mov ecx, dword [ebp + 0x3b8]
push ebx
mov bl, byte [ebp + 0x3b4]
push esi
push edi
mov dword [ebp - 0x64], ecx
cmp eax, 5
je 0x1000f297
cmp eax, 0x91
jne 0x1000f2ab
push ecx
movsx eax, bl
push eax
push str.IsSpecUSB_:___c___s_
push 0
call fcn.1004122a
add esp, 0x10
mov esi, 0x100638e4
lea edi, [ebp - 0x68]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str..x:
lea edi, [ebp + 0x3a0]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x70], 0x5c3a78
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x68], bl
mov byte [ebp + 0x3a4], bl
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp + 0x3a0]
push eax
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
jne 0x1000f318
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f30d
cmp eax, 0x91
jne 0x1000f55c
push str.ret_IsSpecUSB_false1
push ebx
jmp 0x1000f555
push ebx
lea eax, [ebp - 0x74]
push eax
push 0xc
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x2d1080
push esi
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1000f33b
mov edi, dword [ebp - 0x7c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x1000f363
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f35c
cmp eax, 0x91
jne 0x1000f55c
push str.ret_IsSpecUSB_false2
jmp 0x1000f312
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x1000f3a6
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f39c
cmp eax, 0x91
jne 0x1000f55c
push str.ret_IsSpecUSB_false3
jmp 0x1000f553
lea eax, [ebp - 0x60]
push eax
push ebx
push edi
call fcn.1000f0a4
xor edi, edi
add esp, 0xc
cmp eax, edi
jne 0x1000f3da
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f3cf
cmp eax, 0x91
jne 0x1000f55c
push str.ret_IsSpecUSB_false4
push edi
jmp 0x1000f555
push edi
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], edi
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
push edi
push esi
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
mov eax, dword [0x1015568c]
mov ebx, 0x91
cmp eax, 5
je 0x1000f40e
cmp eax, ebx
jne 0x1000f423
lea eax, [ebp + 0x1a0]
push eax
push str.buf__s_
push edi
call fcn.1004122a
add esp, 0xc
lea eax, [ebp + 0x1a0]
push 0x5c
push eax
call fcn.10044a60
pop ecx
pop ecx
cmp eax, edi
jne 0x1000f450
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f449
cmp eax, ebx
jne 0x1000f55c
push str.ret_IsSpecUSB_false5
jmp 0x1000f3d4
lea edi, [eax + 1]
push 0x5c
push edi
call fcn.10044a60
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1000f47f
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f475
cmp eax, ebx
jne 0x1000f55c
push str.ret_IsSpecUSB_false6
jmp 0x1000f553
mov byte [esi], 0
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f490
cmp eax, ebx
jne 0x1000f4a3
push edi
push dword [ebp - 0x64]
push str.sHWID__s_pFound11__s_
push 0
call fcn.1004122a
add esp, 0x10
push edi
push dword [ebp - 0x64]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
call edi
test eax, eax
je 0x1000f4d6
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f4c1
cmp eax, ebx
jne 0x1000f4cf
push str.ret_IsSpecUSB_true1
push 0
call fcn.1004122a
pop ecx
pop ecx
mov al, 1
jmp 0x1000f55e
inc esi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000f4dc
sub eax, edx
cmp eax, 0xa
jbe 0x1000f4fc
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000f4ef
sub eax, edx
lea esi, [esi + eax - 0xa]
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f50a
cmp eax, ebx
jne 0x1000f51d
push esi
push dword [ebp - 0x64]
push str.sHWID__s_pFound2__s_
push 0
call fcn.1004122a
add esp, 0x10
test esi, esi
je 0x1000f540
push esi
push dword [ebp - 0x64]
call edi
test eax, eax
je 0x1000f540
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f539
cmp eax, ebx
jne 0x1000f4cf
push str.ret_IsSpecUSB_true2
jmp 0x1000f4c6
mov eax, dword [0x1015568c]
cmp eax, 5
je 0x1000f54e
cmp eax, ebx
jne 0x1000f55c
push str.ret_IsSpecUSB_false7
push 0
call fcn.1004122a
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp + 0x3a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044b6f
add ebp, 0x3ac
leave
ret