Function at 0x10039340
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017ffd5
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x101e9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.10005e70
push 0x101dc278
lea ecx, [ebp - 0x14]
call fcn.10019f60
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.1003a770
push 0x101dc280
lea ecx, [ebp - 0x14]
call fcn.1003a790
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [ebp - 0x14]
call fcn.100196a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x10039401
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
push 0x101d7897
mov ecx, dword [ebp + 8]
call fcn.10003f60
mov ecx, dword [ebp - 0x44]
or ecx, 1
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10019f40
mov eax, dword [ebp + 8]
jmp 0x1003965b
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
push 0
lea ecx, [ebp - 0x38]
push ecx
push 8
lea edx, [ebp - 0x40]
push edx
push 0xc
lea eax, [ebp - 0x34]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x10039474
mov ecx, dword [ebp + 8]
call fcn.10003fe0
mov edx, dword [ebp - 0x44]
or edx, 1
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10019f40
mov eax, dword [ebp + 8]
jmp 0x1003965b
push 0xc
lea ecx, [ebp - 0x20]
call fcn.10005e70
lea ecx, [ebp - 0x46]
call fcn.10004460
push eax
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.1003a690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.10030830
mov dword [ebp - 0x58], eax
push 0
lea ecx, [ebp - 0x20]
call fcn.1003a670
mov dword [ebp - 0x5c], eax
push 0
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
push 0xc
lea ecx, [ebp - 0x34]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x1003950f
mov ecx, dword [ebp + 8]
call fcn.10003fe0
mov eax, dword [ebp - 0x44]
or eax, 1
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10030870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10019f40
mov eax, dword [ebp + 8]
jmp 0x1003965b
push 0
lea ecx, [ebp - 0x20]
call fcn.1003a670
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x54], edx
lea ecx, [ebp - 0x20]
call fcn.10030830
cmp dword [ebp - 0x54], eax
jb 0x10039566
mov ecx, dword [ebp + 8]
call fcn.10003fe0
mov eax, dword [ebp - 0x44]
or eax, 1
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10030870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10019f40
mov eax, dword [ebp + 8]
jmp 0x1003965b
push 4
lea ecx, [ebp - 0x24]
call fcn.10005e70
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x20]
call fcn.1001a360
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.1003a620
push 4
lea ecx, [ebp - 0x28]
call fcn.10005e70
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.1002f8c0
mov edx, dword [eax]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x45]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.1003aa10
add esp, 0x10
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x20]
call fcn.1002f8c0
push eax
lea ecx, [ebp - 0x28]
call fcn.1002f9c0
movzx eax, al
test eax, eax
je 0x10039619
mov ecx, dword [ebp + 8]
call fcn.10003fe0
mov ecx, dword [ebp - 0x44]
or ecx, 1
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10030870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10019f40
mov eax, dword [ebp + 8]
jmp 0x1003965b
mov edx, dword [ebp - 0x54]
push edx
lea ecx, [ebp - 0x20]
call fcn.1003a670
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
call fcn.10003f60
mov ecx, dword [ebp - 0x44]
or ecx, 1
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10030870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10019f40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100531cc
mov esp, ebp
pop ebp
ret