Function at 0x41cdab
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x44a8
call fcn.0042ead0
push ebx
push esi
push edi
lea eax, [ebp - 0x294]
mov esi, ecx
call fcn.0040648e
push 6
pop ecx
xor ebx, ebx
xor eax, eax
push 7
lea edi, [ebp - 0x74]
mov dword [ebp - 0x7c], ebx
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
push 0x20f
stosb byte es:[edi], al
lea eax, [ebp - 0x4a3]
push ebx
push eax
mov byte [ebp - 0x4a4], bl
call fcn.004243a0
add esp, 0xc
push 0x3fff
lea eax, [ebp - 0x44a3]
push ebx
push eax
mov byte [ebp - 0x44a4], bl
call fcn.004243a0
mov eax, dword [ebp + 8]
mov dword [eax + 8], ebx
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [ebp - 0xc], ebx
cmp eax, ebx
je 0x41ce2e
xor ecx, ecx
mov word [eax], cx
cmp esi, ebx
jne 0x41ce39
xor al, al
jmp 0x41d0bc
movzx eax, word [esi]
push eax
push str.._c:
lea eax, [ebp - 0x294]
call fcn.004017f8
mov esi, dword [sym.imp.l_mt5clwtst__CreateFileW]
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x290]
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41ce98
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push 0x560000
push edi
call dword [sym.imp.l_mt5clwtst__DeviceIoControl]
push edi
test eax, eax
jne 0x41ce92
call dword [sym.imp.l_mt5clwtst__CloseHandle]
jmp 0x41ce32
call dword [sym.imp.l_mt5clwtst__CloseHandle]
push dword [ebp - 0x74]
lea eax, [ebp - 0x294]
push str..PHYSICALDRIVE_d
call fcn.004017f8
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push dword [ebp - 0x290]
call esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x41cf97
xor eax, eax
mov byte [ebp - 0x58], bl
lea edi, [ebp - 0x57]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
mov edi, dword [sym.imp.l_mt5clwtst__DeviceIoControl]
lea eax, [ebp - 0x10]
push eax
push 0x18
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x74080
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x41cf8e
cmp byte [ebp - 0x55], bl
jbe 0x41cf8e
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.l_mt5clwtst__SetFilePointer]
mov al, byte [ebp - 0x74]
mov byte [ebp - 0x28], al
and al, 1
or al, 0xfa
shl al, 4
push ebx
mov byte [ebp - 0x2b], al
lea eax, [ebp - 0xc]
push eax
push 0x210
lea eax, [ebp - 0x4a4]
push eax
push 0x21
lea eax, [ebp - 0x34]
push eax
push 0x7c088
push dword [ebp - 8]
mov dword [ebp - 0x34], 0x200
mov byte [ebp - 0x2a], 0xec
mov byte [ebp - 0x2f], 1
mov byte [ebp - 0x2e], 1
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2d], bl
mov byte [ebp - 0x30], bl
call edi
test eax, eax
je 0x41cf8e
mov eax, dword [ebp - 0xc]
cmp eax, 0x100
jb 0x41cf8e
lea eax, [ebp + eax - 0x4a4]
push eax
lea eax, [ebp - 0x480]
push eax
mov eax, dword [ebp + 8]
call fcn.0041d1e4
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
mov eax, dword [ebp + 8]
cmp dword [eax + 8], ebx
jne 0x41d037
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x290]
call esi
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x41d037
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x4000
push edi
lea eax, [ebp - 0x44a4]
push ebx
push eax
call fcn.004243a0
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x44a4]
push eax
push 0xc
lea eax, [ebp - 0x40]
push eax
push 0x2d1400
push dword [ebp - 8]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.l_mt5clwtst__DeviceIoControl]
test eax, eax
je 0x41d02c
mov eax, dword [ebp - 0xc]
cmp eax, 0x28
jb 0x41d02c
lea eax, [ebp + eax - 0x44a4]
push eax
mov eax, dword [ebp - 0x448c]
lea eax, [ebp + eax - 0x44a4]
push eax
mov eax, dword [ebp + 8]
call fcn.0041d1e4
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
jmp 0x41d03c
mov edi, 0x4000
mov eax, dword [ebp + 8]
cmp dword [eax + 8], ebx
jne 0x41d0b3
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x290]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x41d0b3
push edi
lea eax, [ebp - 0x44a4]
push ebx
push eax
call fcn.004243a0
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x44a4]
push eax
push ebx
push ebx
push 0x2d0c10
push esi
call dword [sym.imp.l_mt5clwtst__DeviceIoControl]
test eax, eax
je 0x41d0ac
mov eax, dword [ebp - 0xc]
cmp eax, 0x14
jb 0x41d0ac
lea eax, [ebp + eax - 0x44a4]
push eax
lea eax, [ebp - 0x4494]
push eax
mov eax, dword [ebp + 8]
call fcn.0041d1e4
pop ecx
pop ecx
push esi
call dword [sym.imp.l_mt5clwtst__CloseHandle]
mov eax, dword [ebp + 8]
cmp dword [eax + 8], ebx
seta al
pop edi
pop esi
pop ebx
leave
ret