Function at 0x42667a
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str._A:
mov dword [ebp - 0x50], ecx
lea edi, [ebp - 0xc]
mov dword [ebp - 0x4c], 0x5c3a41
xor ebx, ebx
mov dword [ebp - 0x44], 0x1a
mov dword [ebp - 0x40], ebx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x38], ebx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x52e740
push 0xc
push ebx
push esi
call fcn.0049ef70
mov al, byte [ebp - 0x38]
add esp, 0xc
add al, 0x41
mov byte [ebp - 0x39], al
mov byte [ebp - 0x4c], al
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x42671a
mov al, byte [ebp - 0x39]
push ebx
push ebx
push 3
push ebx
push 7
mov byte [ebp - 8], al
lea eax, [ebp - 0xc]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42671a
push ebx
lea eax, [ebp - 0x40]
push eax
push 0xc
push esi
push ebx
push ebx
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x38]
add esi, 0x14
sub dword [ebp - 0x44], 1
jne 0x4266b7
push 0x12
push dword [ebp - 0x50]
mov esi, 0x4f6620
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
mov dword [ebp - 0x58], edi
cmp edi, 0xffffffff
je 0x4268cd
lea eax, [ebp - 0x34]
mov dword [ebp - 0x54], ebx
push eax
push ebx
push esi
jmp 0x426896
push ebx
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push dword [ebp - 0x40]
call fcn.0049da2e
mov esi, eax
pop ecx
test esi, esi
je 0x4268c3
push ebx
lea eax, [ebp - 0x40]
mov dword [esi], 5
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push esi
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
je 0x4268b9
push 0xc
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0049ef70
add esp, 0xc
lea eax, [ebp - 0x40]
push ebx
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x2d1080
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
mov edi, dword [ebp - 0x18]
mov eax, ebx
cmp edi, dword [eax + 0x52e740]
jne 0x4267f9
cmp edx, dword [eax + 0x52e744]
je 0x426804
add eax, 0x14
inc ecx
cmp eax, 0x208
jb 0x4267e9
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x44], ecx
cmp ecx, 0x1a
je 0x4268b0
push 0x2c
call fcn.0049da45
push 0x2c
push ebx
push eax
mov dword [ebp - 0x48], eax
call fcn.0049ef70
imul edx, dword [ebp - 0x44], 0x14
add esp, 0x10
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
mov dword [ecx], 0x2c
mov dword [ecx + 0xc], eax
mov dword [ecx + 4], 6
cmp dword [edx + 0x52e74c], 0xffffffff
mov dword [ebp - 0x48], edx
jne 0x426874
cmp dword [edx + 0x52e750], ebx
jne 0x426874
push ebx
push ecx
push dword [ebp - 0x50]
mov dword [edx + 0x52e74c], eax
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x52e750], eax
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push esi
call fcn.0049da37
mov eax, dword [ebp - 0x54]
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
inc eax
push ecx
push eax
mov dword [ebp - 0x54], eax
push 0x4f6620
push ebx
push edi
mov dword [ebp - 0x34], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
cmp eax, 1
je 0x426754
jmp 0x4268c3
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push esi
call fcn.0049da37
pop ecx
pop ecx
xor ebx, ebx
push edi
inc ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret