Function at 0x415050
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4b37a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov al, byte [edi + 0x7c]
lea ecx, [edi + 0x7c]
test al, al
je 0x415094
mov eax, 1
jmp 0x41531a
xor ebx, ebx
xor al, al
mov dword [ebp - 0x54], ebx
xchg byte [ecx], al
push ebx
push 0x4a5678
push dword [edi + 0x10]
push ecx
mov ecx, edi
call fcn.0040de90
test eax, eax
je 0x4152fb
push ecx
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x88]
call fcn.00415be0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4150d0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp dword [ebp - 0x74], 8
mov esi, eax
jb 0x4150ed
push dword [ebp - 0x88]
call fcn.00455fa6
add esp, 4
cmp esi, 2
je 0x4150fb
cmp esi, 5
jne 0x4152fb
cmp dword [edi + 0x14], 8
jb 0x415105
mov eax, dword [edi]
jmp 0x415107
mov eax, edi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x78], eax
cmp eax, 0xffffffff
je 0x4152fb
push 0x227
call fcn.004561eb
add esp, 4
mov dword [ebp - 0x50], 0
mov ebx, eax
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x58], ebx
push 0
push eax
push 0x227
push ebx
push 0xc
lea eax, [ebp - 0x50]
mov dword [ebx + 4], 0x227
push eax
push 0x2d1400
push dword [edi + 0x78]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4153b1
cmp dword [ebx + 0x1c], 7
jne 0x4153b1
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x41518d
add eax, ebx
jmp 0x415192
mov eax, str._NULL_
push eax
lea ecx, [ebp - 0x40]
call fcn.00405d10
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4151ad
add eax, ebx
jmp 0x4151b2
mov eax, str._NULL_
push eax
lea ecx, [ebp - 0x28]
call fcn.00405d10
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004167a0
mov ebx, eax
lea esi, [edi + 0x30]
cmp esi, ebx
je 0x4151fe
cmp dword [esi + 0x14], 8
jb 0x4151e3
push dword [esi]
call fcn.00455fa6
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.0040efa0
cmp dword [ebp - 0x5c], 8
jb 0x41520f
push dword [ebp - 0x70]
call fcn.00455fa6
add esp, 4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
call fcn.004167a0
lea ebx, [edi + 0x48]
mov dword [ebp - 0x54], eax
cmp ebx, eax
je 0x415255
cmp dword [ebx + 0x14], 8
jb 0x41523a
push dword [ebx]
call fcn.00455fa6
mov eax, dword [ebp - 0x54]
add esp, 4
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], cx
mov ecx, ebx
push eax
call fcn.0040efa0
cmp dword [ebp - 0x8c], 8
jb 0x41526c
push dword [ebp - 0xa0]
call fcn.00455fa6
add esp, 4
push 0
push 0x4a5678
push dword [ebx + 0x10]
push ecx
mov ecx, ebx
call fcn.0040de90
test eax, eax
je 0x4152c5
mov edx, 0x4a5678
mov ecx, esi
call fcn.0040d9d0
test al, al
jne 0x4152c5
mov esi, dword [edi + 0x6c]
cmp esi, dword [edi + 0x70]
je 0x4152c5
lea ebx, [ebx]
cmp dword [esi + 0x14], 8
jb 0x4152aa
mov eax, dword [esi]
jmp 0x4152ac
mov eax, esi
push dword [esi + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.0040d2f0
cmp eax, 0xffffffff
jne 0x415336
add esi, 0x18
cmp esi, dword [edi + 0x70]
jne 0x4152a0
cmp dword [ebp - 0x14], 0x10
jb 0x4152d6
push dword [ebp - 0x28]
call fcn.00455fa6
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4152f9
push dword [ebp - 0x40]
call fcn.00455fa6
add esp, 4
xor ebx, ebx
lea esi, [edi + 0x7c]
xor al, al
xchg byte [esi], al
mov ecx, dword [edi + 0x78]
cmp ecx, 0xffffffff
je 0x415318
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x78], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045755a
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x60]
mov ebx, dword [edi + 0x64]
cmp esi, ebx
je 0x4152c5
cmp dword [esi + 0x14], 8
jb 0x41534a
mov eax, dword [esi]
jmp 0x41534c
mov eax, esi
push dword [esi + 0x10]
push ecx
push eax
lea ecx, [edi + 0x30]
call fcn.0040d2f0
cmp eax, 0xffffffff
jne 0x41536a
add esi, 0x18
cmp esi, ebx
jne 0x415340
jmp 0x4152c5
mov al, 1
lea esi, [edi + 0x7c]
xchg byte [esi], al
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x54], 1
jb 0x415389
push dword [ebp - 0x28]
call fcn.00455fa6
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4153ac
push dword [ebp - 0x40]
call fcn.00455fa6
add esp, 4
mov ebx, dword [ebp - 0x58]
jmp 0x4153b4
lea esi, [edi + 0x7c]
push ebx
call fcn.00455fa6
mov ebx, dword [ebp - 0x54]
add esp, 4
test ebx, ebx
jne 0x415318
jmp 0x4152fe