Function at 0x414992
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 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
jne 0x4149df
cmp esi, 4
jle 0x4149df
push str..INF
lea eax, [edi + esi*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4149df
mov dword [ebp - 8], ebx
jmp 0x4149e3
and dword [ebp - 8], 0
lea eax, [esi + 0x532]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042465d
cmp word [edi], 0x5c
mov ebx, dword [ebp - 0x18]
lea eax, [ebx + esi*2 + 0x41a]
mov dword [ebp - 0xc], eax
jne 0x414a58
push eax
inc edi
push 0x324
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, dword [ebp - 0xc]
jmp 0x414a4a
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.00414992
add esp, 0x20
test eax, eax
jne 0x414a3f
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 0x414a18
mov esi, dword [ebp - 0x10]
jmp 0x414c76
cmp dword [ebp - 8], 0
jne 0x414a8f
cmp byte [ebp - 1], 0
lea eax, [ebx + esi*2]
push 0x16
jne 0x414a7f
push str.INF.INF
push eax
call fcn.00461a50
lea eax, [esi + 5]
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x414aaa
push 0x478278
push eax
call fcn.00461a50
lea eax, [esi + 1]
jmp 0x414a77
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x414aa6
sub eax, edi
inc eax
inc eax
sar eax, 1
jmp 0x414a7a
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 ebx
xor edi, edi
push eax
mov dword [ebp + 8], edi
call fcn.00461415
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x414b9f
lea eax, [ebp - 0x23c]
push eax
call fcn.0046176a
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0xc]
lea eax, [ebx + eax*2]
push eax
call fcn.00461a50
add esp, 0x10
cmp dword [ebp + 0x10], edi
je 0x414b1c
push ebx
push dword [ebp + 0x10]
call fcn.0040afb9
test al, al
pop ecx
pop ecx
je 0x414b87
push ebx
push dword [ebp + 0xc]
call fcn.004148a0
cmp byte [0x48ae28], 0
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x414b75
cmp eax, edi
je 0x414b7f
cmp byte [0x48ae40], 3
je 0x414b5b
push 0
push ebx
push dword [ebp - 8]
call fcn.0040aee6
add esp, 0xc
inc edi
cmp edi, 2
mov dword [ebp - 0x14], eax
jge 0x414b73
test eax, eax
je 0x414b73
push dword [ebp - 8]
push ebx
call fcn.0040b082
inc edi
cmp edi, 2
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jge 0x414b73
test eax, eax
jne 0x414b40
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x414b7f
mov word [eax], di
cmp dword [ebp - 0x14], edi
jne 0x414b87
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 0x414ae2
lea ecx, [ebp + 8]
call fcn.0040291f
cmp byte [ebp - 1], 1
je 0x414bb4
xor esi, esi
jmp 0x414c6e
push 0xc
lea eax, [ebx + esi*2]
push str..
push eax
call fcn.00461a50
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp + 8]
push ebx
push eax
mov word [ebp - 0x238], di
call fcn.00461415
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x414bad
test byte [ebp - 0x268], 0x10
je 0x414c54
cmp word [ebp - 0x23c], 0x2e
jne 0x414c13
cmp word [ebp - 0x23a], di
je 0x414c54
cmp word [ebp - 0x23a], 0x2e
jne 0x414c13
cmp word [ebp - 0x238], di
je 0x414c54
lea eax, [ebp - 0x23c]
push eax
call fcn.0046176a
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebx + esi*2 + 2]
push eax
call fcn.00461a50
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414992
add esp, 0x20
cmp eax, edi
jne 0x414c4d
mov dword [ebp - 0x10], edi
mov word [ebp - 0x238], di
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp + 8]
call fcn.00403a09
test eax, eax
jne 0x414be4
mov esi, dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.0040291f
lea ecx, [ebp - 0x18]
call fcn.00424686
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret