Function at 0x10402c0
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x260]
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
push eax
mov dword [ebp - 4], esi
call ecx
mov ebx, eax
mov dword [ebp + 0xc], ebx
test ebx, ebx
je 0x104055e
cmp ebx, 0xffffffff
je 0x104055e
push 0x2712
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1040537
mov ecx, dword [edi + 0x25c]
push eax
lea edx, [ebp - 0x14]
push edx
push 0x2710
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call ecx
test eax, eax
je 0x1040524
push 0x41
lea edx, [ebp - 0x58]
push 0
push edx
call sub.msvcrt.dll_memset
push 0x41
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x41
lea ecx, [ebp - 0xe0]
push 0
push ecx
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0xc]
add esp, 0x24
push 0x3f
lea edx, [ebp - 0xe0]
push edx
push 0
push eax
push esi
call fcn.01040040
lea ecx, [ebp - 0xe0]
push ecx
call fcn.0102ba00
mov eax, dword [esi + 0x10]
push 0x3f
lea edx, [ebp - 0x9c]
push edx
push 0
push eax
push esi
call fcn.01040040
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0102ba00
cmp dword [ebp + 0x24], 0
je 0x1040425
mov edi, dword [ebp + 0x28]
mov dword [edi], 1
cmp dword [esi + 0x1c], 8
je 0x1040437
mov edx, dword [esi + 0x18]
push 0x100cb70
add edx, esi
push edx
call fcn.0102c110
test eax, eax
jne 0x1040437
mov ecx, dword [ebp + 8]
mov eax, 0x23f0
cmp dword [ecx + 0x8aec], eax
jb 0x104040d
cmp dword [ebp + 0x2c], eax
jae 0x104040d
xor eax, eax
jmp 0x1040412
mov eax, 1
push 0x3f
lea edx, [ebp - 0x58]
push edx
push eax
mov dword [edi], 0
mov eax, dword [esi + 0x18]
push eax
jmp 0x1040431
mov edx, dword [esi + 0x18]
push 0x3f
lea ecx, [ebp - 0x58]
push ecx
push 1
push edx
push esi
call fcn.01040040
lea eax, [ebp - 0x58]
push eax
call fcn.0102ba00
push 0x100cb68
lea ecx, [ebp - 0xe0]
push ecx
call fcn.0102ba30
test eax, eax
jne 0x104054c
push 0x100cb58
lea edx, [ebp - 0x58]
push edx
call fcn.0102ba30
test eax, eax
jne 0x104054c
push 0x100cb68
lea eax, [ebp - 0x9c]
push eax
call fcn.0102ba30
test eax, eax
jne 0x104054c
push 0x100cb50
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0102ba30
test eax, eax
jne 0x104054c
push 0x100cb48
lea edx, [ebp - 0x9c]
push edx
call fcn.0102ba30
test eax, eax
jne 0x104054c
push 0x100cb3c
lea eax, [ebp - 0x9c]
push eax
call fcn.0102ba30
test eax, eax
jne 0x104054c
mov edi, dword [ebp + 0x10]
cmp byte [edi], al
jne 0x1040524
movzx ecx, byte [ebp - 0x58]
mov ebx, dword [sym.imp.msvcrt.dll_isalnum]
push ecx
call ebx
add esp, 4
test eax, eax
jne 0x10404f8
movzx edx, byte [ebp - 0x45]
push edx
call ebx
add esp, 4
test eax, eax
je 0x1040521
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x58]
push ecx
push edi
call fcn.0102a6b0
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x9c]
push eax
push ecx
call fcn.0102a6b0
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x1c0]
push ebx
call eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov edx, dword [ebp + 0x20]
mov dword [edx], 1
mov dword [ebp - 4], 1
jmp 0x1040524
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28