Function at 0x42d742
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4e9310
call fcn.004b48a0
sub esp, 0x268
mov al, byte [ebp + 0x14]
push ebx
mov bl, al
and al, 0xf
push esi
mov byte [ebp - 0xd], al
push edi
mov edi, dword [ebp + 8]
xor eax, eax
inc eax
push edi
and bl, 0xf0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test bl, bl
mov esi, eax
jne 0x42d79d
cmp esi, 4
jle 0x42d79d
push str..INF
lea eax, [edi + esi*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42d79d
mov dword [ebp - 0x14], 1
jmp 0x42d7a1
and dword [ebp - 0x14], 0
lea eax, [esi + 0x532]
push eax
lea ecx, [ebp - 0x24]
call fcn.004494b0
mov ebx, dword [ebp - 0x24]
and dword [ebp - 4], 0
cmp word [edi], 0x5c
lea eax, [ebx + esi*2 + 0x41a]
mov dword [ebp - 0x18], eax
jne 0x42d81a
push eax
inc edi
push 0x324
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, dword [ebp - 0x18]
jmp 0x42d80c
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.0042d742
add esp, 0x20
test eax, eax
jne 0x42d801
and dword [ebp - 0x1c], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x42d7da
mov esi, dword [ebp - 0x1c]
jmp 0x42da3e
cmp dword [ebp - 0x14], 0
jne 0x42d851
cmp byte [ebp - 0xd], 0
lea eax, [ebx + esi*2]
push 0x16
jne 0x42d841
push str.INF.INF
push eax
call fcn.004b4dd0
lea eax, [esi + 5]
add esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x42d86c
push 0x4f6218
push eax
call fcn.004b4dd0
lea eax, [esi + 1]
jmp 0x42d839
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x42d868
sub eax, edi
inc eax
inc eax
sar eax, 1
jmp 0x42d83c
and dword [ebp - 0x18], 0
and dword [ebp - 0x274], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x270]
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp + 8], edi
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp + 8]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.004b0bc0
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x42d966
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x18]
lea eax, [ebx + eax*2]
push eax
call fcn.004b4dd0
add esp, 0xc
cmp dword [ebp + 0x10], edi
je 0x42d8e3
push ebx
push dword [ebp + 0x10]
call fcn.00420a60
test al, al
pop ecx
pop ecx
je 0x42d94e
push ebx
push dword [ebp + 0xc]
call fcn.0042d62e
cmp byte [0x51d218], 0
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x42d93c
cmp eax, edi
je 0x42d946
cmp byte [0x51d230], 3
je 0x42d922
push 0
push ebx
push dword [ebp - 0x14]
call fcn.0042098d
add esp, 0xc
inc edi
cmp edi, 2
mov dword [ebp - 0x20], eax
jge 0x42d93a
test eax, eax
je 0x42d93a
push dword [ebp - 0x14]
push ebx
call fcn.00420b42
inc edi
cmp edi, 2
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
jge 0x42d93a
test eax, eax
jne 0x42d907
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x42d946
mov word [eax], di
cmp dword [ebp - 0x20], edi
jne 0x42d94e
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x274]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42d8a8
lea ecx, [ebp + 8]
call fcn.004165bb
cmp byte [ebp - 0xd], 1
je 0x42d97b
xor esi, esi
jmp 0x42da36
push 0xc
lea eax, [ebx + esi*2]
push str..
push eax
call fcn.004b4dd0
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp + 8]
push ebx
push eax
mov word [ebp - 0x244], di
call fcn.004b0bc0
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x42d974
test byte [ebp - 0x274], 0x10
je 0x42da1c
cmp word [ebp - 0x248], 0x2e
jne 0x42d9da
cmp word [ebp - 0x246], di
je 0x42da1c
cmp word [ebp - 0x246], 0x2e
jne 0x42d9da
cmp word [ebp - 0x244], di
je 0x42da1c
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebx + esi*2 + 2]
push eax
call fcn.004b4dd0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042d742
add esp, 0x1c
cmp eax, edi
jne 0x42da15
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x244], di
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp + 8]
call fcn.00417ee4
test eax, eax
jne 0x42d9ab
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp + 8]
call fcn.004165bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00443880
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret