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

Disassembly:
sub esp, 0xa14
mov eax, dword [0x4d6720]
xor eax, esp
mov dword [esp + 0xa10], eax
push ebx
mov ebx, dword [esp + 0xa20]
push esi
mov esi, dword [esp + 0xa20]
mov dword [esp + 0x14], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0xffffffff
test ebx, ebx
je 0x41eae2
mov dword [ebx], 0xffffffff
test esi, esi
jne 0x41eb1f
push 0x104
lea eax, [esp + 0x814]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x41eb18
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.00482b5f
add esp, 0xa14
ret
lea esi, [esp + 0x810]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
je 0x41eb46
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.00482b5f
add esp, 0xa14
ret
push edi
lea eax, [esp + 0x20c]
mov edi, esi
mov ecx, eax
sub edi, ecx
mov edx, 0x104
mov dword [esp + 0x10], edi
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x41eb80
movzx ecx, word [edi + eax]
test cx, cx
je 0x41eb80
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x41eb60
jmp 0x41eb84
test edx, edx
jne 0x41eb87
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
test eax, eax
je 0x41edc3
mov ax, word [esp + 0x20c]
test ax, ax
je 0x41edc3
push ebp
movzx ecx, ax
push ecx
push str.._c:
lea edx, [esp + 0x218]
push 0x104
push edx
call fcn.00406070
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [esp + 0x228]
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec79
xor edi, edi
push 0x3ff
lea ecx, [esp + 0x41d]
push edi
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x210], edi
mov dword [esp + 0x214], edi
mov byte [esp + 0x424], 0
call fcn.00482db0
add esp, 0xc
push edi
lea edx, [esp + 0x24]
push edx
push 0x400
lea eax, [esp + 0x424]
push eax
push 0xc
lea ecx, [esp + 0x218]
push ecx
push 0x2d1400
push esi
mov dword [esp + 0x43c], 0x400
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov edi, dword [esp + 0x14]
je 0x41ec79
mov edx, dword [esp + 0x434]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 0xe
ja case.default.0x41ec8a
movzx eax, byte [eax + 0x41edf4]
jmp dword [eax*4 + 0x41edec]
mov dword [esp + 0x10], 1
jmp case.default.0x41ec8a
mov dword [esp + 0x10], 2
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [esp + 0x228]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed3f
xor ebp, ebp
push ebp
lea edx, [esp + 0x18]
push edx
push 0x1e0
lea eax, [esp + 0x30]
push eax
push ebp
push ebp
push 0x70c00
push esi
mov dword [esp + 0x34], ebp
call ebx
test eax, eax
je 0x41ed38
cmp dword [esp + 0x14], ebp
jbe 0x41ed38
mov eax, dword [esp + 0x2c]
dec eax
cmp eax, 0x15
ja case.default.0x41ecfb
movzx ecx, byte [eax + 0x41ee18]
jmp dword [ecx*4 + 0x41ee04]
mov dword [esp + 0x10], 0x20d
jmp 0x41ed38
mov dword [esp + 0x10], 0x15e
jmp 0x41ed38
mov dword [esp + 0x10], 0x320
jmp 0x41ed38
mov dword [esp + 0x10], 2
jmp 0x41ed38
mov dword [esp + 0x10], 1
jmp 0x41ed38
mov dword [esp + 0x10], ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 1
pop ebp
jne 0x41edbf
mov edx, 0x104
lea eax, [esp + 0x20c]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x41ed73
movzx ecx, word [edi + eax]
test cx, cx
je 0x41ed73
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x41ed53
jmp 0x41ed77
test edx, edx
jne 0x41ed7a
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
test eax, eax
je 0x41edbf
cmp word [esp + 0x20c], 0
je 0x41edbf
lea ecx, [esp + 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x41edb7
add eax, 0xfffffffb
cmp eax, 1
ja 0x41edbf
mov dword [esp + 0xc], 2
mov ebx, dword [esp + 0x18]
pop edi
test ebx, ebx
je 0x41edce
mov edx, dword [esp + 0x10]
mov dword [ebx], edx
mov ecx, dword [esp + 0xa18]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.00482b5f
add esp, 0xa14