Function at 0x42cd36
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4e508d
call fcn.004afe60
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 0x42cd91
cmp esi, 4
jle 0x42cd91
push str..INF
lea eax, [edi + esi*2 - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42cd91
mov dword [ebp - 0x14], 1
jmp 0x42cd95
and dword [ebp - 0x14], 0
lea eax, [esi + 0x532]
push eax
lea ecx, [ebp - 0x24]
call fcn.00446280
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 0x42ce0e
push eax
inc edi
push 0x324
inc edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, dword [ebp - 0x18]
jmp 0x42ce00
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.0042cd36
add esp, 0x20
test eax, eax
jne 0x42cdf5
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 0x42cdce
mov esi, dword [ebp - 0x1c]
jmp 0x42d032
cmp dword [ebp - 0x14], 0
jne 0x42ce45
cmp byte [ebp - 0xd], 0
lea eax, [ebx + esi*2]
push 0x16
jne 0x42ce35
push str.INF.INF
push eax
call fcn.004b0040
lea eax, [esi + 5]
add esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x42ce60
push 0x4f2270
push eax
call fcn.004b0040
lea eax, [esi + 1]
jmp 0x42ce2d
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x42ce5c
sub eax, edi
inc eax
inc eax
sar eax, 1
jmp 0x42ce30
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.004abdd0
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x42cf5a
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.004b0040
add esp, 0xc
cmp dword [ebp + 0x10], edi
je 0x42ced7
push ebx
push dword [ebp + 0x10]
call fcn.0041f026
test al, al
pop ecx
pop ecx
je 0x42cf42
push ebx
push dword [ebp + 0xc]
call fcn.0042cc22
cmp byte [0x5190c8], 0
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x42cf30
cmp eax, edi
je 0x42cf3a
cmp byte [0x5190e0], 3
je 0x42cf16
push 0
push ebx
push dword [ebp - 0x14]
call fcn.0041ef53
add esp, 0xc
inc edi
cmp edi, 2
mov dword [ebp - 0x20], eax
jge 0x42cf2e
test eax, eax
je 0x42cf2e
push dword [ebp - 0x14]
push ebx
call fcn.0041f108
inc edi
cmp edi, 2
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
jge 0x42cf2e
test eax, eax
jne 0x42cefb
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x42cf3a
mov word [eax], di
cmp dword [ebp - 0x20], edi
jne 0x42cf42
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 0x42ce9c
lea ecx, [ebp + 8]
call fcn.004151cd
cmp byte [ebp - 0xd], 1
je 0x42cf6f
xor esi, esi
jmp 0x42d02a
push 0xc
lea eax, [ebx + esi*2]
push str..
push eax
call fcn.004b0040
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp + 8]
push ebx
push eax
mov word [ebp - 0x244], di
call fcn.004abdd0
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x42cf68
test byte [ebp - 0x274], 0x10
je 0x42d010
cmp word [ebp - 0x248], 0x2e
jne 0x42cfce
cmp word [ebp - 0x246], di
je 0x42d010
cmp word [ebp - 0x246], 0x2e
jne 0x42cfce
cmp word [ebp - 0x244], di
je 0x42d010
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.004b0040
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042cd36
add esp, 0x1c
cmp eax, edi
jne 0x42d009
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x244], di
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp + 8]
call fcn.0041684b
test eax, eax
jne 0x42cf9f
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp + 8]
call fcn.004151cd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0043f290
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret