Function at 0x41d89f
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 esi, esi
and al, 0xf
inc esi
push edi
mov byte [ebp - 1], al
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test byte [ebp + 0x14], 0xf0
mov ebx, eax
jne 0x41d8ec
cmp ebx, 4
jle 0x41d8ec
push 0x49a39c
lea eax, [edi + ebx*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41d8ec
mov dword [ebp - 8], esi
jmp 0x41d8f0
and dword [ebp - 8], 0
lea eax, [ebx + 0x532]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043719c
cmp word [edi], 0x5c
mov esi, dword [ebp - 0x1c]
lea eax, [esi + ebx*2 + 0x41a]
mov dword [ebp - 0x14], eax
jne 0x41d965
push eax
inc edi
push 0x324
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [ebp - 0x14]
jmp 0x41d957
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.0041d89f
add esp, 0x20
test eax, eax
jne 0x41d94c
and dword [ebp - 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x41d925
mov esi, dword [ebp - 0x18]
jmp 0x41dbf2
lea eax, [ebx + 1]
push eax
push edi
push esi
call fcn.004047cb
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x41d9aa
cmp byte [ebp - 1], 0
lea eax, [esi + ebx*2]
push 0x16
jne 0x41d99a
push str.INF.INF
push eax
call fcn.00410b58
lea eax, [ebx + 5]
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x41d9c5
push str..INF
push eax
call fcn.00410b58
lea eax, [ebx + 1]
jmp 0x41d992
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x41d9c1
sub eax, edi
inc eax
inc eax
sar eax, 1
jmp 0x41d995
and dword [ebp - 0x14], 0
and dword [ebp - 0x26c], 0
xor eax, eax
and dword [ebp + 8], 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 esi
push eax
call fcn.00482c3e
xor edi, edi
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x41db1a
movzx edi, word [0x4afe88]
lea eax, [ebp - 0x240]
push eax
shl edi, 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 - 0x14]
lea eax, [esi + eax*2]
push eax
call fcn.00410b58
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x41da47
push esi
push dword [ebp + 0x10]
call fcn.0040ddfd
test al, al
pop ecx
pop ecx
je 0x41db00
push esi
push dword [ebp + 0xc]
call fcn.0041d798
cmp byte [0x4afe74], 0
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x41daeb
test eax, eax
je 0x41daf6
and dword [ebp - 0x10], 0
cmp byte [0x4afe84], 0
je 0x41da82
push edi
push esi
call fcn.0041344b
pop ecx
pop ecx
jmp 0x41daeb
cmp byte [0x4afe9d], 3
je 0x41da94
cmp byte [0x4afe9c], 0
je 0x41dace
cmp byte [0x4afe9c], 0
je 0x41daa8
push dword [ebp - 8]
push esi
call fcn.0040df0a
jmp 0x41daba
cmp byte [0x4afe9d], 3
jne 0x41dabf
push dword [ebp - 8]
push esi
call fcn.0040dfd0
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jge 0x41daeb
cmp dword [ebp - 0xc], 0
je 0x41daeb
push edi
push esi
push dword [ebp - 8]
call fcn.0041335b
add esp, 0xc
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
jge 0x41daeb
test eax, eax
jne 0x41da94
mov eax, dword [ebp - 8]
test eax, eax
je 0x41daf6
and word [eax], 0
cmp dword [ebp - 0xc], 0
jne 0x41db00
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x26c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41d9fd
xor edi, edi
lea ecx, [ebp + 8]
call fcn.00402baa
cmp byte [ebp - 1], 1
je 0x41db2f
xor esi, esi
jmp 0x41dbea
push 0xc
lea eax, [esi + ebx*2]
push 0x49aff0
push eax
call fcn.00410b58
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp + 8]
push esi
push eax
mov word [ebp - 0x23c], di
call fcn.00482c3e
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x41db28
test byte [ebp - 0x26c], 0x10
je 0x41dbd0
cmp word [ebp - 0x240], 0x2e
jne 0x41db8e
cmp word [ebp - 0x23e], di
je 0x41dbd0
cmp word [ebp - 0x23e], 0x2e
jne 0x41db8e
cmp word [ebp - 0x23c], di
je 0x41dbd0
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, [esi + ebx*2 + 2]
push eax
call fcn.00410b58
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0041d89f
add esp, 0x1c
cmp eax, edi
jne 0x41dbc9
mov dword [ebp - 0x18], edi
mov word [ebp - 0x23c], di
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp + 8]
call fcn.004048d9
test eax, eax
jne 0x41db5f
mov esi, dword [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.00402baa
lea ecx, [ebp - 0x1c]
call fcn.00431c4c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret