Function at 0x414e1c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x493c
push ebx
push esi
push edi
call fcn.0040e83a
mov ecx, eax
call fcn.0040e66b
call fcn.0040ec30
call fcn.0040e83a
cmp byte [eax + 3], 0
jne 0x414e4f
push 0x40e100
call fcn.00415e16
pop ecx
call fcn.00411535
mov ecx, eax
call fcn.004114b7
test eax, eax
je 0x4154fb
push 0x14
call fcn.00411d15
test eax, eax
pop ecx
jne 0x414e8b
push 0x417740
push 0x417640
push 0x40e044
call fcn.00411593
add esp, 0xc
jmp 0x4154fb
push 0xa
call fcn.00411d15
test eax, eax
pop ecx
jne 0x414ea3
push 0x417740
push 0x419540
jmp 0x414e79
push 0x11
call fcn.00411d15
test eax, eax
pop ecx
jne 0x414ebb
push 0x417740
push 0x417540
jmp 0x414e79
push 9
call fcn.00411d15
test eax, eax
pop ecx
jne 0x414ecc
mov byte [0x41701c], al
push 0x400
lea eax, [ebp - 0x293c]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x293c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x293c]
push eax
push 0x40e5a8
push 0x419e68
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x293c]
push eax
call fcn.0040e860
add esp, 0x10
test eax, eax
je 0x4154fb
xor edi, edi
lea eax, [ebp - 0x18]
inc edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 8
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x414f64
call fcn.0040e83a
cmp byte [eax + 1], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
je 0x414f6b
push 0x41c6f0
call fcn.0040e83a
push dword [eax + 8]
call fcn.00412dd5
test eax, eax
pop ecx
pop ecx
jne 0x415079
mov eax, edi
jmp 0x415615
call fcn.0040e83a
cmp dword [eax + 8], esi
je 0x414fb5
lea ecx, [ebp - 0x493c]
call fcn.0041155b
call fcn.0040e83a
push dword [eax + 8]
lea eax, [ebp - 0x493c]
push eax
call ebx
sub esp, 0x2000
mov edi, esp
lea esi, [ebp - 0x493c]
mov ecx, 0x800
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41c6f0
call fcn.004125ef
jmp 0x415077
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x415079
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push 7
xor eax, eax
pop ecx
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov word [ebp - 0x93c], si
mov ecx, 0x1ff
lea edi, [ebp - 0x93a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x2c], 0x4240
mov dword [ebp - 0x28], 0x411a73
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x4154fb
lea ecx, [ebp - 0x93c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x493c]
call fcn.0041155b
lea eax, [ebp - 0x93c]
push eax
lea eax, [ebp - 0x493c]
push eax
call ebx
sub esp, 0x2000
mov edi, esp
lea esi, [ebp - 0x493c]
mov ecx, 0x800
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41c6f0
call fcn.004125ef
mov eax, dword [ebp - 0x10]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
call fcn.0040e83a
cmp dword [eax + 4], 2
je 0x41508f
call fcn.0040e83a
cmp dword [eax + 4], 3
jne 0x4150f4
call fcn.0040e83a
cmp byte [eax + 1], 0
je 0x4150b7
push 0x41c6d0
call fcn.0040e83a
push dword [eax + 0xc]
call fcn.00412dd5
test eax, eax
pop ecx
pop ecx
jne 0x4150f4
jmp 0x4154fb
lea ecx, [ebp - 0x493c]
call fcn.0041155b
call fcn.0040e83a
push dword [eax + 0xc]
lea eax, [ebp - 0x493c]
push eax
call ebx
sub esp, 0x2000
mov edi, esp
lea esi, [ebp - 0x493c]
mov ecx, 0x800
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41c6d0
call fcn.004125ef
xor esi, esi
xor eax, eax
cmp dword [0x41c6fc], esi
mov word [ebp - 0x213c], si
mov ecx, 0x1ff
lea edi, [ebp - 0x213a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 8], esi
jbe 0x4152fe
mov esi, dword [ebp - 8]
mov eax, dword [0x41c6f4]
shl esi, 0xd
lea edi, [esi + eax]
push 0x40e5a0
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, edi
jne 0x415176
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [0x41c6f4]
lea eax, [esi + eax + 4]
push eax
push 0x40e594
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x93c]
push edi
push eax
call fcn.00411693
push edi
call fcn.00411c13
add esp, 0x18
jmp 0x41518c
mov eax, dword [0x41c6f4]
add eax, esi
push eax
lea eax, [ebp - 0x93c]
push eax
call fcn.00411693
pop ecx
pop ecx
lea eax, [ebp - 0x93c]
push eax
lea eax, [ebp - 0x113c]
push eax
call ebx
lea eax, [ebp - 0x113c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
and word [ebp - 0x1138], 0
lea eax, [ebp - 0x113c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4154fb
lea eax, [ebp - 0x113c]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [ebp - 8], 0
jne 0x415217
lea eax, [ebp - 0x113c]
push eax
lea eax, [ebp - 0x213c]
push eax
call ebx
lea eax, [ebp - 0x93c]
push eax
mov edi, 0x41aea8
push edi
call ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x93c]
push eax
mov edi, 0x41b6d0
push edi
call ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
jmp 0x415233
lea eax, [ebp - 0x213c]
push eax
lea eax, [ebp - 0x113c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4154fb
lea eax, [ebp - 0x93c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
test eax, eax
je 0x41525a
push 0x40e590
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea eax, [ebp - 0x93c]
jne 0x415260
lea eax, [ebp - 0x113c]
push eax
mov eax, dword [0x41c6f4]
lea eax, [esi + eax + 0x1800]
push eax
call ebx
mov eax, dword [0x41c6f4]
lea eax, [esi + eax + 0x1800]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea eax, [ebp - 0x93c]
push eax
mov eax, dword [0x41c6f4]
lea eax, [esi + eax + 0x800]
push eax
call ebx
mov eax, dword [0x41c6f4]
lea eax, [esi + eax + 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov eax, dword [0x41c6f4]
lea eax, [esi + eax + 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x93c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4152d6
add eax, 2
push eax
jmp 0x4152db
push 0x40e0fc
mov eax, dword [0x41c6f4]
lea eax, [esi + eax + 0x1000]
push eax
call ebx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [0x41c6fc]
jb 0x41511b
xor esi, esi
movzx eax, word [ebp - 0x113c]
push eax
lea eax, [ebp - 0x13c]
push 0x40e588
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
mov edi, 0x2000000
push edi
push 3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 3
push 0xc0000000
lea eax, [ebp - 0x13c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x415360
xor eax, eax
push eax
push edi
push 3
push eax
push eax
push eax
lea eax, [ebp - 0x13c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4153d4
call fcn.00411535
lea ecx, [ebp - 0x1c]
push ecx
push 0x400
lea ecx, [ebp - 0x153c]
push ecx
push 1
push dword [ebp - 4]
call dword [eax + 8]
test eax, eax
jne 0x4153ba
cmp word [ebp - 0x153c], ax
jbe 0x4153ba
mov esi, 0x800
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
movzx ecx, word [ebp - 0x153c]
mov edx, dword [ebp - 0x1538]
shr ecx, 1
and word [edx + ecx*2], 0
push dword [ebp - 0x1538]
mov dword [ebp - 8], eax
push eax
call ebx
jmp 0x4153bf
mov esi, 0x800
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x4154c5
jmp 0x4153d9
mov esi, 0x800
movzx eax, word [ebp - 0x113c]
push eax
lea eax, [ebp - 0x53c]
push 0x40e584
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x400
lea eax, [ebp - 0x193c]
push eax
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x4154c5
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x193c]
push eax
call edi
test eax, eax
je 0x4154c5
push 0x40e570
lea eax, [ebp - 0x193c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x415481
push 0x40e568
lea eax, [ebp - 0x193c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x4154c5
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x193c]
push ecx
push 0x40e560
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4154c5
push 0x40e54c
call edi
push 0x40e548
push dword [ebp - 4]
mov edi, eax
add edi, dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrStrA]
inc eax
mov dword [ebp - 0x10], eax
mov byte [edi], 0
je 0x4154c5
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
push dword [ebp - 4]
push 0x40e53c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp word [ebp - 0x113c], 0x30
jne 0x4154e9
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40e508
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
pop ecx
mov esi, dword [ebp - 8]
test esi, esi
jne 0x415503
push 0x417840
call fcn.00411593
pop ecx
xor eax, eax
inc eax
jmp 0x415615
push esi
push 0x41a668
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
lea eax, [esi + eax*2 - 2]
cmp byte [eax], 0x5c
jne 0x415525
and word [eax], 0
dec dword [ebp - 4]
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov byte [ebp - 9], 0
lea eax, [ebp - 0x213c]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push dword [ebp - 8]
mov byte [ebp - 0xa], 0
push eax
call fcn.0041393c
add esp, 0x10
call fcn.0040e83a
cmp byte [eax + 3], 0
je 0x41559c
mov eax, dword [0x41c70c]
test eax, eax
je 0x415592
xor ebx, ebx
test eax, eax
jbe 0x415580
push ebx
mov ecx, 0x41c6e0
call fcn.004124e7
inc ebx
cmp ebx, dword [0x41c70c]
jb 0x41556c
cmp dword [0x41c6ec], 0
je 0x415592
push dword [ebp - 0x10]
call fcn.004136a0
pop ecx
call fcn.0040e83a
push dword [eax + 4]
jmp 0x4155f0
xor ebx, ebx
cmp dword [0x41c70c], ebx
je 0x4155cf
push ebx
push 0x414398
push ebx
push 0x65
push ebx
mov byte [ebp - 9], 1
call edi
push eax
call esi
cmp dword [0x41c6ec], ebx
je 0x4155f6
push dword [ebp - 0x10]
call fcn.004136a0
mov byte [ebp - 0xa], 1
jmp 0x4155f5
cmp byte [ebp - 9], 0
jne 0x4155ea
push ebx
push 0x414ca2
push ebx
push 0x6d
push ebx
mov dword [0x41b6cc], ebx
call edi
push eax
call esi
push dword [0x41b6cc]
call fcn.00412f34
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0xa], 0
jne 0x415535
call fcn.0040e9b2
call fcn.00415bb0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10