Function at 0x415900
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4018b0
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x68]
mov edx, dword [ebp + 0xc]
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
xor ebx, ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x11
lea ecx, [ebp - 0x30]
push 0x408be0
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
mov edx, dword [ebp - 0x40]
push 1
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcLeftCharBstr]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0xa0]
call esi
mov edx, dword [ebp - 0xa0]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push 0x408bd0
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xa0], ebx
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x94]
call esi
push eax
push 0x408164
call edi
mov edx, eax
lea ecx, [ebp - 0x98]
call esi
push eax
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.00406cd4
mov dword [ebp - 0xa4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
lea edx, [ebp - 0x9c]
push ecx
lea eax, [ebp - 0x98]
push edx
lea ecx, [ebp - 0x94]
push eax
mov dword [ebp - 0x38], edi
push ecx
lea edx, [ebp - 0x90]
push edx
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x18
cmp edi, 0xffffffff
je 0x415bd8
lea eax, [ebp - 0x3c]
push ebx
lea ecx, [ebp - 0x30]
push eax
push ecx
push 1
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov edx, dword [ebp - 0x24]
add eax, 1
jo 0x415c76
push eax
push edx
lea eax, [ebp - 0x74]
push 0xc
push eax
push 0x2d1400
push edi
call fcn.00406d1c
mov dword [ebp - 0xa4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [ebp - 0xa4], ebx
je 0x415bdf
mov ecx, dword [ebp - 0x24]
push 0x23
lea edx, [ebp - 0x68]
push ecx
push edx
call fcn.00405b3c
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
cmp al, bl
mov eax, dword [ebp - 0x58]
mov word [ebp - 0x8c], 0xffff
setne cl
neg ecx
cmp eax, ebx
mov word [ebp - 0x84], cx
jle 0x415b2f
cmp eax, 0x2710
mov edi, eax
jb 0x415af8
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [ebp - 0x24]
add edx, edi
mov edi, dword [sym.imp.MSVBVM60.DLL_VarPtr]
push edx
call edi
push eax
call 0x415c80
mov edx, eax
lea ecx, [ebp - 0x90]
call esi
mov edx, eax
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
jmp 0x415b35
mov edi, dword [sym.imp.MSVBVM60.DLL_VarPtr]
mov eax, dword [ebp - 0x54]
cmp eax, ebx
jle 0x415b84
cmp eax, 0x2710
mov dword [ebp - 0xa8], eax
jb 0x415b4f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xa8]
add eax, ecx
push eax
call edi
push eax
call 0x415c80
mov edx, eax
lea ecx, [ebp - 0x90]
call esi
mov edx, eax
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
jle 0x415bc9
cmp eax, 0x2710
mov ebx, eax
jb 0x415b9a
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [ebp - 0x24]
add edx, ebx
push edx
call edi
push eax
call 0x415c80
mov edx, eax
lea ecx, [ebp - 0x90]
call esi
mov edx, eax
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edi, dword [ebp - 0x38]
push edi
call fcn.004066b0
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x415c51
jmp 0x415c2f
mov word [ebp - 0x8c], bx
jmp 0x415bcc
lea ecx, [ebp - 0xa4]
lea eax, [ebp - 0x30]
push ecx
push 0
mov dword [ebp - 0xa4], eax
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
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4018c0
mov esi, dword [ebp + 8]
xor eax, eax
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
call fcn.00406c7c
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, eax
call ebx
lea eax, [ebp - 0x30]
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcSpaceVar]
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov edx, dword [ebp - 0x18]
push esi
lea eax, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.00406c38
call ebx
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x1c]
call edi
push 0x415d67
jmp 0x415d5d
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret