Function at 0x429810
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55c31c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x279c
call fcn.005327a0
mov eax, dword [0x5c8810]
xor eax, esp
mov dword [esp + 0x2798], eax
push ebx
push esi
push edi
mov eax, dword [0x5c8810]
xor eax, esp
push eax
lea eax, [esp + 0x27b0]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], edi
push edi
push str..PhysicalDrive_d
lea eax, [esp + 0x2624]
push 0x80
push eax
call fcn.00415470
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x2634]
push ecx
call esi
mov ebx, eax
mov dword [esp + 0x30], ebx
cmp ebx, 0xffffffff
je 0x429e32
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
push eax
lea edx, [esp + 0x40]
push edx
push 0x200
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x2428]
push eax
push 0xc
lea ecx, [esp + 0x64]
push ecx
push 0x2d1400
push ebx
call edi
test eax, eax
je 0x429e27
mov eax, dword [esp + 0x2438]
cmp eax, 8
jne 0x429e69
push 0
lea edx, [esp + 0x40]
push edx
push 0x200
lea eax, [esp + 0x2428]
push eax
push 0
push 0
push 0x41018
push ebx
call edi
test eax, eax
je 0x429e27
movzx ecx, byte [esp + 0x2420]
push ecx
push str..Scsi_d:
lea edx, [esp + 0x26a4]
push 0x104
push edx
call fcn.00530978
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x26b4]
push eax
call esi
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x429e23
xor edi, edi
push 0xc6
lea ecx, [esp + 0x12c]
push edi
push ecx
mov dword [esp + 0x130], edi
call fcn.00530830
push 0x7c
lea edx, [esp + 0xb8]
push edi
push edx
mov dword [esp + 0xbc], edi
call fcn.00530830
push 0x803
lea eax, [esp + 0x411]
push edi
push eax
mov byte [esp + 0x418], 0
call fcn.00530830
push 0x81c
lea ecx, [esp + 0xc28]
push edi
push ecx
mov dword [esp + 0xc2c], edi
call fcn.00530830
mov esi, dword [esp + 0x40]
add esp, 0x30
push 0xca
lea edx, [esp + 0x128]
push edx
push 1
push ebx
mov ecx, esi
call fcn.0045d070
test eax, eax
jne 0x4299f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x80
lea eax, [esp + 0xa8]
push eax
push 0xa
push ebx
mov ecx, esi
call fcn.0045d070
test eax, eax
je 0x429e1c
cmp dword [esp + 0xc0], edi
je 0x429e1c
push 0x820
lea ecx, [esp + 0xc00]
push ecx
push 0x14
push ebx
mov ecx, esi
call fcn.0045d070
test eax, eax
je 0x429e1c
mov ecx, 0x201
lea esi, [esp + 0xc18]
lea edi, [esp + 0x3f4]
rep movsd dword es:[edi], dword [esi]
mov ecx, str.rcraid
lea eax, [esp + 0x140]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x429a84
test dl, dl
je 0x429a80
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x429a84
add eax, 2
add ecx, 2
test dl, dl
jne 0x429a64
xor eax, eax
jmp 0x429a89
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x429ada
mov ebx, dword [esp + 0xe4]
test ebx, ebx
jle 0x429aca
lea edx, [esp + 0x414]
nop
movzx ecx, byte [esp + 0x3f4]
cmp eax, ecx
jl 0x429abf
lea edi, [edx - 0x1c]
mov ecx, 0x10
lea esi, [esp + 0x3f8]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], al
mov byte [edx + 0x1c], al
inc eax
add edx, 0x40
cmp eax, ebx
jl 0x429aa0
mov byte [esp + 0x3f4], bl
mov ebx, dword [esp + 0x18]
jmp 0x429cd0
mov edi, dword [esp + 0xc4]
imul edi, dword [esp + 0xc0]
imul edi, edi, 0x88
push 4
push 0x1000
add edi, 0xc8
push edi
push 0
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp dword [esp + 0xc0], 0
mov esi, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x14], 0
jle 0x429cc2
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edi
push esi
push 0xb
push ebx
mov dword [esi + 0x1c], edx
call fcn.0045d070
test eax, eax
je 0x429cac
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x20], 0
jbe 0x429cac
lea ebx, [esi + 0x9a]
lea ebx, [ebx]
cmp byte [ebx - 0x5a], 0
je 0x429c85
movzx edi, byte [ebx]
push 0xb8
call fcn.005120bc
add esp, 4
mov dword [esp + 0x34], eax
xor esi, esi
mov dword [esp + 0x27b8], esi
cmp eax, esi
je 0x429bb3
movzx ecx, byte [esp + 0x2422]
movzx edx, byte [esp + 0x2421]
push ecx
movzx ecx, byte [esp + 0x2424]
push edx
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, eax
call fcn.0045d690
mov esi, eax
mov ecx, dword [esp + 0x18]
fld qword [0x569628]
lea edx, [esp + 0x44]
fstp qword [esp + 0x44]
push edx
lea eax, [esp + 0x1420]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x27c8], 0xffffffff
mov dword [esp + 0x3c], esi
call fcn.0045ef90
test eax, eax
je 0x429c77
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x141c]
push edx
push esi
call fcn.0045f2a0
fldz
fld qword [esp + 0x44]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x429c47
fld qword [0x567cf8]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
fmul st(1), st(0)
or eax, 0xc00
mov dword [esp + 0x34], eax
fmulp st(1)
fldcw word [esp + 0x34]
fistp qword [esp + 0x34]
mov eax, dword [esp + 0x34]
mov dword [esi + 0x94], eax
fldcw word [esp + 0x1e]
jmp 0x429c49
fstp st(0)
mov dword [esi + 0x28], edi
mov edi, dword [esp + 0x10]
push esi
mov ecx, edi
mov dword [esi + 0x30], 4
mov dword [esi + 0x9c], 8
call fcn.004279c0
test eax, eax
jne 0x429c7b
push esi
mov ecx, edi
call fcn.00427970
jmp 0x429c85
test esi, esi
je 0x429c85
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
movzx ecx, byte [esi + 0x2b]
inc eax
add ebx, 0x88
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x429b60
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0xc0]
mov dword [esp + 0x14], eax
jl 0x429b25
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
cmp byte [esp + 0x3f4], 0
mov dword [esp + 0x20], esi
jbe 0x429e1c
lea edi, [esp + 0x3f8]
mov dword [esp + 0x14], edi
push 0xb8
call fcn.005120bc
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x27b8], 1
test eax, eax
je 0x429d39
movzx edx, byte [esp + 0x2422]
movzx ecx, byte [esp + 0x2421]
push edx
movzx edx, byte [esp + 0x2424]
push ecx
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, eax
call fcn.0045d690
mov ebx, eax
jmp 0x429d3b
xor ebx, ebx
mov eax, dword [ebx + 0x34]
push esi
push str.HDD__d
push 0x200
push eax
mov dword [esp + 0x27c8], 0xffffffff
mov dword [esp + 0x3c], ebx
call fcn.00415470
push 0x200
lea ecx, [esp + 0x208]
push 0
push ecx
call fcn.00530830
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
add esp, 0x1c
push 0x200
lea edx, [esp + 0x1f8]
push edx
push 0
push 0xec
push edi
push eax
mov ecx, esi
call fcn.0045d150
test eax, eax
je 0x429dea
lea ecx, [esp + 0x1f4]
push ecx
push ebx
mov ecx, esi
call fcn.004272d0
push 0x40
call fcn.005120bc
mov esi, edi
mov edi, eax
mov dword [ebx + 0x24], eax
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
add esp, 4
push ebx
mov ecx, esi
mov dword [ebx + 0x9c], 8
call fcn.004279c0
test eax, eax
jne 0x429dea
push ebx
mov ecx, esi
call fcn.00427970
jmp 0x429df4
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
movzx ecx, byte [esp + 0x3f4]
inc esi
add edi, 0x40
cmp esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], edi
jl 0x429cef
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x28]
inc edi
cmp edi, 0x38
mov dword [esp + 0x28], edi
jl 0x42985f
mov eax, 1
mov ecx, dword [esp + 0x27b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2798]
xor ecx, esp
call fcn.0053081c
mov esp, ebp
pop ebp
ret
cmp eax, 9
je 0x429e73
cmp eax, 0xa
jne 0x429e27
mov edi, dword [esp + 0x2c]
push 0x44
lea edx, [esp + 0x60]
push 0
push edx
mov dword [edi + 0xac], 0
call fcn.00530830
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
push 0
push ebx
call fcn.0045d520
test eax, eax
je 0x429e27
movzx esi, byte [esp + 0x5e]
movzx ecx, byte [esp + 0x5f]
shl esi, 8
add esi, ecx
cmp esi, 0x40
jle 0x429ec0
mov esi, 0x40
cmp dword [edi + 0xb0], 0
mov dword [edi + 0xac], esi
jne 0x429ef0
xor ecx, ecx
mov eax, esi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005120eb
add esp, 4
mov dword [edi + 0xb0], eax
xor eax, eax
test esi, esi
jle 0x429e27
lea ebx, [ebx]
movzx ecx, byte [esp + eax + 0x60]
mov edx, dword [edi + 0xb0]
mov dword [edx + eax*8], ecx
mov ecx, dword [edi + 0xb0]
mov dword [ecx + eax*8 + 4], 0
inc eax
cmp eax, esi
jl 0x429f00
jmp 0x429e27