Function at 0x1040a80
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 + 0x26c]
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 0x1040d1e
cmp ebx, 0xffffffff
je 0x1040d1e
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 0x1040cf7
mov ecx, dword [edi + 0x268]
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 0x1040ce4
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.01040800
lea ecx, [ebp - 0xe0]
push ecx
call fcn.0102c160
mov eax, dword [esi + 0x10]
push 0x3f
lea edx, [ebp - 0x9c]
push edx
push 0
push eax
push esi
call fcn.01040800
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0102c160
cmp dword [ebp + 0x24], 0
je 0x1040be5
mov edi, dword [ebp + 0x28]
mov dword [edi], 1
cmp dword [esi + 0x1c], 8
je 0x1040bf7
mov edx, dword [esi + 0x18]
push 0x100ccc8
add edx, esi
push edx
call fcn.0102c870
test eax, eax
jne 0x1040bf7
mov ecx, dword [ebp + 8]
mov eax, 0x23f0
cmp dword [ecx + 0x8af4], eax
jb 0x1040bcd
cmp dword [ebp + 0x2c], eax
jae 0x1040bcd
xor eax, eax
jmp 0x1040bd2
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 0x1040bf1
mov edx, dword [esi + 0x18]
push 0x3f
lea ecx, [ebp - 0x58]
push ecx
push 1
push edx
push esi
call fcn.01040800
lea eax, [ebp - 0x58]
push eax
call fcn.0102c160
push 0x100ccc0
lea ecx, [ebp - 0xe0]
push ecx
call fcn.0102c190
test eax, eax
jne 0x1040d0c
push 0x100ccb0
lea edx, [ebp - 0x58]
push edx
call fcn.0102c190
test eax, eax
jne 0x1040d0c
push 0x100ccc0
lea eax, [ebp - 0x9c]
push eax
call fcn.0102c190
test eax, eax
jne 0x1040d0c
push 0x100cca8
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0102c190
test eax, eax
jne 0x1040d0c
push 0x100cca0
lea edx, [ebp - 0x9c]
push edx
call fcn.0102c190
test eax, eax
jne 0x1040d0c
push 0x100cc94
lea eax, [ebp - 0x9c]
push eax
call fcn.0102c190
test eax, eax
jne 0x1040d0c
mov edi, dword [ebp + 0x10]
cmp byte [edi], al
jne 0x1040ce4
movzx ecx, byte [ebp - 0x58]
mov ebx, dword [sym.imp.msvcrt.dll_isalnum]
push ecx
call ebx
add esp, 4
test eax, eax
jne 0x1040cb8
movzx edx, byte [ebp - 0x45]
push edx
call ebx
add esp, 4
test eax, eax
je 0x1040ce1
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x58]
push ecx
push edi
call fcn.0102ada0
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x9c]
push eax
push ecx
call fcn.0102ada0
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 + 0x1c8]
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 0x1040ce4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28