Function at 0x434990
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2cfc
call fcn.004a04d0
mov eax, dword [0x5f44b0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2cfc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x4349cd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jge 0x434d5f
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp - 4]
push ecx
push 0x596ba8
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x434a29
jmp 0x4349c4
mov dword [ebp - 0x2938], 0
push 0xc
push 0
lea ecx, [ebp - 0x2934]
push ecx
call fcn.0049e690
add esp, 0xc
mov dword [ebp - 0x2934], 0
mov dword [ebp - 0x2930], 0
push 0x2710
push 0
lea edx, [ebp - 0x2928]
push edx
call fcn.0049e690
add esp, 0xc
push 0
lea eax, [ebp - 0x2938]
push eax
push 0x2710
lea ecx, [ebp - 0x2928]
push ecx
push 0xc
lea edx, [ebp - 0x2934]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x434d2d
lea ecx, [ebp - 0x2928]
mov dword [ebp - 0x2a3c], ecx
mov byte [ebp - 0x2b40], 0
push 0x7f
push 0
lea edx, [ebp - 0x2b3f]
push edx
call fcn.0049e690
add esp, 0xc
mov byte [ebp - 0x2a38], 0
push 0x7f
push 0
lea eax, [ebp - 0x2a37]
push eax
call fcn.0049e690
add esp, 0xc
mov byte [ebp - 0x2ac0], 0
push 0x7f
push 0
lea ecx, [ebp - 0x2abf]
push ecx
call fcn.0049e690
add esp, 0xc
mov byte [ebp - 0x29b8], 0
push 0x7f
push 0
lea edx, [ebp - 0x29b7]
push edx
call fcn.0049e690
add esp, 0xc
lea eax, [ebp - 0x2ac0]
push eax
push 0
mov ecx, dword [ebp - 0x2a3c]
mov edx, dword [ecx + 0xc]
push edx
lea eax, [ebp - 0x2928]
push eax
mov ecx, dword [ebp - 0x2cfc]
call fcn.00434230
lea ecx, [ebp - 0x2a38]
push ecx
push 0
mov edx, dword [ebp - 0x2a3c]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x2928]
push ecx
mov ecx, dword [ebp - 0x2cfc]
call fcn.00434230
lea edx, [ebp - 0x29b8]
push edx
push 0
mov eax, dword [ebp - 0x2a3c]
mov ecx, dword [eax + 0x14]
push ecx
lea edx, [ebp - 0x2928]
push edx
mov ecx, dword [ebp - 0x2cfc]
call fcn.00434230
lea eax, [ebp - 0x2b40]
push eax
push 1
mov ecx, dword [ebp - 0x2a3c]
mov edx, dword [ecx + 0x18]
push edx
lea eax, [ebp - 0x2928]
push eax
mov ecx, dword [ebp - 0x2cfc]
call fcn.00434230
lea ecx, [ebp - 0x2cf0]
call fcn.00435980
lea ecx, [ebp - 0x2ac0]
push ecx
call fcn.0049e390
add esp, 4
test eax, eax
jbe 0x434be4
lea edx, [ebp - 0x2ac0]
push edx
lea eax, [ebp - 0x2cc8]
push eax
call fcn.0049ea30
add esp, 8
lea ecx, [ebp - 0x2a38]
push ecx
call fcn.0049e390
add esp, 4
test eax, eax
jbe 0x434c0d
lea edx, [ebp - 0x2a38]
push edx
lea eax, [ebp - 0x2cc8]
push eax
call fcn.0049ea40
add esp, 8
lea ecx, [ebp - 0x29b8]
push ecx
lea edx, [ebp - 0x2bc8]
push edx
call fcn.0049ea30
add esp, 8
lea eax, [ebp - 0x2b40]
push eax
lea ecx, [ebp - 0x2c48]
push ecx
call fcn.0049ea30
add esp, 8
lea edx, [ebp - 0x2c48]
push edx
mov ecx, dword [ebp - 0x2cfc]
call fcn.00435270
lea eax, [ebp - 0x2cc8]
push eax
mov ecx, dword [ebp - 0x2cfc]
call fcn.00435270
lea ecx, [ebp - 0x2bc8]
push ecx
mov ecx, dword [ebp - 0x2cfc]
call fcn.00435270
push 0x2710
push 0
lea edx, [ebp - 0x2928]
push edx
call fcn.0049e690
add esp, 0xc
push 0
lea eax, [ebp - 0x2938]
push eax
push 0x2710
lea ecx, [ebp - 0x2928]
push ecx
push 0
push 0
push 0x700a0
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x434cbb
jmp 0x4349c4
lea eax, [ebp - 0x2928]
mov dword [ebp - 0x2cf4], eax
mov ecx, dword [ebp - 0x2cf4]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x2cf0], edx
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x2cec], eax
mov ecx, dword [ebp - 0x2cf4]
cmp dword [ecx + 8], 0xc
jne 0x434cf7
mov dword [ebp - 0x2b48], 2
jmp 0x434d19
mov edx, dword [ebp - 0x2cf4]
cmp dword [edx + 8], 0xc
jne 0x434d0f
mov dword [ebp - 0x2b48], 1
jmp 0x434d19
mov dword [ebp - 0x2b48], 0
lea eax, [ebp - 0x2cf0]
push eax
mov ecx, dword [ebp - 0x2cfc]
call fcn.00435720
jmp 0x434d4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cf8], eax
mov ecx, dword [ebp - 0x2cf8]
push ecx
push str._nDeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
call fcn.004a496d
add esp, 8
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4349c4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0049e381
mov esp, ebp
pop ebp
ret