Function at 0x4378b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c318a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x730
mov eax, dword [0x4f66e0]
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 + 0x30]
push edx
push 0x4cf4b0
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 0x437949
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4bc], eax
or eax, 0xffffffff
jmp 0x438527
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 0x437993
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4bc], eax
cmp dword [ebp - 0x4bc], 0x7a
je 0x437993
or eax, 0xffffffff
jmp 0x438527
mov ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x280], ecx
mov edx, dword [ebp - 0x280]
push edx
call fcn.004b5d20
add esp, 4
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp - 0x4cc]
mov dword [ebp - 0x49c], eax
cmp dword [ebp - 0x49c], 0
jne 0x4379d3
mov eax, 0xfffffffe
jmp 0x438527
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 0x437a1e
or eax, 0xffffffff
jmp 0x438527
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.004b5d1b
add esp, 4
cmp dword [ebp - 0x14], 0xffffffff
jne 0x437a6b
mov eax, 0xfffffffe
jmp 0x438527
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 0x437acc
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x438527
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 0x437b00
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x438527
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 0x437b4f
jmp 0x437b77
lea edx, [ebp - 0x484]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 0xa]
test ecx, ecx
je 0x437b77
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x438527
push 0x250
push 0
lea eax, [ebp - 0x274]
push eax
call fcn.00499140
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 0x437c57
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x438527
movzx edx, byte [ebp - 0x272]
test edx, edx
je 0x437c76
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x438527
movzx ecx, byte [ebp - 0x224]
and ecx, 0x1f
mov byte [ebp - 0x485], cl
movzx edx, byte [ebp - 0x485]
test edx, edx
je 0x437ca5
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x438527
call fcn.004b5d44
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 0x4cae00
mov ecx, dword [ebp - 0x6f4]
add ecx, 8
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, 0x4f912c
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4d4]
call fcn.0044e670
push 0x4cf590
lea edx, [ebp - 0x48c]
push edx
call fcn.004193e0
add esp, 8
lea eax, [ebp - 0x48c]
push eax
mov ecx, dword [ebp - 0x6f4]
add ecx, 8
push ecx
lea edx, [ebp - 0x4d8]
push edx
call fcn.00419410
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, 0x4f912c
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4d8]
call fcn.0044e670
mov edx, dword [ebp - 0x6f4]
add edx, 0xc
mov dword [ebp - 0x538], edx
mov eax, 0x4c89d4
test eax, eax
jne 0x437e0b
mov dword [ebp - 0x534], 0
jmp 0x437e1e
push 0x4c89d4
call fcn.0049873d
add esp, 4
mov dword [ebp - 0x534], eax
mov ecx, dword [ebp - 0x534]
push ecx
push 0x4c89d4
mov ecx, dword [ebp - 0x538]
call fcn.004023c0
mov dword [ebp - 0x27c], 8
jmp 0x437e50
mov edx, dword [ebp - 0x27c]
add edx, 1
mov dword [ebp - 0x27c], edx
cmp dword [ebp - 0x27c], 0xf
ja 0x437e91
mov eax, dword [ebp - 0x27c]
mov cl, byte [ebp + eax - 0x224]
mov byte [ebp - 0x549], cl
mov edx, dword [ebp - 0x6f4]
add edx, 0xc
mov dword [ebp - 0x550], edx
movsx ax, byte [ebp - 0x549]
push eax
mov ecx, dword [ebp - 0x550]
call fcn.004198d0
jmp 0x437e41
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x10
mov dword [ebp - 0x558], ecx
mov edx, 0x4c89d4
test edx, edx
jne 0x437eb5
mov dword [ebp - 0x554], 0
jmp 0x437ec8
push 0x4c89d4
call fcn.0049873d
add esp, 4
mov dword [ebp - 0x554], eax
mov eax, dword [ebp - 0x554]
push eax
push 0x4c89d4
mov ecx, dword [ebp - 0x558]
call fcn.004023c0
mov dword [ebp - 0x27c], 0x10
jmp 0x437efa
mov ecx, dword [ebp - 0x27c]
add ecx, 1
mov dword [ebp - 0x27c], ecx
cmp dword [ebp - 0x27c], 0x1f
ja 0x437f3b
mov edx, dword [ebp - 0x27c]
mov al, byte [ebp + edx - 0x224]
mov byte [ebp - 0x569], al
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x10
mov dword [ebp - 0x570], ecx
movsx dx, byte [ebp - 0x569]
push edx
mov ecx, dword [ebp - 0x570]
call fcn.004198d0
jmp 0x437eeb
mov ecx, dword [ebp - 0x6f4]
add ecx, 0xc
call fcn.00419500
mov ecx, eax
call fcn.00419590
push eax
push 0x4cb508
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 0x4cec20
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, 0x10
call fcn.00419500
mov ecx, eax
call fcn.00419590
push eax
mov edx, dword [ebp - 0x70c]
push edx
lea eax, [ebp - 0x4e4]
push eax
call fcn.00419410
add esp, 0xc
mov dword [ebp - 0x710], eax
mov ecx, dword [ebp - 0x710]
mov dword [ebp - 0x714], ecx
mov byte [ebp - 4], 5
push 0x4cae00
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.0044e670
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4e4]
call fcn.0044e670
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4e0]
call fcn.0044e670
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4dc]
call fcn.0044e670
lea eax, [ebp - 0x48c]
push eax
mov ecx, dword [ebp - 0x6f4]
add ecx, 8
push ecx
lea edx, [ebp - 0x4ec]
push edx
call fcn.00419410
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, 0x4f912c
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ec]
call fcn.0044e670
mov edx, dword [ebp - 0x6f4]
add edx, 0x18
mov dword [ebp - 0x5c4], edx
mov eax, 0x4c89d4
test eax, eax
jne 0x43810d
mov dword [ebp - 0x5ac], 0
jmp 0x438120
push 0x4c89d4
call fcn.0049873d
add esp, 4
mov dword [ebp - 0x5ac], eax
mov ecx, dword [ebp - 0x5ac]
push ecx
push 0x4c89d4
mov ecx, dword [ebp - 0x5c4]
call fcn.004023c0
mov dword [ebp - 0x27c], 0x20
jmp 0x438152
mov edx, dword [ebp - 0x27c]
add edx, 1
mov dword [ebp - 0x27c], edx
cmp dword [ebp - 0x27c], 0x23
ja 0x438193
mov eax, dword [ebp - 0x27c]
mov cl, byte [ebp + eax - 0x224]
mov byte [ebp - 0x5d5], cl
mov edx, dword [ebp - 0x6f4]
add edx, 0x18
mov dword [ebp - 0x5dc], edx
movsx ax, byte [ebp - 0x5d5]
push eax
mov ecx, dword [ebp - 0x5dc]
call fcn.004198d0
jmp 0x438143
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x18
call fcn.00419500
mov ecx, eax
call fcn.00419590
push eax
push 0x4cf578
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 0x4cae00
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.0044e670
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f0]
call fcn.0044e670
lea ecx, [ebp - 0x48c]
push ecx
mov edx, dword [ebp - 0x6f4]
add edx, 8
push edx
lea eax, [ebp - 0x4f8]
push eax
call fcn.00419410
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, 0x4f912c
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f8]
call fcn.0044e670
mov eax, dword [ebp - 0x6f4]
add eax, 0x14
mov dword [ebp - 0x650], eax
mov ecx, 0x4c89d4
test ecx, ecx
jne 0x4382d4
mov dword [ebp - 0x638], 0
jmp 0x4382e7
push 0x4c89d4
call fcn.0049873d
add esp, 4
mov dword [ebp - 0x638], eax
mov edx, dword [ebp - 0x638]
push edx
push 0x4c89d4
mov ecx, dword [ebp - 0x650]
call fcn.004023c0
mov dword [ebp - 0x27c], 0x24
jmp 0x438319
mov eax, dword [ebp - 0x27c]
add eax, 1
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0x37
ja 0x43835a
mov ecx, dword [ebp - 0x27c]
mov dl, byte [ebp + ecx - 0x224]
mov byte [ebp - 0x671], dl
mov eax, dword [ebp - 0x6f4]
add eax, 0x14
mov dword [ebp - 0x678], eax
movsx cx, byte [ebp - 0x671]
push ecx
mov ecx, dword [ebp - 0x678]
call fcn.004198d0
jmp 0x43830a
mov ecx, dword [ebp - 0x6f4]
add ecx, 0x14
call fcn.00419500
mov ecx, eax
call fcn.00419590
push eax
push 0x4cb4f4
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 0x4cae00
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.0044e670
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4fc]
call fcn.0044e670
lea edx, [ebp - 0x48c]
push edx
mov eax, dword [ebp - 0x6f4]
add eax, 8
push eax
lea ecx, [ebp - 0x504]
push ecx
call fcn.00419410
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, 0x4f912c
call fcn.00401ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x504]
call fcn.0044e670
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x6f4]
call fcn.00438860
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x6f4]
call fcn.00438690
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x6f4]
call fcn.00438ad0
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x6f4]
call fcn.00438d60
test eax, eax
je 0x4384ef
mov edx, dword [ebp - 0x6f4]
mov byte [edx + 0x1c], 0xff
mov eax, 0xff
test eax, eax
je 0x4384e0
mov ecx, dword [ebp - 0x6f4]
mov dword [ecx + 0x34], 0
jmp 0x4384ed
mov edx, dword [ebp - 0x6f4]
mov dword [edx + 0x34], 1
jmp 0x4384fc
mov eax, dword [ebp - 0x6f4]
mov dword [eax + 0x34], 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.0044e670
mov eax, dword [ebp - 0x508]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x20]
call fcn.00498784
mov esp, ebp
pop ebp
ret 4