Function at 0x10003669
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x1007f60e
call fcn.1005ab48
sub esp, 0x40
push ebx
xor ebx, ebx
mov dword [ebp - 0x38], 0xf
push esi
mov dword [ebp - 0x4c], ebx
push edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push str..PhysicalDrive0
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100036f4
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
cmp eax, 0x10
jb 0x10003884
mov ecx, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x1000387b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100041ba
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x1000387b
mov dword [ebp - 0x20], 0x10001a3d
mov dword [ebp - 0x1c], edi
push ebx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], ebx
push eax
push 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], ebx
push eax
push 0x2d1400
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10003742
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x10003842
mov esi, dword [ebp - 0x24]
push esi
call fcn.1005a8ec
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10003760
push esi
push 0
push ebx
call fcn.1005d0d0
add esp, 0xc
jmp 0x10003762
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
push esi
push ebx
push 0xc
lea eax, [ebp - 0x34]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100037a8
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
test ebx, ebx
je 0x100037a3
push ebx
call fcn.1005a938
pop ecx
jmp 0x10003842
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100037c9
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
call fcn.1005a938
pop ecx
jmp 0x10003842
lea edx, [ebx + eax]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100037d1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.10004bfd
cmp dword [ebp - 0x38], 0x10
lea esi, [ebp - 0x4c]
lea eax, [ebp - 0x4c]
cmovae esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
add esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x38], 0x10
push fcn.10060b60
cmovae eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x38], 0x10
push eax
cmovae ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
push ecx
push eax
call fcn.100023de
add esp, 0x10
lea ecx, [ebp - 0x4c]
push esi
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.10005c54
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.10002887
push ebx
call fcn.1005a938
pop ecx
test edi, edi
je 0x1000384d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x10003884
mov ecx, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x1000387b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100041ba
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.1005a92a
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret