Function at 0x4184bb
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 0x418508
cmp ebx, 4
jle 0x418508
push str..INF
lea eax, [edi + ebx*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x418508
mov dword [ebp - 8], esi
jmp 0x41850c
and dword [ebp - 8], 0
lea eax, [ebx + 0x532]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042aed6
cmp word [edi], 0x5c
mov esi, dword [ebp - 0x18]
lea eax, [esi + ebx*2 + 0x41a]
mov dword [ebp - 0xc], eax
jne 0x418581
push eax
inc edi
push 0x324
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [ebp - 0xc]
jmp 0x418573
push edi
push ebx
push 0x47d868
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.004184bb
add esp, 0x20
test eax, eax
jne 0x418568
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 0x418541
mov esi, dword [ebp - 0x10]
jmp 0x4187a1
cmp dword [ebp - 8], 0
jne 0x4185b8
cmp byte [ebp - 1], 0
lea eax, [esi + ebx*2]
push 0x16
jne 0x4185a8
push str.INF.INF
push eax
call fcn.004669c0
lea eax, [ebx + 5]
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x4185d3
push 0x47d838
push eax
call fcn.004669c0
lea eax, [ebx + 1]
jmp 0x4185a0
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x4185cf
sub eax, edi
inc eax
inc eax
sar eax, 1
jmp 0x4185a3
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.004663ce
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x4186c9
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.004669c0
add esp, 0xc
cmp dword [ebp + 0x10], edi
je 0x418646
push esi
push dword [ebp + 0x10]
call fcn.0040b683
test al, al
pop ecx
pop ecx
je 0x4186b1
push esi
push dword [ebp + 0xc]
call fcn.004183c9
cmp byte [0x48fe34], 0
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x41869f
cmp eax, edi
je 0x4186a9
cmp byte [0x48fe4c], 3
je 0x418685
push 0
push esi
push dword [ebp - 8]
call fcn.0040b5b0
add esp, 0xc
inc edi
cmp edi, 2
mov dword [ebp - 0x14], eax
jge 0x41869d
test eax, eax
je 0x41869d
push dword [ebp - 8]
push esi
call fcn.0040b74c
inc edi
cmp edi, 2
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jge 0x41869d
test eax, eax
jne 0x41866a
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4186a9
mov word [eax], di
cmp dword [ebp - 0x14], edi
jne 0x4186b1
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 0x41860b
lea ecx, [ebp + 8]
call fcn.00402a12
cmp byte [ebp - 1], 1
je 0x4186de
xor esi, esi
jmp 0x418799
push 0xc
lea eax, [esi + ebx*2]
push 0x47d828
push eax
call fcn.004669c0
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp + 8]
push esi
push eax
mov word [ebp - 0x238], di
call fcn.004663ce
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x4186d7
test byte [ebp - 0x268], 0x10
je 0x41877f
cmp word [ebp - 0x23c], 0x2e
jne 0x41873d
cmp word [ebp - 0x23a], di
je 0x41877f
cmp word [ebp - 0x23a], 0x2e
jne 0x41873d
cmp word [ebp - 0x238], di
je 0x41877f
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.004669c0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004184bb
add esp, 0x1c
cmp eax, edi
jne 0x418778
mov dword [ebp - 0x10], edi
mov word [ebp - 0x238], di
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp + 8]
call fcn.00403bb2
test eax, eax
jne 0x41870e
mov esi, dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.00402a12
lea ecx, [ebp - 0x18]
call fcn.0042602e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret