Function at 0x4b6a4a
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 0x80000101
push 0
push 0x5c
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x80000101
push 0
push 0x5c
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x80000101
push 0
push 0x2e
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0x5c
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0x50
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0x80000101
push 0
push 0x68
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x38], eax
push 0x80000101
push 0
push 0x79
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x3c], eax
push 0x80000101
push 0
push 0x73
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x40], eax
push 0x80000101
push 0
push 0x69
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x44], eax
push 0x80000101
push 0
push 0x63
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x48], eax
push 0x80000101
push 0
push 0x61
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x4c], eax
push 0x80000101
push 0
push 0x6c
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x50], eax
push 0x80000101
push 0
push 0x44
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x54], eax
push 0x80000101
push 0
push 0x72
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x58], eax
push 0x80000101
push 0
push 0x69
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x5c], eax
push 0x80000101
push 0
push 0x76
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x60], eax
push 0x80000101
push 0
push 0x65
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x64], eax
push 0x80000101
push 0
push 0x30
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x68], eax
push dword [ebp - 0x68]
push dword [ebp - 0x64]
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x24]
mov ecx, 0x12
call fcn.004a7745
add esp, 0x48
mov dword [ebp - 0x6c], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4b6d33
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4b6d43
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4b6d53
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4b6d63
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4b6d73
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4b6d83
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4b6d93
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4b6da3
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4b6db3
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4b6dc3
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4b6dd3
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4b6de3
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x4b6df3
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x4b6e03
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x4b6e13
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x4b6e23
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x4b6e33
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x68]
test ebx, ebx
je 0x4b6e43
push ebx
call fcn.004cd1d2
add esp, 4
mov eax, dword [ebp - 0x6c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4b6e57
push ebx
call fcn.004cd1d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.004cf750
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push 0
push 0
push 3
push 0
push dword [ebp - 0x24]
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4b6ec6
push 6
call fcn.004cd1de
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4b6efc
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004cda40
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
jmp 0x4b70e2
mov dword [ebp - 0xc], 0x400
push 0x80000301
push 0
push 0xc
push 1
mov ebx, 0x1bc
call fcn.004cdde0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4b6f38
push ebx
call fcn.004cd1d2
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x1bc
call fcn.004cdde0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4b6f6f
push ebx
call fcn.004cd1d2
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], esp
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b6f85
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b6f90
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x4b6fad
push 6
call fcn.004cd1de
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b6fc2
add eax, 8
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b6fcd
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4b6fea
push 6
call fcn.004cd1de
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x30]
push 0xc
push dword [ebp - 0x28]
push 0x2d1400
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4b702b
push 6
call fcn.004cd1de
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x4b709f
push 0x80000301
push 0
push dword [ebp - 0x1c]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b7055
mov eax, 0xa10d5d
push eax
push 2
mov ebx, 0x1a0
call fcn.004cde10
add esp, 0x1c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.004b7128
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4b7087
push ebx
call fcn.004cd1d2
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4b709b
push ebx
call fcn.004cd1d2
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x4b70c1
push 6
call fcn.004cd1de
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4b70dd
push eax
mov ebx, eax
call fcn.004a75f4
inc eax
push eax
call fcn.004cd1d8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4b70e2
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4b70f3
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4b7103
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4b7113
push ebx
call fcn.004cd1d2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4b7123
push ebx
call fcn.004cd1d2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret