Function at 0x437d00
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0a71
mov eax, dword fs:[0]
push eax
sub esp, 0xd70
mov eax, dword [0x513720]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0xd78], eax
mov dword [ebp - 0xd28], 0
test bl, bl
jne 0x4381b7
push 0x200
lea eax, [ebp - 0x514]
push 0
push eax
call fcn.004be330
push dword [ebp - 0xd28]
lea eax, [ebp - 0x514]
push 0x501754
push 0xffffffffffffffff
push 0xff
push eax
call fcn.004bb328
add esp, 0x20
lea eax, [ebp - 0x514]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd2c], eax
cmp eax, 0xffffffff
je 0x4381a1
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0xd18], 0
lea eax, [ebp - 0xd14]
movq qword [ebp - 0xd24], xmm0
push 0
push eax
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd24], 0
mov dword [ebp - 0xd20], 0
call fcn.004be330
add esp, 0xc
lea eax, [ebp - 0xd18]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd14]
push eax
push 0xc
lea eax, [ebp - 0xd24]
push eax
push 0x2d1400
push dword [ebp - 0xd2c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43818f
push 0xff
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], bl
push 0
push eax
call fcn.004be330
push 0xff
lea eax, [ebp - 0x313]
mov byte [ebp - 0x314], bl
push 0
push eax
call fcn.004be330
push 0xff
lea eax, [ebp - 0x213]
mov byte [ebp - 0x214], bl
push 0
push eax
call fcn.004be330
mov edx, dword [ebp - 0xd04]
lea eax, [ebp - 0x314]
push eax
push 0
lea ecx, [ebp - 0xd14]
call fcn.00437520
mov edx, dword [ebp - 0xd00]
lea eax, [ebp - 0x214]
push eax
push 0
lea ecx, [ebp - 0xd14]
call fcn.00437520
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x114]
push eax
push 1
lea ecx, [ebp - 0xd14]
call fcn.00437520
movsx eax, byte [ebp - 0x114]
push eax
call fcn.004bd1b5
add esp, 0x40
test eax, eax
jne 0x437ef0
movsx eax, byte [ebp - 0x101]
push eax
call fcn.004bd1b5
add esp, 4
test eax, eax
je 0x438195
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0xd4c], 0
mov dword [ebp - 0xd48], 0
mov dword [ebp - 0xd48], 0xf
mov dword [ebp - 0xd4c], 0
mov byte [ebp - 0xd5c], 0
jne 0x437f2c
xor ecx, ecx
jmp 0x437f3e
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437f35
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd5c]
call fcn.00401a20
lea eax, [ebp - 0xd5c]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x437f91
cmp dword [esi + 0x14], 0x10
jb 0x437f72
push dword [esi]
call fcn.004b9238
add esp, 4
lea eax, [ebp - 0xd5c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.004098f0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd48], 0x10
jb 0x437faf
push dword [ebp - 0xd5c]
call fcn.004b9238
add esp, 4
cmp byte [ebp - 0x314], 0
mov dword [ebp - 0xd34], 0
mov dword [ebp - 0xd30], 0
mov dword [ebp - 0xd48], 0xf
mov dword [ebp - 0xd4c], 0
mov byte [ebp - 0xd5c], 0
mov dword [ebp - 0xd30], 0xf
mov dword [ebp - 0xd34], 0
mov byte [ebp - 0xd44], 0
jne 0x438006
xor ecx, ecx
jmp 0x438019
lea ecx, [ebp - 0x314]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x438010
sub ecx, edx
push ecx
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0xd44]
call fcn.00401a20
lea eax, [ebp - 0xd44]
mov dword [ebp - 4], 1
cmp edi, eax
je 0x43806c
cmp dword [edi + 0x14], 0x10
jb 0x43804d
push dword [edi]
call fcn.004b9238
add esp, 4
lea eax, [ebp - 0xd44]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov ecx, edi
push eax
mov byte [edi], 0
call fcn.004098f0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd30], 0x10
jb 0x43808a
push dword [ebp - 0xd44]
call fcn.004b9238
add esp, 4
cmp byte [ebp - 0x214], 0
mov dword [ebp - 0xd64], 0
mov dword [ebp - 0xd60], 0
mov dword [ebp - 0xd30], 0xf
mov dword [ebp - 0xd34], 0
mov byte [ebp - 0xd44], 0
mov dword [ebp - 0xd60], 0xf
mov dword [ebp - 0xd64], 0
mov byte [ebp - 0xd74], 0
jne 0x4380e1
xor eax, eax
jmp 0x4380f9
lea eax, [ebp - 0x214]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4380f0
sub eax, edx
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xd74]
call fcn.00401a20
mov ebx, dword [ebp - 0xd78]
lea eax, [ebp - 0xd74]
mov dword [ebp - 4], 2
cmp ebx, eax
je 0x438152
cmp dword [ebx + 0x14], 0x10
jb 0x438133
push dword [ebx]
call fcn.004b9238
add esp, 4
lea eax, [ebp - 0xd74]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.004098f0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd60], 0x10
jb 0x438170
push dword [ebp - 0xd74]
call fcn.004b9238
add esp, 4
mov dword [ebp - 0xd60], 0xf
mov bl, 1
mov dword [ebp - 0xd64], 0
mov byte [ebp - 0xd74], 0
jmp 0x438195
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xd28]
inc eax
mov dword [ebp - 0xd28], eax
cmp eax, 0x10
jl 0x437d47
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b923d
mov esp, ebp
pop ebp
ret