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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, str._A:
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], 0x5c3a41
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov edi, 0x49ccd8
mov dword [ebp - 0x34], 0x1a
push 0xc
push ebx
push edi
call fcn.0046e3e0
mov al, byte [ebp - 0x2c]
add al, 0x41
mov byte [ebp - 0x2d], al
mov byte [ebp - 0x44], al
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x416703
mov al, byte [ebp - 0x2d]
push ebx
push ebx
push 3
push ebx
push 7
mov byte [ebp - 8], al
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x416703
push ebx
lea eax, [ebp - 0x38]
push eax
push 0xc
push edi
push ebx
push ebx
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x2c]
add edi, 0x14
dec dword [ebp - 0x34]
jne 0x4166a0
push 0x12
push dword [ebp - 0x48]
mov esi, 0x490c28
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
je 0x4168be
lea ecx, [ebp - 0x28]
push ecx
push ebx
push esi
push ebx
mov dword [ebp - 0x34], ebx
push eax
jmp 0x41687c
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x40]
call edi
push dword [ebp - 0x38]
call fcn.0046e0d4
mov esi, eax
pop ecx
mov dword [ebp - 0x3c], esi
cmp esi, ebx
je 0x4168ae
push ebx
lea eax, [ebp - 0x38]
push eax
mov dword [esi], 5
push dword [ebp - 0x38]
lea eax, [ebp - 0x28]
push esi
push eax
push dword [ebp - 0x40]
call edi
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 edi, eax
cmp edi, 0xffffffff
je 0x41689b
push 0xc
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.0046e3e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x2c], ebx
xor eax, eax
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [eax + 0x49ccd8]
jne 0x4167e4
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [eax + 0x49ccdc]
je 0x4167f1
inc dword [ebp - 0x2c]
add eax, 0x14
cmp eax, 0x208
jb 0x4167ce
cmp dword [ebp - 0x2c], 0x1a
je 0x416894
push 0x2c
call fcn.0046e4c4
mov esi, eax
pop ecx
cmp esi, ebx
je 0x41689e
push 0x2c
push ebx
push esi
call fcn.0046e3e0
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x14
lea ecx, [eax + 0x49cce4]
add esp, 0xc
mov dword [esi], 0x2c
mov dword [esi + 0xc], edi
mov dword [esi + 4], 6
cmp dword [ecx], 0xffffffff
jne 0x416859
lea eax, [eax + 0x49cce8]
mov dword [ebp - 0x2c], eax
cmp dword [eax], ebx
jne 0x416859
push ebx
push esi
push dword [ebp - 0x48]
mov dword [ecx], edi
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3c]
call fcn.0046c1c7
inc dword [ebp - 0x34]
pop ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x34]
push 0x490c28
push ebx
push dword [ebp - 0x40]
mov dword [ebp - 0x28], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
cmp eax, 1
je 0x41673c
jmp 0x4168ae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jmp 0x4168a8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3c]
call fcn.0046c1c7
pop ecx
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c1d2
leave
ret