Function at 0x414c53
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x493c
push ebx
push esi
push edi
call fcn.0040e8ce
mov ecx, eax
call fcn.0040e6ff
call fcn.0040ecc4
call fcn.0040e8ce
cmp byte [eax + 3], 0
jne 0x414c86
push 0x40e1d0
call fcn.00415c50
pop ecx
call fcn.004115bb
mov ecx, eax
call fcn.00411548
test eax, eax
je 0x415332
push 0x14
call fcn.00411d3e
test eax, eax
pop ecx
jne 0x414cc2
push 0x417740
push 0x417640
push 0x40e130
call fcn.00411619
add esp, 0xc
jmp 0x415332
push 0xa
call fcn.00411d3e
test eax, eax
pop ecx
jne 0x414cda
push 0x417740
push 0x419540
jmp 0x414cb0
push 0x11
call fcn.00411d3e
test eax, eax
pop ecx
jne 0x414cf2
push 0x417740
push 0x417540
jmp 0x414cb0
push 9
call fcn.00411d3e
test eax, eax
pop ecx
jne 0x414d03
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 0x40e638
push 0x419e68
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x293c]
push eax
call fcn.0040e8f4
add esp, 0x10
test eax, eax
je 0x415332
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 0x414d9b
call fcn.0040e8ce
cmp byte [eax + 1], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
je 0x414da2
push 0x41c6f0
call fcn.0040e8ce
push dword [eax + 8]
call fcn.00412c52
test eax, eax
pop ecx
pop ecx
jne 0x414eb0
mov eax, edi
jmp 0x41544c
call fcn.0040e8ce
cmp dword [eax + 8], esi
je 0x414dec
lea ecx, [ebp - 0x493c]
call fcn.004115e1
call fcn.0040e8ce
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.004125da
jmp 0x414eae
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x414eb0
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], 0x411af9
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x415332
lea ecx, [ebp - 0x93c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x493c]
call fcn.004115e1
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.004125da
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.0040e8ce
cmp dword [eax + 4], 2
je 0x414ec6
call fcn.0040e8ce
cmp dword [eax + 4], 3
jne 0x414f2b
call fcn.0040e8ce
cmp byte [eax + 1], 0
je 0x414eee
push 0x41c6d0
call fcn.0040e8ce
push dword [eax + 0xc]
call fcn.00412c52
test eax, eax
pop ecx
pop ecx
jne 0x414f2b
jmp 0x415332
lea ecx, [ebp - 0x493c]
call fcn.004115e1
call fcn.0040e8ce
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.004125da
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 0x415135
mov esi, dword [ebp - 8]
mov eax, dword [0x41c6f4]
shl esi, 0xd
lea edi, [esi + eax]
push 0x40e630
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, edi
jne 0x414fad
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 0x40e624
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x93c]
push edi
push eax
call fcn.00411719
push edi
call fcn.00411c99
add esp, 0x18
jmp 0x414fc3
mov eax, dword [0x41c6f4]
add eax, esi
push eax
lea eax, [ebp - 0x93c]
push eax
call fcn.00411719
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 0x415332
lea eax, [ebp - 0x113c]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [ebp - 8], 0
jne 0x41504e
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 0x41506a
lea eax, [ebp - 0x213c]
push eax
lea eax, [ebp - 0x113c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x415332
lea eax, [ebp - 0x93c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
test eax, eax
je 0x415091
push 0x40e620
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea eax, [ebp - 0x93c]
jne 0x415097
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 0x41510d
add eax, 2
push eax
jmp 0x415112
push 0x40e1cc
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 0x414f52
xor esi, esi
movzx eax, word [ebp - 0x113c]
push eax
lea eax, [ebp - 0x13c]
push 0x40e618
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 0x415197
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 0x41520b
call fcn.004115bb
lea ecx, [ebp - 0x1c]
push ecx
push 0x400
lea ecx, [ebp - 0x153c]
push ecx
push 1
push dword [ebp - 4]
call dword [eax + 4]
test eax, eax
jne 0x4151f1
cmp word [ebp - 0x153c], ax
jbe 0x4151f1
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 0x4151f6
mov esi, 0x800
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x4152fc
jmp 0x415210
mov esi, 0x800
movzx eax, word [ebp - 0x113c]
push eax
lea eax, [ebp - 0x53c]
push 0x40e614
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 0x4152fc
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x193c]
push eax
call edi
test eax, eax
je 0x4152fc
push 0x40e600
lea eax, [ebp - 0x193c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4152b8
push 0x40e5f8
lea eax, [ebp - 0x193c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x4152fc
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x193c]
push ecx
push 0x40e5f0
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4152fc
push 0x40e5dc
call edi
push 0x40e5d8
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 0x4152fc
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 0x40e5cc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp word [ebp - 0x113c], 0x30
jne 0x415320
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40e598
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 0x41533a
push 0x417840
call fcn.00411619
pop ecx
xor eax, eax
inc eax
jmp 0x41544c
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 0x41535c
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.00413773
add esp, 0x10
call fcn.0040e8ce
cmp byte [eax + 3], 0
je 0x4153d3
mov eax, dword [0x41c70c]
test eax, eax
je 0x4153c9
xor ebx, ebx
test eax, eax
jbe 0x4153b7
push ebx
mov ecx, 0x41c6e0
call fcn.004124d2
inc ebx
cmp ebx, dword [0x41c70c]
jb 0x4153a3
cmp dword [0x41c6ec], 0
je 0x4153c9
push dword [ebp - 0x10]
call fcn.004134d7
pop ecx
call fcn.0040e8ce
push dword [eax + 4]
jmp 0x415427
xor ebx, ebx
cmp dword [0x41c70c], ebx
je 0x415406
push ebx
push 0x4141cf
push ebx
push 0x65
push ebx
mov byte [ebp - 9], 1
call edi
push eax
call esi
cmp dword [0x41c6ec], ebx
je 0x41542d
push dword [ebp - 0x10]
call fcn.004134d7
mov byte [ebp - 0xa], 1
jmp 0x41542c
cmp byte [ebp - 9], 0
jne 0x415421
push ebx
push 0x414ad9
push ebx
push 0x6d
push ebx
mov dword [0x41b6cc], ebx
call edi
push eax
call esi
push dword [0x41b6cc]
call fcn.00412db1
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0xa], 0
jne 0x41536c
call fcn.0040ea46
call fcn.004159e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10