Function at 0x408b37
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x35c
push ebx
push esi
push edi
push dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x70], ebx
call fcn.004043d0
pop ecx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
push 0x23
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
je 0x408b7d
mov word [eax], bx
add eax, 2
push eax
call fcn.00402b60
pop ecx
mov dword [ebp + 0x60], eax
xor edi, edi
inc edi
cmp word [esi], bx
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x7c], edi
je 0x408bb3
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x402274
push esi
call ebx
neg eax
sbb eax, eax
push 0x40226c
neg eax
push esi
mov dword [ebp + 0x6c], eax
call ebx
neg eax
sbb eax, eax
neg eax
mov dword [ebp + 0x7c], eax
push 0x3a
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ebx, eax
test ebx, ebx
mov dword [ebp + 0x64], ebx
je 0x408bf2
dec ebx
dec ebx
mov dword [ebp + 0x64], ebx
je 0x408bf2
push ebx
call fcn.00403582
pop ecx
xor ecx, ecx
cmp dword [ebp + 0x6c], ecx
jne 0x408bdf
cmp dword [ebp + 0x7c], ecx
je 0x408be2
mov word [ebx], cx
cmp eax, 2
jne 0x408bea
mov dword [ebp + 0x7c], edi
cmp eax, 5
jne 0x408bf2
mov dword [ebp + 0x6c], edi
xor esi, esi
mov dword [ebp + 0x68], esi
jmp 0x408bfc
mov ebx, dword [ebp + 0x64]
test ebx, ebx
je 0x408c6c
push ebx
call fcn.00403582
cmp eax, 5
pop ecx
jne 0x408c20
movzx eax, word [ebx]
push eax
mov dword [ebp + 0x70], edi
call fcn.00403710
pop ecx
mov esi, eax
jmp 0x408d08
cmp eax, 2
jne 0x408d7d
mov dword [ebp + 0x70], edi
mov esi, 0x402264
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
push 0x9a
lea eax, [ebp - 0x3a]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x64]
mov ax, word [eax]
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
push eax
call fcn.00408a7b
add esp, 0x10
mov esi, eax
neg esi
sbb esi, esi
xor edi, edi
inc esi
inc edi
jmp 0x408d08
lea eax, [ebp - 0x2e8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x2e8], 0
lea ebx, [ebp - 0x2e8]
je 0x408d08
push ebx
call fcn.00403582
cmp eax, 2
pop ecx
jne 0x408cdd
cmp dword [ebp + 0x7c], 0
je 0x408cf7
mov dword [ebp + 0x70], edi
mov esi, 0x402264
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
push 0x9a
lea eax, [ebp - 0x3a]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
mov ax, word [ebx]
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
push eax
call fcn.00408a7b
add esp, 0x10
mov esi, eax
neg esi
sbb esi, esi
xor edi, edi
inc esi
inc edi
jmp 0x408cf7
cmp eax, 5
jne 0x408cf7
cmp dword [ebp + 0x6c], 0
je 0x408cf7
movzx eax, word [ebx]
push eax
mov dword [ebp + 0x70], edi
call fcn.00403710
pop ecx
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x408c8e
test esi, esi
jne 0x408d6f
cmp dword [ebp + 0x70], esi
je 0x408d7d
mov eax, dword [ebp + 0x60]
test eax, eax
jbe 0x408d22
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], eax
je 0x408d7d
jmp 0x408d6f
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push 0x50
lea eax, [ebp - 0xe0]
push eax
push 0x2713
push dword [0x4152cc]
call ebx
push 0x50
lea eax, [ebp - 0x40]
push eax
push 0x2714
push dword [0x4152cc]
call ebx
push 0x24
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xe0]
push eax
push dword [0x4152c8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x408d7d
cmp dword [ebp + 0x70], 0
je 0x408d7d
test esi, esi
je 0x408bf9
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
add ebp, 0x74
leave
ret