Function at 0x402f10
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x48223b
mov eax, dword fs:[0]
push eax
mov eax, 0x2870
call fcn.004620f0
mov eax, dword [0x4d8eb0]
xor eax, esp
mov dword [esp + 0x286c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d8eb0]
xor eax, esp
push eax
lea eax, [esp + 0x2884]
mov dword fs:[0], eax
mov eax, dword [0x4c7600]
mov esi, dword [esp + 0x2898]
push eax
lea ecx, [esp + 0x20]
call fcn.00457ca0
mov ecx, dword [esp + 0x2894]
push ecx
xor ebx, ebx
mov ecx, eax
mov dword [esp + 0x2890], ebx
call fcn.00457c70
push eax
lea edx, [esp + 0x78]
push edx
call fcn.00461dfb
add esp, 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x288c], 0xffffffff
call fcn.0040c230
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4031b3
mov eax, 0xf
push 0x2710
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], eax
xor eax, eax
lea ecx, [esp + 0x174]
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.004619c0
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push ebx
lea edx, [esp + 0x18]
push edx
push 0x2710
lea eax, [esp + 0x17c]
push eax
push 0xc
lea ecx, [esp + 0x40]
push ecx
push 0x2d1400
push edi
call ebp
test eax, eax
je 0x4030e4
mov eax, dword [esp + 0x17c]
cmp eax, ebx
je 0x403064
cmp eax, dword [esp + 0x14]
ja 0x403064
lea edx, [esp + eax + 0x170]
push 0x63
push edx
lea eax, [esi + 4]
push eax
call fcn.00461f50
add esp, 0xc
mov eax, dword [esp + 0x180]
cmp eax, ebx
je 0x40308b
cmp eax, dword [esp + 0x14]
ja 0x40308b
push 0x63
lea ecx, [esp + eax + 0x174]
push ecx
lea edx, [esi + 0x68]
push edx
call fcn.00461f50
add esp, 0xc
mov eax, dword [esp + 0x184]
cmp eax, ebx
je 0x4030b5
cmp eax, dword [esp + 0x14]
ja 0x4030b5
push 0x63
lea eax, [esp + eax + 0x174]
push eax
lea ecx, [esi + 0x130]
push ecx
call fcn.00461f50
add esp, 0xc
mov eax, dword [esp + 0x188]
cmp eax, ebx
je 0x4030e4
cmp eax, 0xffffffff
je 0x4030e4
cmp eax, dword [esp + 0x14]
ja 0x4030e4
lea edx, [esp + eax + 0x170]
push 0x63
push edx
lea eax, [esi + 0xcc]
push eax
call fcn.00461f50
add esp, 0xc
cmp dword [esp + 0x68], ebx
jne 0x40313e
push 0x2710
lea ecx, [esp + 0x174]
push ebx
push ecx
call fcn.004619c0
add esp, 0xc
push ebx
lea edx, [esp + 0x18]
push edx
push 0x2710
lea eax, [esp + 0x17c]
push eax
push ebx
push ebx
push 0x2d0c10
push edi
call ebp
test eax, eax
je 0x4031ac
push 0x63
lea ecx, [esp + 0x184]
push ecx
add esi, 0xcc
push esi
call fcn.00461f50
add esp, 0xc
mov ebp, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [esp + 0x50], esi
jb 0x40315f
mov edx, dword [esp + 0x3c]
push edx
call fcn.00457e3b
add esp, 4
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x403182
mov eax, dword [esp + 0x58]
push eax
call fcn.00457e3b
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x2884]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x286c]
xor ecx, esp
call fcn.00460f23
add esp, 0x287c
ret
mov ebp, 1
jmp 0x403140
mov eax, 0xb
jmp 0x403184