Function at 0x41a084
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov al, byte [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
and al, 0xf
inc ebx
push edi
mov byte [ebp - 1], al
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test byte [ebp + 0x14], 0xf0
mov esi, eax
mov dword [ebp - 0x1c], esi
jne 0x41a0d4
cmp esi, 4
jle 0x41a0d4
push 0x48727c
lea eax, [edi + esi*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41a0d4
mov dword [ebp - 0xc], ebx
jmp 0x41a0d8
and dword [ebp - 0xc], 0
lea eax, [esi + 0x532]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042e1e2
cmp word [edi], 0x5c
mov ebx, dword [ebp - 0x18]
lea eax, [ebx + esi*2 + 0x41a]
mov dword [ebp - 8], eax
jne 0x41a14d
push eax
inc edi
push 0x324
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, dword [ebp - 8]
jmp 0x41a13f
push edi
push esi
push str._s_s
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a084
add esp, 0x20
test eax, eax
jne 0x41a134
and dword [ebp - 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x41a10d
mov edi, dword [ebp - 0x10]
jmp 0x41a3a3
cmp dword [ebp - 0xc], 0
jne 0x41a184
cmp byte [ebp - 1], 0
lea eax, [ebx + esi*2]
push 0x16
jne 0x41a174
push str.INF.INF
push eax
call fcn.00470580
lea eax, [esi + 5]
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x41a19f
push str..INF
push eax
call fcn.00470580
lea eax, [esi + 1]
jmp 0x41a16c
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x41a19b
sub eax, edi
inc eax
inc eax
sar eax, 1
jmp 0x41a16f
and dword [ebp - 0xc], 0
and dword [ebp - 0x26c], 0
xor eax, eax
mov ecx, 0x93
lea edi, [ebp - 0x268]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp + 8]
push ebx
xor edi, edi
push eax
mov dword [ebp + 8], edi
call fcn.0046ff71
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x41a2ca
movzx esi, word [0x49ae3c]
lea eax, [ebp - 0x240]
push eax
shl esi, 0x10
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebp - 0xc]
lea eax, [ebx + eax*2]
push eax
call fcn.00470580
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x41a221
push ebx
push dword [ebp + 0x10]
call fcn.0040c6ec
test al, al
pop ecx
pop ecx
je 0x41a2ad
push ebx
push dword [ebp + 0xc]
call fcn.00419f92
cmp byte [0x49ae28], 0
pop ecx
pop ecx
mov edi, eax
jne 0x41a29b
test edi, edi
je 0x41a2a3
and dword [ebp - 8], 0
cmp byte [0x49ae38], 0
je 0x41a253
push esi
push ebx
call fcn.00411f98
pop ecx
pop ecx
jmp 0x41a29b
cmp byte [0x49ae50], 3
je 0x41a280
push esi
push ebx
push edi
call fcn.00411ea8
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
mov dword [ebp - 0x14], eax
jge 0x41a29b
test eax, eax
je 0x41a29b
cmp byte [0x49ae50], 3
jne 0x41a28c
push edi
push ebx
call fcn.0040c7b5
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jge 0x41a29b
cmp dword [ebp - 0x14], 0
jne 0x41a25c
test edi, edi
je 0x41a2a3
and word [edi], 0
cmp dword [ebp - 0x14], 0
jne 0x41a2ad
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x26c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41a1d7
mov esi, dword [ebp - 0x1c]
xor edi, edi
lea ecx, [ebp + 8]
call fcn.00402ad6
cmp byte [ebp - 1], 1
jne 0x41a39b
push 0xc
lea eax, [ebx + esi*2]
push 0x487c08
push eax
call fcn.00470580
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp + 8]
push ebx
push eax
mov word [ebp - 0x23c], di
call fcn.0046ff71
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x41a39b
test byte [ebp - 0x26c], 0x10
je 0x41a381
cmp word [ebp - 0x240], 0x2e
jne 0x41a33f
cmp word [ebp - 0x23e], di
je 0x41a381
cmp word [ebp - 0x23e], 0x2e
jne 0x41a33f
cmp word [ebp - 0x23c], di
je 0x41a381
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebx + esi*2 + 2]
push eax
call fcn.00470580
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a084
add esp, 0x1c
cmp eax, edi
jne 0x41a37a
mov dword [ebp - 0x10], edi
mov word [ebp - 0x23c], di
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp + 8]
call fcn.004040e9
test eax, eax
jne 0x41a310
mov edi, dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.00402ad6
lea ecx, [ebp - 0x18]
call fcn.00428a48
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret