Function at 0x418ad8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov al, byte [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
and al, 0xf
inc esi
push edi
mov byte [ebp - 1], al
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test byte [ebp + 0x14], 0xf0
mov ebx, eax
jne 0x418b25
cmp ebx, 4
jle 0x418b25
push str..INF
lea eax, [edi + ebx*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x418b25
mov dword [ebp - 8], esi
jmp 0x418b29
and dword [ebp - 8], 0
lea eax, [ebx + 0x532]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042c415
cmp word [edi], 0x5c
mov esi, dword [ebp - 0x18]
lea eax, [esi + ebx*2 + 0x41a]
mov dword [ebp - 0xc], eax
jne 0x418b9e
push eax
inc edi
push 0x324
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [ebp - 0xc]
jmp 0x418b90
push edi
push ebx
push str._s_s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00418ad8
add esp, 0x20
test eax, eax
jne 0x418b85
and dword [ebp - 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x418b5e
mov esi, dword [ebp - 0x10]
jmp 0x418dbe
cmp dword [ebp - 8], 0
jne 0x418bd5
cmp byte [ebp - 1], 0
lea eax, [esi + ebx*2]
push 0x16
jne 0x418bc5
push str.INF.INF
push eax
call fcn.0046c720
lea eax, [ebx + 5]
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x418bf0
push 0x483a60
push eax
call fcn.0046c720
lea eax, [ebx + 1]
jmp 0x418bbd
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x418bec
sub eax, edi
inc eax
inc eax
sar eax, 1
jmp 0x418bc0
and dword [ebp - 0xc], 0
and dword [ebp - 0x268], 0
xor eax, eax
mov ecx, 0x93
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp + 8]
push esi
xor edi, edi
push eax
mov dword [ebp + 8], edi
call fcn.0046c113
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x418ce6
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0xc]
lea eax, [esi + eax*2]
push eax
call fcn.0046c720
add esp, 0xc
cmp dword [ebp + 0x10], edi
je 0x418c63
push esi
push dword [ebp + 0x10]
call fcn.0040b978
test al, al
pop ecx
pop ecx
je 0x418cce
push esi
push dword [ebp + 0xc]
call fcn.004189e6
cmp byte [0x496e20], 0
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x418cbc
cmp eax, edi
je 0x418cc6
cmp byte [0x496e38], 3
je 0x418ca2
push 0
push esi
push dword [ebp - 8]
call fcn.0040b8a5
add esp, 0xc
inc edi
cmp edi, 2
mov dword [ebp - 0x14], eax
jge 0x418cba
test eax, eax
je 0x418cba
push dword [ebp - 8]
push esi
call fcn.0040ba41
inc edi
cmp edi, 2
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jge 0x418cba
test eax, eax
jne 0x418c87
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x418cc6
mov word [eax], di
cmp dword [ebp - 0x14], edi
jne 0x418cce
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418c28
lea ecx, [ebp + 8]
call fcn.00402988
cmp byte [ebp - 1], 1
je 0x418cfb
xor esi, esi
jmp 0x418db6
push 0xc
lea eax, [esi + ebx*2]
push str..
push eax
call fcn.0046c720
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp + 8]
push esi
push eax
mov word [ebp - 0x238], di
call fcn.0046c113
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x418cf4
test byte [ebp - 0x268], 0x10
je 0x418d9c
cmp word [ebp - 0x23c], 0x2e
jne 0x418d5a
cmp word [ebp - 0x23a], di
je 0x418d9c
cmp word [ebp - 0x23a], 0x2e
jne 0x418d5a
cmp word [ebp - 0x238], di
je 0x418d9c
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [esi + ebx*2 + 2]
push eax
call fcn.0046c720
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00418ad8
add esp, 0x1c
cmp eax, edi
jne 0x418d95
mov dword [ebp - 0x10], edi
mov word [ebp - 0x238], di
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp + 8]
call fcn.00403ce3
test eax, eax
jne 0x418d2b
mov esi, dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.00402988
lea ecx, [ebp - 0x18]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret