Function at 0x473630
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b780
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x604654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
call fcn.0040be50
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x28]
push str.._
push eax
call fcn.0046fa40
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00429780
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4736c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
xor ebx, ebx
mov esi, dword [eax - 0xc]
lea ecx, [esi - 1]
test ecx, ecx
cmovns ebx, ecx
cmp ebx, 0x7ffffffe
jg 0x473851
lea ecx, [ebx + 1]
cmp ecx, esi
jle 0x4736f3
mov edi, esi
sub edi, ebx
mov ecx, edi
test edi, edi
jle 0x473759
jmp 0x4736fc
mov ecx, esi
mov edi, 1
sub ecx, ebx
sub ecx, edi
sub esi, edi
cmp dword [eax - 4], 1
mov dword [ebp - 0x28], ecx
jle 0x47371a
push dword [eax - 0xc]
lea ecx, [ebp - 0x24]
call fcn.0040c650
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
lea edx, [ecx*2 + 2]
push edx
lea ecx, [ebx + edi]
lea ecx, [eax + ecx*2]
push ecx
push edx
lea eax, [eax + ebx*2]
push eax
call fcn.0045d3e0
add esp, 0x10
test esi, esi
js 0x47385b
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax - 8]
jg 0x47385b
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x24]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x473816
push 8
call fcn.0054e4fc
mov esi, eax
add esp, 4
test esi, esi
je 0x473816
push 0
lea eax, [ebp - 0x14]
push eax
push 8
push esi
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4737bf
push esi
call fcn.00549bd1
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x473816
push dword [esi + 4]
call fcn.0054e4fc
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x14]
push 0
push eax
push dword [esi + 4]
lea eax, [ebp - 0x20]
push ebx
push 0xc
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call fcn.00549bd1
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x1c], 7
push ebx
jne 0x47380e
call fcn.00549bd1
add esp, 4
mov esi, 1
jmp 0x473818
call fcn.00549bd1
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x24]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x473833
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a408b
mov esp, ebp
pop ebp
ret
push 0x80070216
call fcn.0040c4f0
push 0x80070057
call fcn.0040c4f0
int3