Function at 0x40c0f0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5826ad
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5f0004]
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, edx
mov dword [ebp - 0x40], eax
mov ecx, eax
call fcn.00406550
call fcn.0041cb07
mov ecx, eax
test ecx, ecx
je 0x40c441
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push str..PhysicalDrive_u
push eax
call fcn.0040a8d0
mov edi, dword [ebp - 0x18]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
push edi
call dword [0x5943e8]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
cmp ebx, 0xffffffff
jne 0x40c188
call dword [0x594478]
mov esi, eax
jmp 0x40c404
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push eax
push 8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0
push eax
push 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0
push eax
push 0x2d1400
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push ebx
movlpd qword [ebp - 0x30], xmm0
call dword [0x5943e4]
test eax, eax
jne 0x40c1e2
call dword [0x594478]
push ebx
mov esi, eax
call dword [0x594474]
jmp 0x40c404
mov esi, dword [ebp - 0x2c]
push esi
call fcn.0041a54c
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x34], ebx
call fcn.005631c0
add esp, 0x10
lea eax, [ebp - 0x1c]
push 0
push eax
push esi
push ebx
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0x2d1400
push dword [ebp - 0x3c]
call dword [0x5943e4]
test eax, eax
jne 0x40c23b
call dword [0x594478]
push ebx
mov esi, eax
call fcn.0041a547
add esp, 4
push dword [ebp - 0x3c]
call dword [0x594474]
jmp 0x40c404
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x40c348
add ebx, eax
mov dword [ebp - 0x14], ebx
call fcn.0041cb07
mov ecx, eax
test ecx, ecx
je 0x40c44b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 1
test ebx, ebx
je 0x40c2c7
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [0x5944ac]
lea ebx, [eax - 1]
test ebx, ebx
jle 0x40c2c7
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, ebx
or ecx, edx
jge 0x40c2a2
push ebx
lea ecx, [ebp - 0x38]
call fcn.00406440
mov esi, dword [ebp - 0x38]
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x14]
push 0
push 3
call dword [0x5944ac]
cmp ebx, dword [esi - 8]
jg 0x40c455
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x40c2d2
lea ecx, [ebp - 0x38]
call fcn.00406550
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edx
mov ebx, dword [ecx]
sub ebx, 0x10
cmp edx, ebx
je 0x40c32c
cmp dword [ebx + 0xc], 0
jl 0x40c320
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40c320
push edx
call fcn.00408d00
add esp, 4
lea edx, [ebx + 0xc]
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c316
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x40]
lea eax, [esi + 0x10]
mov dword [ecx], eax
jmp 0x40c329
push dword [esi - 0xc]
push esi
call fcn.00408f30
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c345
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.0041a547
mov ebx, 0x128
add esp, 4
mov dword [ebp - 0x34], ebx
nop dword [eax]
push ebx
push 0
call dword [0x5943e0]
mov esi, eax
test esi, esi
je 0x40c3f9
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0xc
push 0x5fa950
push 0x2d1400
push dword [ebp - 0x3c]
call dword [0x5943e4]
test eax, eax
je 0x40c3c3
cmp dword [esi], 0x28
jb 0x40c3bc
mov eax, dword [esi + 4]
cmp eax, ebx
jbe 0x40c3ae
mov ebx, eax
push esi
mov dword [ebp - 0x34], ebx
call dword [0x5943dc]
jmp 0x40c360
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x40c3df
mov ebx, 0xe8
jmp 0x40c3cb
mov ebx, 0x1f
jmp 0x40c3cb
call dword [0x594478]
mov ebx, eax
push esi
call dword [0x5943dc]
cmp ebx, 0xea
jne 0x40c3f9
mov ebx, dword [ebp - 0x34]
jmp 0x40c360
push dword [esi + 0x1c]
add eax, esi
push eax
push str._nSerialNumber_via_2nd_Method___s_t__nType_d_n_n
call fcn.0040c460
add esp, 0xc
push esi
call dword [0x5943dc]
push dword [ebp - 0x3c]
call dword [0x594474]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40c423
mov ecx, dword [edi]
push edi
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.00560ad4
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004064e0
push 0x80004005
call fcn.004064e0
push 0x80070057
call fcn.004064e0
int3