Function at 0x41d020
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401856
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x401438
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x68]
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor esi, esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x74], eax
mov ecx, 6
mov dword [ebp - 0x70], eax
lea edi, [ebp - 0x8c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x98], esi
call ebx
push 0x11
lea ecx, [ebp - 0x30]
push 0x40dec0
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
mov edx, dword [ebp - 0x40]
push esi
push esi
push 3
push esi
push 3
push esi
push 0x40dca8
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0040dea0
mov dword [ebp - 0x98], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
lea edx, [ebp - 0x90]
push ecx
push edx
push 2
mov dword [ebp - 0x38], edi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
cmp edi, 0xffffffff
je 0x41d2a0
lea eax, [ebp - 0x3c]
push esi
lea ecx, [ebp - 0x30]
push eax
push ecx
push 1
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov edx, dword [ebp - 0x24]
add eax, 1
jo 0x41d329
push eax
push edx
lea eax, [ebp - 0x74]
push 0xc
push eax
push 0x2d1400
push edi
call fcn.0040bf94
mov dword [ebp - 0x98], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [ebp - 0x98], esi
je 0x41d2a7
mov ecx, dword [ebp - 0x24]
push 0x23
lea edx, [ebp - 0x68]
push ecx
push edx
call fcn.0040ddd0
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
movsx eax, word [ebp - 0x4c]
mov dword [ebp - 0x88], eax
mov al, byte [ebp - 0x5e]
xor ecx, ecx
mov word [ebp - 0x8c], 0xffff
test al, al
mov eax, dword [ebp - 0x58]
setne cl
neg ecx
cmp eax, esi
mov word [ebp - 0x84], cx
jle 0x41d1ef
cmp eax, 0x2710
mov esi, eax
jb 0x41d1b6
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [ebp - 0x24]
add edx, esi
mov esi, dword [sym.imp.MSVBVM60.DLL_VarPtr]
push edx
call esi
push eax
call fcn.0041d330
mov edx, eax
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x7c]
call ebx
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x90]
call edi
jmp 0x41d1fb
mov esi, dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x54]
test eax, eax
jle 0x41d246
cmp eax, 0x2710
mov dword [ebp - 0x9c], eax
jb 0x41d215
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x9c]
add eax, ecx
push eax
call esi
push eax
call fcn.0041d330
mov edx, eax
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x78]
call ebx
lea ecx, [ebp - 0x90]
call edi
mov eax, dword [ebp - 0x5c]
test eax, eax
jle 0x41d291
cmp eax, 0x2710
mov dword [ebp - 0x9c], eax
jb 0x41d260
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x9c]
add edx, eax
push edx
call esi
push eax
call fcn.0041d330
mov edx, eax
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x80]
call ebx
lea ecx, [ebp - 0x90]
call edi
mov edi, dword [ebp - 0x38]
push edi
call fcn.0040b798
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x41d304
jmp 0x41d2e2
mov word [ebp - 0x8c], si
jmp 0x41d294
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x30]
push edx
push 0
mov dword [ebp - 0x98], ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop