Function at 0x418e09
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 0x418e56
cmp ebx, 4
jle 0x418e56
push str..INF
lea eax, [edi + ebx*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x418e56
mov dword [ebp - 8], esi
jmp 0x418e5a
and dword [ebp - 8], 0
lea eax, [ebx + 0x532]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042c827
cmp word [edi], 0x5c
mov esi, dword [ebp - 0x18]
lea eax, [esi + ebx*2 + 0x41a]
mov dword [ebp - 0xc], eax
jne 0x418ecf
push eax
inc edi
push 0x324
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [ebp - 0xc]
jmp 0x418ec1
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.00418e09
add esp, 0x20
test eax, eax
jne 0x418eb6
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 0x418e8f
mov esi, dword [ebp - 0x10]
jmp 0x4190ef
cmp dword [ebp - 8], 0
jne 0x418f06
cmp byte [ebp - 1], 0
lea eax, [esi + ebx*2]
push 0x16
jne 0x418ef6
push str.INF.INF
push eax
call fcn.0046cbf0
lea eax, [ebx + 5]
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x418f21
push 0x483a68
push eax
call fcn.0046cbf0
lea eax, [ebx + 1]
jmp 0x418eee
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x418f1d
sub eax, edi
inc eax
inc eax
sar eax, 1
jmp 0x418ef1
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.0046c5e2
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x419017
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.0046cbf0
add esp, 0xc
cmp dword [ebp + 0x10], edi
je 0x418f94
push esi
push dword [ebp + 0x10]
call fcn.0040bb32
test al, al
pop ecx
pop ecx
je 0x418fff
push esi
push dword [ebp + 0xc]
call fcn.00418d17
cmp byte [0x496e20], 0
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x418fed
cmp eax, edi
je 0x418ff7
cmp byte [0x496e38], 3
je 0x418fd3
push 0
push esi
push dword [ebp - 8]
call fcn.0040ba5f
add esp, 0xc
inc edi
cmp edi, 2
mov dword [ebp - 0x14], eax
jge 0x418feb
test eax, eax
je 0x418feb
push dword [ebp - 8]
push esi
call fcn.0040bbfb
inc edi
cmp edi, 2
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jge 0x418feb
test eax, eax
jne 0x418fb8
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x418ff7
mov word [eax], di
cmp dword [ebp - 0x14], edi
jne 0x418fff
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 0x418f59
lea ecx, [ebp + 8]
call fcn.00402a40
cmp byte [ebp - 1], 1
je 0x41902c
xor esi, esi
jmp 0x4190e7
push 0xc
lea eax, [esi + ebx*2]
push str..
push eax
call fcn.0046cbf0
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp + 8]
push esi
push eax
mov word [ebp - 0x238], di
call fcn.0046c5e2
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x419025
test byte [ebp - 0x268], 0x10
je 0x4190cd
cmp word [ebp - 0x23c], 0x2e
jne 0x41908b
cmp word [ebp - 0x23a], di
je 0x4190cd
cmp word [ebp - 0x23a], 0x2e
jne 0x41908b
cmp word [ebp - 0x238], di
je 0x4190cd
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.0046cbf0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00418e09
add esp, 0x1c
cmp eax, edi
jne 0x4190c6
mov dword [ebp - 0x10], edi
mov word [ebp - 0x238], di
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp + 8]
call fcn.00403d5a
test eax, eax
jne 0x41905c
mov esi, dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.00402a40
lea ecx, [ebp - 0x18]
call fcn.00427365
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret