Function at 0x41d3f4
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4af0
call fcn.0042ead0
push ebx
push esi
push edi
lea eax, [ebp - 0x8dc]
mov esi, ecx
call fcn.0040648e
lea eax, [ebp - 0x294]
call fcn.0040648e
lea eax, [ebp - 0x6c4]
call fcn.0040648e
lea eax, [ebp - 0x4ac]
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 - 0xaeb]
push ebx
push eax
mov byte [ebp - 0xaec], bl
call fcn.004243a0
add esp, 0xc
push 0x3fff
lea eax, [ebp - 0x4aeb]
push ebx
push eax
mov byte [ebp - 0x4aec], 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 - 8], ebx
cmp eax, ebx
je 0x41d498
xor ecx, ecx
mov word [eax], cx
cmp esi, ebx
jne 0x41d4a3
xor al, al
jmp 0x41d8fe
movzx eax, word [esi]
push eax
push str.._c:
lea eax, [ebp - 0x8dc]
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 - 0x8d8]
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41d502
push ebx
lea eax, [ebp - 8]
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 0x41d4fc
call dword [sym.imp.l_mt5clwtst__CloseHandle]
jmp 0x41d49c
call dword [sym.imp.l_mt5clwtst__CloseHandle]
push dword [ebp - 0x74]
lea eax, [ebp - 0x8dc]
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 - 0x8d8]
call esi
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x41d604
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 - 0xc]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
je 0x41d5fb
cmp byte [ebp - 0x55], bl
jbe 0x41d5fb
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
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 - 8]
push eax
push 0x210
lea eax, [ebp - 0xaec]
push eax
push 0x21
lea eax, [ebp - 0x34]
push eax
push 0x7c088
push dword [ebp - 0xc]
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 0x41d5fb
mov eax, dword [ebp - 8]
cmp eax, 0x100
jb 0x41d5fb
lea eax, [ebp + eax - 0xaec]
push eax
lea eax, [ebp - 0xac8]
push eax
lea eax, [ebp - 0x294]
call fcn.0041d1e4
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x8d8]
call esi
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x41d69b
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 - 0x4aec]
push ebx
push eax
call fcn.004243a0
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x4aec]
push eax
push 0xc
lea eax, [ebp - 0x40]
push eax
push 0x2d1400
push dword [ebp - 0xc]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.l_mt5clwtst__DeviceIoControl]
test eax, eax
je 0x41d690
mov eax, dword [ebp - 8]
cmp eax, 0x28
jb 0x41d690
lea eax, [ebp + eax - 0x4aec]
push eax
mov eax, dword [ebp - 0x4ad4]
lea eax, [ebp + eax - 0x4aec]
push eax
lea eax, [ebp - 0x6c4]
call fcn.0041d1e4
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
jmp 0x41d6a0
mov edi, 0x4000
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x8d8]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x41d712
push edi
lea eax, [ebp - 0x4aec]
push ebx
push eax
call fcn.004243a0
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x4aec]
push eax
push ebx
push ebx
push 0x2d0c10
push esi
call dword [sym.imp.l_mt5clwtst__DeviceIoControl]
test eax, eax
je 0x41d70b
mov eax, dword [ebp - 8]
cmp eax, 0x14
jb 0x41d70b
lea eax, [ebp + eax - 0x4aec]
push eax
lea eax, [ebp - 0x4adc]
push eax
lea eax, [ebp - 0x4ac]
call fcn.0041d1e4
pop ecx
pop ecx
push esi
call dword [sym.imp.l_mt5clwtst__CloseHandle]
lea eax, [ebp - 0x294]
call fcn.0040afbe
test al, al
je 0x41d743
lea eax, [ebp - 0x6c4]
call fcn.0040afbe
test al, al
je 0x41d743
lea eax, [ebp - 0x4ac]
call fcn.0040afbe
test al, al
jne 0x41d49c
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.0040afbe
test al, al
je 0x41d781
lea eax, [ebp - 0x294]
call fcn.0040afbe
test al, al
jne 0x41d781
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x294]
call fcn.004163aa
test eax, eax
jne 0x41d781
lea eax, [ebp - 0x294]
call fcn.0040bd6e
mov eax, edi
call fcn.0040afbe
test al, al
je 0x41d7bc
lea eax, [ebp - 0x6c4]
call fcn.0040afbe
test al, al
jne 0x41d7bc
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x6c4]
call fcn.004163aa
test eax, eax
jne 0x41d7bc
lea eax, [ebp - 0x6c4]
call fcn.0040bd6e
mov eax, edi
call fcn.0040afbe
test al, al
je 0x41d7f7
lea eax, [ebp - 0x4ac]
call fcn.0040afbe
test al, al
jne 0x41d7f7
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x4ac]
call fcn.004163aa
test eax, eax
jne 0x41d7f7
lea eax, [ebp - 0x4ac]
call fcn.0040bd6e
mov eax, edi
call fcn.0040afbe
test al, al
je 0x41d827
cmp dword [ebp - 0x28c], 3
jbe 0x41d827
mov ebx, dword [ebp - 0x290]
call fcn.0041d3b1
test al, al
je 0x41d825
lea eax, [ebp - 0x294]
call fcn.0040bd6e
xor ebx, ebx
mov eax, edi
call fcn.0040afbe
test al, al
je 0x41d857
cmp dword [ebp - 0x6bc], 3
jbe 0x41d857
mov ebx, dword [ebp - 0x6c0]
call fcn.0041d3b1
test al, al
je 0x41d855
lea eax, [ebp - 0x6c4]
call fcn.0040bd6e
xor ebx, ebx
mov eax, edi
call fcn.0040afbe
test al, al
je 0x41d887
cmp dword [ebp - 0x4a4], 3
jbe 0x41d887
mov ebx, dword [ebp - 0x4a8]
call fcn.0041d3b1
test al, al
je 0x41d885
lea eax, [ebp - 0x4ac]
call fcn.0040bd6e
xor ebx, ebx
mov eax, edi
call fcn.0040afbe
test al, al
je 0x41d8ac
lea eax, [ebp - 0x294]
call fcn.0040afbe
test al, al
jne 0x41d8ac
lea eax, [ebp - 0x294]
call fcn.0040bd6e
mov eax, edi
call fcn.0040afbe
test al, al
je 0x41d8d1
lea eax, [ebp - 0x6c4]
call fcn.0040afbe
test al, al
jne 0x41d8d1
lea eax, [ebp - 0x6c4]
call fcn.0040bd6e
mov eax, edi
call fcn.0040afbe
test al, al
je 0x41d8f6
lea eax, [ebp - 0x4ac]
call fcn.0040afbe
test al, al
jne 0x41d8f6
lea eax, [ebp - 0x4ac]
call fcn.0040bd6e
mov eax, edi
cmp dword [eax + 8], ebx
seta al
pop edi
pop esi
pop ebx
leave
ret