Function at 0x40c6e0
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x42087b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x40c7f8
xor ebx, ebx
push 0xff
lea eax, [esp + 0x51]
push ebx
push eax
mov byte [esp + 0x58], bl
call fcn.004183e0
push 0xff
lea ecx, [esp + 0x5c]
push esi
push ecx
call fcn.00413040
push 0xff
lea edx, [esp + 0x169]
push ebx
push edx
mov byte [esp + 0x170], bl
call fcn.004183e0
lea eax, [esp + 0x70]
push eax
push str.._s
lea ecx, [esp + 0x178]
push 0xff
push ecx
call fcn.00412f8d
add esp, 0x34
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x40c932
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 8
lea ecx, [esp + 0x24]
push ecx
push 0xc
lea edx, [esp + 0x38]
push edx
push 0x2d1400
push edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], ebx
call ebp
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x40c7ff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40c932
push eax
call fcn.00412dc7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40c7f1
mov eax, dword [esp + 0x1c]
push eax
push ebx
push esi
call fcn.004183e0
mov edx, dword [esp + 0x28]
add esp, 0xc
push ebx
lea ecx, [esp + 0x24]
push ecx
push edx
push esi
push 0xc
lea eax, [esp + 0x38]
push eax
push 0x2d1400
push edi
call ebp
cmp eax, ebx
jne 0x40c853
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00412cea
add esp, 4
xor eax, eax
jmp 0x40c932
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x258], ebx
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00412dc7
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x40c89d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00412cea
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00401570
xor eax, eax
jmp 0x40c932
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ebp
call fcn.004183e0
mov eax, dword [esi + 0xc]
add esp, 0xc
cmp eax, ebx
je 0x40c90e
lea ecx, [eax + esi]
mov edx, ebp
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x40c8b8
push ebp
call fcn.00412c85
add esp, 4
lea ecx, [esp + 0x30]
push ecx
mov edx, eax
call fcn.004015a0
lea edx, [esp + 0x30]
push edx
mov edx, str.huawei
call fcn.00401680
cmp eax, 0xffffffff
jne 0x40c90e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00412cea
push ebp
call fcn.00412cea
add esp, 8
lea ecx, [esp + 0x30]
call fcn.00401570
xor eax, eax
jmp 0x40c932
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00412cea
push ebp
call fcn.00412cea
add esp, 8
lea ecx, [esp + 0x30]
call fcn.00401570
mov eax, 1
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00412899
add esp, 0x248
ret