Function at 0x438820
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7a6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x730
mov eax, dword [0x4fb770]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x6f4], ecx
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x4b8], 0x1c
lea eax, [ebp - 0x4b8]
push eax
mov ecx, dword [ebp - 0x6f4]
mov edx, dword [ecx + 0x40]
push edx
push 0x4d47f8
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], 0
jne 0x4388b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4bc], eax
or eax, 0xffffffff
jmp 0x439497
push 0
lea ecx, [ebp - 0x4c8]
push ecx
push 0
push 0
lea edx, [ebp - 0x4b8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], 0
jne 0x438903
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4bc], eax
cmp dword [ebp - 0x4bc], 0x7a
je 0x438903
or eax, 0xffffffff
jmp 0x439497
mov ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x280], ecx
mov edx, dword [ebp - 0x280]
push edx
call fcn.004ba5ca
add esp, 4
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp - 0x4cc]
mov dword [ebp - 0x49c], eax
cmp dword [ebp - 0x49c], 0
jne 0x438943
mov eax, 0xfffffffe
jmp 0x439497
mov ecx, dword [ebp - 0x49c]
mov dword [ecx], 6
push 0
lea edx, [ebp - 0x4c8]
push edx
mov eax, dword [ebp - 0x280]
push eax
mov ecx, dword [ebp - 0x49c]
push ecx
lea edx, [ebp - 0x4b8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], 0
jne 0x43898e
or eax, 0xffffffff
jmp 0x439497
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x49c]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x49c]
mov dword [ebp - 0x4d0], edx
mov eax, dword [ebp - 0x4d0]
push eax
call fcn.004ba5c5
add esp, 4
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4389db
mov eax, 0xfffffffe
jmp 0x439497
mov dword [ebp - 0x498], 1
mov dword [ebp - 0x494], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x200
lea edx, [ebp - 0x484]
push edx
push 0xc
lea eax, [ebp - 0x498]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], 0
jne 0x438a3c
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x439497
lea eax, [ebp - 0x484]
mov dword [ebp - 0x4c4], eax
mov ecx, dword [ebp - 0x4c4]
mov edx, dword [ecx + 0x18]
and edx, 0xff
cmp edx, 1
je 0x438a70
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x439497
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x200
lea edx, [ebp - 0x484]
push edx
push 0xc
lea eax, [ebp - 0x498]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], 0
jne 0x438abf
jmp 0x438ae7
lea edx, [ebp - 0x484]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 0xa]
test ecx, ecx
je 0x438ae7
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x439497
push 0x250
push 0
lea eax, [ebp - 0x274]
push eax
call fcn.0049db40
add esp, 0xc
mov word [ebp - 0x274], 0x2c
mov byte [ebp - 0x271], 0
mov byte [ebp - 0x270], 1
mov byte [ebp - 0x26f], 0
mov byte [ebp - 0x26e], 6
mov byte [ebp - 0x26d], 0x18
mov byte [ebp - 0x26c], 1
mov dword [ebp - 0x268], 0xc0
mov dword [ebp - 0x264], 2
mov dword [ebp - 0x260], 0x50
mov dword [ebp - 0x25c], 0x30
mov byte [ebp - 0x258], 0x12
mov byte [ebp - 0x254], 0xc0
mov ecx, dword [ebp - 0x268]
add ecx, 0x50
mov dword [ebp - 0x278], ecx
push 0
lea edx, [ebp - 0x284]
push edx
mov eax, dword [ebp - 0x278]
push eax
lea ecx, [ebp - 0x274]
push ecx
push 0x2c
lea edx, [ebp - 0x274]
push edx
push 0x4d004
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], 0
jne 0x438bc7
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x439497
movzx edx, byte [ebp - 0x272]
test edx, edx
je 0x438be6
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x439497
movzx ecx, byte [ebp - 0x224]
and ecx, 0x1f
mov byte [ebp - 0x485], cl
movzx edx, byte [ebp - 0x485]
test edx, edx
je 0x438c15
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x439497
call fcn.004ba5ee
mov dword [ebp - 0x510], eax
mov ecx, dword [ebp - 0x510]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x510]
call dword [edx + 0xc]
mov dword [ebp - 0x50c], eax
mov eax, dword [ebp - 0x50c]
add eax, 0x10
mov dword [ebp - 0x48c], eax
mov dword [ebp - 4], 0
push 0x4cfe18
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x18
push ecx
lea edx, [ebp - 0x4d4]
push edx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x6f8], eax
mov eax, dword [ebp - 0x6f8]
mov dword [ebp - 0x51c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x51c]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x514], eax
mov ecx, dword [ebp - 0x51c]
mov edx, dword [ecx]
mov dword [ebp - 0x518], edx
mov eax, dword [ebp - 0x514]
push eax
mov ecx, dword [ebp - 0x518]
push ecx
mov ecx, 0x4fe16c
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4d4]
call fcn.0044f730
push 0x4d48d8
lea edx, [ebp - 0x48c]
push edx
call fcn.00419400
add esp, 8
lea eax, [ebp - 0x48c]
push eax
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x18
push ecx
lea edx, [ebp - 0x4d8]
push edx
call fcn.00419430
add esp, 0xc
mov dword [ebp - 0x6fc], eax
mov eax, dword [ebp - 0x6fc]
mov dword [ebp - 0x52c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x52c]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x524], eax
mov ecx, dword [ebp - 0x52c]
mov edx, dword [ecx]
mov dword [ebp - 0x528], edx
mov eax, dword [ebp - 0x524]
push eax
mov ecx, dword [ebp - 0x528]
push ecx
mov ecx, 0x4fe16c
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4d8]
call fcn.0044f730
mov edx, dword [ebp - 0x6f4]
add edx, 0x1c
mov dword [ebp - 0x538], edx
mov eax, 0x4cd9d4
test eax, eax
jne 0x438d7b
mov dword [ebp - 0x534], 0
jmp 0x438d8e
push 0x4cd9d4
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x534], eax
mov ecx, dword [ebp - 0x534]
push ecx
push 0x4cd9d4
mov ecx, dword [ebp - 0x538]
call fcn.004023c0
mov dword [ebp - 0x27c], 8
jmp 0x438dc0
mov edx, dword [ebp - 0x27c]
add edx, 1
mov dword [ebp - 0x27c], edx
cmp dword [ebp - 0x27c], 0xf
ja 0x438e01
mov eax, dword [ebp - 0x27c]
mov cl, byte [ebp + eax - 0x224]
mov byte [ebp - 0x549], cl
mov edx, dword [ebp - 0x6f4]
add edx, 0x1c
mov dword [ebp - 0x550], edx
movsx ax, byte [ebp - 0x549]
push eax
mov ecx, dword [ebp - 0x550]
call fcn.004198f0
jmp 0x438db1
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x20
mov dword [ebp - 0x558], ecx
mov edx, 0x4cd9d4
test edx, edx
jne 0x438e25
mov dword [ebp - 0x554], 0
jmp 0x438e38
push 0x4cd9d4
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x554], eax
mov eax, dword [ebp - 0x554]
push eax
push 0x4cd9d4
mov ecx, dword [ebp - 0x558]
call fcn.004023c0
mov dword [ebp - 0x27c], 0x10
jmp 0x438e6a
mov ecx, dword [ebp - 0x27c]
add ecx, 1
mov dword [ebp - 0x27c], ecx
cmp dword [ebp - 0x27c], 0x1f
ja 0x438eab
mov edx, dword [ebp - 0x27c]
mov al, byte [ebp + edx - 0x224]
mov byte [ebp - 0x569], al
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x20
mov dword [ebp - 0x570], ecx
movsx dx, byte [ebp - 0x569]
push edx
mov ecx, dword [ebp - 0x570]
call fcn.004198f0
jmp 0x438e5b
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x1c
call fcn.00419520
mov ecx, eax
call fcn.004195b0
push eax
push 0x4d0520
lea eax, [ebp - 0x4dc]
push eax
call fcn.00401950
add esp, 0xc
mov dword [ebp - 0x700], eax
mov ecx, dword [ebp - 0x700]
mov dword [ebp - 0x704], ecx
mov byte [ebp - 4], 3
push 0x4d3f6c
mov edx, dword [ebp - 0x704]
push edx
lea eax, [ebp - 0x4e0]
push eax
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x708], eax
mov ecx, dword [ebp - 0x708]
mov dword [ebp - 0x70c], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x20
call fcn.00419520
mov ecx, eax
call fcn.004195b0
push eax
mov edx, dword [ebp - 0x70c]
push edx
lea eax, [ebp - 0x4e4]
push eax
call fcn.00419430
add esp, 0xc
mov dword [ebp - 0x710], eax
mov ecx, dword [ebp - 0x710]
mov dword [ebp - 0x714], ecx
mov byte [ebp - 4], 5
push 0x4cfe18
mov edx, dword [ebp - 0x714]
push edx
lea eax, [ebp - 0x4e8]
push eax
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x718], eax
mov ecx, dword [ebp - 0x718]
mov dword [ebp - 0x574], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x574]
push edx
lea ecx, [ebp - 0x48c]
call fcn.00402240
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4e8]
call fcn.0044f730
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4e4]
call fcn.0044f730
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4e0]
call fcn.0044f730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4dc]
call fcn.0044f730
lea eax, [ebp - 0x48c]
push eax
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x18
push ecx
lea edx, [ebp - 0x4ec]
push edx
call fcn.00419430
add esp, 0xc
mov dword [ebp - 0x71c], eax
mov eax, dword [ebp - 0x71c]
mov dword [ebp - 0x5a4], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x5a4]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x588], eax
mov ecx, dword [ebp - 0x5a4]
mov edx, dword [ecx]
mov dword [ebp - 0x58c], edx
mov eax, dword [ebp - 0x588]
push eax
mov ecx, dword [ebp - 0x58c]
push ecx
mov ecx, 0x4fe16c
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ec]
call fcn.0044f730
mov edx, dword [ebp - 0x6f4]
add edx, 0x28
mov dword [ebp - 0x5c4], edx
mov eax, 0x4cd9d4
test eax, eax
jne 0x43907d
mov dword [ebp - 0x5ac], 0
jmp 0x439090
push 0x4cd9d4
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x5ac], eax
mov ecx, dword [ebp - 0x5ac]
push ecx
push 0x4cd9d4
mov ecx, dword [ebp - 0x5c4]
call fcn.004023c0
mov dword [ebp - 0x27c], 0x20
jmp 0x4390c2
mov edx, dword [ebp - 0x27c]
add edx, 1
mov dword [ebp - 0x27c], edx
cmp dword [ebp - 0x27c], 0x23
ja 0x439103
mov eax, dword [ebp - 0x27c]
mov cl, byte [ebp + eax - 0x224]
mov byte [ebp - 0x5d5], cl
mov edx, dword [ebp - 0x6f4]
add edx, 0x28
mov dword [ebp - 0x5dc], edx
movsx ax, byte [ebp - 0x5d5]
push eax
mov ecx, dword [ebp - 0x5dc]
call fcn.004198f0
jmp 0x4390b3
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x28
call fcn.00419520
mov ecx, eax
call fcn.004195b0
push eax
push 0x4d48c0
lea ecx, [ebp - 0x4f0]
push ecx
call fcn.00401950
add esp, 0xc
mov dword [ebp - 0x720], eax
mov edx, dword [ebp - 0x720]
mov dword [ebp - 0x724], edx
mov byte [ebp - 4], 8
push 0x4cfe18
mov eax, dword [ebp - 0x724]
push eax
lea ecx, [ebp - 0x4f4]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x728], eax
mov edx, dword [ebp - 0x728]
mov dword [ebp - 0x608], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x608]
push eax
lea ecx, [ebp - 0x48c]
call fcn.00402240
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4f4]
call fcn.0044f730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f0]
call fcn.0044f730
lea ecx, [ebp - 0x48c]
push ecx
mov edx, dword [ebp - 0x6f4]
add edx, 0x18
push edx
lea eax, [ebp - 0x4f8]
push eax
call fcn.00419430
add esp, 0xc
mov dword [ebp - 0x72c], eax
mov ecx, dword [ebp - 0x72c]
mov dword [ebp - 0x630], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x630]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x614], ecx
mov edx, dword [ebp - 0x630]
mov eax, dword [edx]
mov dword [ebp - 0x618], eax
mov ecx, dword [ebp - 0x614]
push ecx
mov edx, dword [ebp - 0x618]
push edx
mov ecx, 0x4fe16c
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f8]
call fcn.0044f730
mov eax, dword [ebp - 0x6f4]
add eax, 0x24
mov dword [ebp - 0x650], eax
mov ecx, 0x4cd9d4
test ecx, ecx
jne 0x439244
mov dword [ebp - 0x638], 0
jmp 0x439257
push 0x4cd9d4
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0x638], eax
mov edx, dword [ebp - 0x638]
push edx
push 0x4cd9d4
mov ecx, dword [ebp - 0x650]
call fcn.004023c0
mov dword [ebp - 0x27c], 0x24
jmp 0x439289
mov eax, dword [ebp - 0x27c]
add eax, 1
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0x37
ja 0x4392ca
mov ecx, dword [ebp - 0x27c]
mov dl, byte [ebp + ecx - 0x224]
mov byte [ebp - 0x671], dl
mov eax, dword [ebp - 0x6f4]
add eax, 0x24
mov dword [ebp - 0x678], eax
movsx cx, byte [ebp - 0x671]
push ecx
mov ecx, dword [ebp - 0x678]
call fcn.004198f0
jmp 0x43927a
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x24
call fcn.00419520
mov ecx, eax
call fcn.004195b0
push eax
push 0x4d050c
lea edx, [ebp - 0x4fc]
push edx
call fcn.00401950
add esp, 0xc
mov dword [ebp - 0x730], eax
mov eax, dword [ebp - 0x730]
mov dword [ebp - 0x734], eax
mov byte [ebp - 4], 0xb
push 0x4cfe18
mov ecx, dword [ebp - 0x734]
push ecx
lea edx, [ebp - 0x500]
push edx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x738], eax
mov eax, dword [ebp - 0x738]
mov dword [ebp - 0x6b4], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x6b4]
push ecx
lea ecx, [ebp - 0x48c]
call fcn.00402240
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x500]
call fcn.0044f730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4fc]
call fcn.0044f730
lea edx, [ebp - 0x48c]
push edx
mov eax, dword [ebp - 0x6f4]
add eax, 0x18
push eax
lea ecx, [ebp - 0x504]
push ecx
call fcn.00419430
add esp, 0xc
mov dword [ebp - 0x73c], eax
mov edx, dword [ebp - 0x73c]
mov dword [ebp - 0x6e8], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x6e8]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x6c0], edx
mov eax, dword [ebp - 0x6e8]
mov ecx, dword [eax]
mov dword [ebp - 0x6c4], ecx
mov edx, dword [ebp - 0x6c0]
push edx
mov eax, dword [ebp - 0x6c4]
push eax
mov ecx, 0x4fe16c
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x504]
call fcn.0044f730
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x6f4]
call fcn.004397d0
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x6f4]
call fcn.00439600
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x6f4]
call fcn.00439a40
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x6f4]
call fcn.00439cd0
test eax, eax
je 0x43945f
mov edx, dword [ebp - 0x6f4]
mov byte [edx + 0x2c], 0xff
mov eax, 0xff
test eax, eax
je 0x439450
mov ecx, dword [ebp - 0x6f4]
mov dword [ecx + 0x44], 0
jmp 0x43945d
mov edx, dword [ebp - 0x6f4]
mov dword [edx + 0x44], 1
jmp 0x43946c
mov eax, dword [ebp - 0x6f4]
mov dword [eax + 0x44], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x508], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.0044f730
mov eax, dword [ebp - 0x508]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x20]
call fcn.0049d184
mov esp, ebp
pop ebp
ret 4