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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e3da
mov eax, dword fs:[0]
push eax
sub esp, 0x260
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 - 0x228], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x424c7f
mov eax, dword [ebp - 0x228]
jmp 0x424fff
mov byte [ebp - 0x114], 0
push 0xff
push 0
lea ecx, [ebp - 0x113]
push ecx
call fcn.004097d0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.00409b50
add esp, 8
lea ecx, [ebp - 0x114]
push ecx
call fcn.00409690
add esp, 4
mov byte [ebp + eax - 0x115], 0
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x21c], 0
push 0xff
push 0
lea edx, [ebp - 0x21b]
push edx
call fcn.004097d0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push str.._s
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00409cd8
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x424d3e
mov eax, dword [ebp - 0x228]
jmp 0x424fff
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
push 8
push 0
lea eax, [ebp - 0x25c]
push eax
call fcn.004097d0
add esp, 0xc
mov dword [ebp - 0x118], 0
push 0
lea ecx, [ebp - 0x118]
push ecx
push 8
lea edx, [ebp - 0x25c]
push edx
push 0xc
lea eax, [ebp - 0x234]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x258], 0
jne 0x424dc3
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x424fff
mov eax, dword [ebp - 0x258]
push eax
call fcn.004099f8
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x424df3
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x424fff
mov edx, dword [ebp - 0x258]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.004097d0
add esp, 0xc
push 0
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0xc
lea ecx, [ebp - 0x234]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x424e6a
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040984a
add esp, 4
mov eax, dword [ebp - 0x228]
jmp 0x424fff
lea ecx, [ebp - 0x250]
call fcn.004012b0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x258]
push edx
call fcn.004099f8
add esp, 4
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x424edc
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040984a
add esp, 4
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00401360
mov eax, dword [ebp - 0x264]
jmp 0x424fff
mov eax, dword [ebp - 0x258]
push eax
push 0
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.004097d0
add esp, 0xc
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc], 0
je 0x424fa9
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x260]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x220]
push eax
call fcn.00409b50
add esp, 8
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.00415fdb
add esp, 4
push eax
lea ecx, [ebp - 0x250]
call fcn.004013a0
push 0
push str.huawei
lea ecx, [ebp - 0x250]
call fcn.004014c0
cmp dword [0x43be10], eax
jne 0x424fa9
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040984a
add esp, 4
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.0040984a
add esp, 4
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00401360
mov eax, dword [ebp - 0x268]
jmp 0x424fff
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040984a
add esp, 4
mov edx, dword [ebp - 0x220]
push edx
call fcn.0040984a
add esp, 4
mov dword [ebp - 0x228], 1
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00401360
mov eax, dword [ebp - 0x26c]
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