Function at 0x4030e0
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4076e4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc4
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xd0]
push 0
push 0
mov dword [ebp - 0xd0], 0xc97711c3
mov dword [ebp - 0xcc], 0x4b225c48
mov dword [ebp - 0xc8], 0xcbccaa8d
mov dword [ebp - 0xc4], 0xe5276545
mov dword [ebp - 0xc0], 0xa18de7c4
mov dword [ebp - 0xbc], 0x59b861a6
mov dword [ebp - 0xb8], 0x7281c8de
mov dword [ebp - 0xb4], 0xcf4a412f
movaps xmm1, xmmword [ebp - 0xd0]
push 3
push 0
mov dword [ebp - 0xa0], 0x95594d9f
mov dword [ebp - 0x9c], 0x385b3418
mov dword [ebp - 0x98], 0xa7adc9e4
mov dword [ebp - 0x94], 0x934e1701
pxor xmm1, xmmword [ebp - 0xa0]
movaps xmmword [ebp - 0xd0], xmm1
movaps xmm1, xmmword [ebp - 0xc0]
push 3
push 0
mov dword [ebp - 0x90], 0xa18dd7a1
mov dword [ebp - 0x8c], 0x59b861a6
mov dword [ebp - 0x88], 0x7281c8de
mov dword [ebp - 0x84], 0xcf4a412f
pxor xmm1, xmmword [ebp - 0x90]
push eax
movaps xmmword [ebp - 0xc0], xmm1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x403259
movups xmm0, xmmword [ebp - 0x44]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x10], xmm0
jmp 0x403839
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea ecx, [ebp - 0x48]
push 0
push ecx
push 8
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
push ecx
push 0xc
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push ecx
push 0x2d1400
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
push eax
movlpd qword [ebp - 0x74], xmm0
mov dword [ebp - 0x48], 0
call edi
mov esi, dword [ebp - 0x70]
push esi
call fcn.00406c1c
add esp, 4
mov dword [ebp - 0xa4], eax
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x48]
push 0
push eax
push esi
mov esi, dword [ebp - 0xa4]
lea eax, [ebp - 0x6c]
push esi
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x7c]
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40335b
lea edx, [eax + esi]
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403300
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405c90
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x44]
call fcn.00405a80
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40335b
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403351
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403829
push edx
push ecx
call fcn.00406c0e
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4033db
lea edx, [eax + esi]
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403380
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405c90
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x44]
call fcn.00405a80
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4033db
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4033d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403829
push edx
push ecx
call fcn.00406c0e
add esp, 8
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40345b
lea edx, [eax + esi]
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403400
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405c90
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x44]
call fcn.00405a80
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40345b
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403451
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403829
push edx
push ecx
call fcn.00406c0e
add esp, 8
xor eax, eax
lea edi, [ebp - 0x24]
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x20]
push 4
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
call fcn.00405c90
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x60]
call fcn.00405a80
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x403506
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4034fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403829
push edx
push ecx
call fcn.00406c0e
add esp, 8
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x88], 0
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
call fcn.00405c90
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x60]
call fcn.00405a80
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x403583
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403579
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403829
push edx
push ecx
call fcn.00406c0e
add esp, 8
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x88], 0
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
call fcn.00405c90
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x60]
call fcn.00405a80
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x403600
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4035f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403829
push edx
push ecx
call fcn.00406c0e
add esp, 8
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x98]
call fcn.00405bd0
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.00405a80
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x40365c
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403652
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403652
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406c0e
add esp, 8
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
mov edi, dword [ebp - 0x34]
cmovae eax, edx
add eax, edi
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x44]
cmovae eax, edx
cmovae ecx, edx
lea esi, [eax + edi]
cmp ecx, esi
je 0x4036b8
mov al, byte [ecx]
sub al, 0x21
cmp al, 0x5d
ja 0x403695
inc ecx
cmp ecx, esi
jne 0x403688
cmp ecx, esi
je 0x4036b8
lea edx, [ecx + 1]
cmp edx, esi
je 0x4036b5
mov ah, byte [edx]
mov al, ah
sub al, 0x21
cmp al, 0x5d
ja 0x4036ad
mov byte [ecx], ah
inc ecx
inc edx
cmp edx, esi
jne 0x4036a0
mov edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 9
lea eax, [ebp - 0x44]
mov esi, dword [ebp - 0x30]
cmp esi, 0x10
cmovae eax, edx
mov edx, ecx
sub edx, eax
cmp edi, edx
jb 0x403859
sub dword [ebp - 0x78], ecx
mov eax, edi
mov ecx, dword [ebp - 0x78]
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp esi, 0x10
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x78]
add ecx, edx
sub edi, eax
add eax, ecx
mov dword [ebp - 0x34], edi
sub edi, edx
inc edi
push edi
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0xa4]
add esp, 0xc
mov byte [ebp - 4], 4
push eax
call fcn.0040678d
add esp, 4
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.00405bd0
lea ecx, [ebp - 0x98]
call fcn.00401e00
add esp, 0x18
lea ecx, [ebp - 0x44]
push eax
call fcn.00405b50
mov edx, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x403787
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40377d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40377d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406c0e
add esp, 8
mov esi, dword [ebp - 0xa8]
mov eax, 0xf
movups xmm0, xmmword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
mov byte [ebp - 0x44], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], eax
cmp edx, 0x10
jb 0x4037f2
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4037e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403829
push edx
push ecx
call fcn.00406c0e
mov eax, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp eax, 0x10
jb 0x403839
mov ecx, dword [ebp - 0x44]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40382f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40382f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406c0e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040677c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00405dd0
int3