Function at 0x418d90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42eab3
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa60], ecx
lea eax, [ebp - 0xa14]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x23d], 0
mov dword [ebp - 0x44], 0
push 0x10
push 0x432df8
lea ecx, [ebp - 0x24]
push ecx
call fcn.00407ba0
add esp, 0xc
mov dword [ebp - 0xa18], 0
jmp 0x418e06
mov edx, dword [ebp - 0xa18]
add edx, 1
mov dword [ebp - 0xa18], edx
cmp dword [ebp - 0xa18], 5
jge 0x4190c9
push 0x12
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x418e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetClassDevs_eror__errno___d
call fcn.0042a070
add esp, 8
xor eax, eax
jmp 0x4190cc
mov dword [ebp - 0x40], 0x1c
mov dword [ebp - 0xa1c], 0
jmp 0x418e6f
mov ecx, dword [ebp - 0xa1c]
add ecx, 1
mov dword [ebp - 0xa1c], ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0xa1c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x4190a2
mov dword [ebp - 0xa38], 0x1c
mov eax, dword [ebp - 0x10]
mov dword [eax], 5
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0xa3c]
push edx
push 0x7d0
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x41909d
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.00415fdb
add esp, 4
push str.ven_huawei
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call fcn.00404ea0
add esp, 8
test eax, eax
jne 0x418f1b
push str.ven_vodafone
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
call fcn.00404ea0
add esp, 8
test eax, eax
je 0x41909d
mov byte [ebp - 0x23c], 0
push 0x435318
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.00409b60
add esp, 8
push 0x1f3
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x41909d
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0xa60]
call fcn.00416bb0
mov byte [ebp - 0x23d], al
movsx ecx, byte [ebp - 0x23d]
test ecx, ecx
jne 0x418f7f
jmp 0x418e60
push 0
push 0x1f4
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0xa24]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00415fdb
add esp, 4
push 0
mov edx, dword [ebp - 0xa24]
push edx
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
push 0
push 0x1f4
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0xa40]
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
lea eax, [ebp - 0x23c]
push eax
call fcn.00415fdb
add esp, 4
push str.vid_12d1
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00404ea0
add esp, 8
test eax, eax
je 0x419088
push str.._
lea ecx, [ebp - 0xa5c]
call fcn.004012e0
mov dword [ebp - 4], 0
movzx edx, byte [ebp - 0x23d]
push edx
lea ecx, [ebp - 0xa5c]
call fcn.00406450
push 0x3a
lea ecx, [ebp - 0xa5c]
call fcn.00406450
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa5c]
call fcn.004014a0
push eax
call fcn.00422e80
add esp, 8
lea ecx, [ebp - 0xa5c]
call fcn.004014a0
push eax
push str.Send_SCSI_command_to_driver___s_
call fcn.0042a0d0
add esp, 8
mov dword [ebp - 0x44], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa5c]
call fcn.00401360
jmp 0x41909d
movsx ecx, byte [ebp - 0x23d]
push ecx
push str.__c__drive_is_not_huaweis_card
call fcn.0042a010
add esp, 8
jmp 0x418e60
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp dword [ebp - 0x44], 0
je 0x4190b9
jmp 0x4190c9
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x418df7
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret 4