Function at 0x4188d0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2750
call fcn.00452850
push ebx
push ebp
mov ebp, dword [esp + 0x275c]
push esi
push edi
lea eax, [esp + 0x50]
mov edx, dword [ebp]
push 0x40
lea ecx, [esp + 0x14]
push eax
xor ebx, ebx
push ecx
push edx
mov dword [esp + 0x34], ebx
mov dword [ebp + 0x198], ebx
mov byte [esp + 0x20], 0x12
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], 0x40
mov byte [esp + 0x25], bl
call fcn.00417940
add esp, 0x10
cmp eax, 1
jne 0x418a45
lea eax, [esp + 0x58]
lea esi, [ebp + 0x14]
push 0x18
push eax
push esi
call fcn.00453180
mov cl, byte [ebp + 0x2b]
lea eax, [ebp + 0x2b]
add esp, 0xc
cmp cl, 0x20
jne 0x418959
cmp eax, esi
jb 0x418959
mov byte [eax], bl
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x20
je 0x41894a
lea ecx, [esp + 0x70]
push 4
lea edx, [ebp + 0x34]
push ecx
push edx
call fcn.00453180
mov eax, dword [esp + 0x5d]
lea ecx, [esp + 0x5c]
and eax, 0xff
push 8
shr eax, 7
mov dword [ebp + 0x198], eax
mov eax, dword [ebp]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
mov byte [esp + 0x34], 0x25
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
call fcn.00417940
add esp, 0x1c
cmp eax, 1
jne 0x418bec
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x51]
mov edx, dword [esp + 0x52]
and eax, 0xff
shl eax, 8
and ecx, 0xff
and edx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x53]
shl eax, 8
add eax, edx
and ecx, 0xff
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x56]
cdq
mov dword [ebp + 0x58], eax
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x5c], edx
mov edx, dword [esp + 0x55]
and eax, 0xff
and edx, 0xff
shl eax, 8
add eax, edx
mov edx, dword [esp + 0x57]
shl eax, 8
and ecx, 0xff
and edx, 0xff
add eax, ecx
shl eax, 8
add eax, edx
cdq
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x84], edx
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x28], eax
lea edi, [esp + 0x50]
mov dword [esp + 0x2c], eax
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [ebp]
mov dword [esp + 0x38], eax
push 0x2710
push edx
lea eax, [esp + 0x38]
push 0xc
push eax
push 0x2d1400
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x418bec
mov edi, 0x4b5218
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x5c]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x418aee
lea edi, [esp + eax + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x418b20
lea edi, [esp + eax + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [ebp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x418b4c
lea edi, [esp + eax + 0x50]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
lea ecx, [esp + 0x24]
push ebx
push ecx
lea edx, [esp + 0x40]
push 0x18
push edx
push ebx
push ebx
push 0x70000
push eax
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x418bec
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x78], edx
mov dword [ebp + 0x7c], ebx
mov edx, dword [ebp + 0x78]
mov ecx, ebx
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x74], ebx
push ecx
mov ecx, dword [ebp + 0x70]
mov eax, ebx
push edx
push eax
mov dword [ebp + 0x68], esi
push ecx
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x84], ebx
call fcn.00452490
push edi
push esi
push edx
push eax
call fcn.00452490
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x80]
mov dword [ebp + 0x5c], edx
mov ecx, dword [ebp + 0x5c]
mov edx, ebx
push edx
mov edx, dword [ebp + 0x58]
push eax
push ecx
push edx
call fcn.00452490
mov dword [ebp + 0x60], eax
pop edi
mov dword [ebp + 0x64], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2750
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2750
ret