Function at 0x41f140
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x462058
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x480810]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x480810]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
call fcn.0042f9e8
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41f19c
push 0x80004005
call fcn.0040a150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x90], edi
mov dword [esi + 0x514], edi
lea esp, [esp]
push pe_nt_image_headers32
call fcn.00425149
mov dword [esp + edi*4 + 0x38], eax
add edi, 1
add esp, 4
cmp edi, 0x10
jl 0x41f1c0
push 0x18
call fcn.0042511e
add esp, 4
push 0x227
mov dword [esp + 0x18], eax
call fcn.00425149
add esp, 4
lea ecx, [esp + 0x34]
mov ebx, eax
push ecx
push 0x46d83c
mov dword [esp + 0x2c], ebx
mov dword [ebx + 4], 0x227
call fcn.0041e3b0
xor edi, edi
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
jle 0x41f319
mov eax, dword [esp + edi*4 + 0x34]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f304
push 0x208
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea edx, [esp + 0x30]
push edx
push 0x208
mov edi, eax
push edi
push 0
push 0
push 0x2d0c04
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41f2a1
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x14]
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x18]
mov dword [eax + 0x10], ecx
mov edx, dword [edi + 0x1c]
mov dword [eax + 0x14], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebx + 4]
xor eax, eax
push eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x34]
push eax
push ecx
push ebx
push 0xc
lea edx, [esp + 0x88]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x514]
push ecx
mov edi, ebx
mov ebx, dword [esp + 0x18]
push eax
call fcn.0041f3a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
add dword [eax + 0x514], 1
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
add edi, 1
cmp edi, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jl 0x41f225
mov esi, dword [esp + 0x18]
push ebx
call fcn.0042514e
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call fcn.0042514e
add esp, 4
xor edi, edi
mov eax, dword [esp + edi*4 + 0x34]
push eax
call fcn.0042514e
add edi, 1
add esp, 4
cmp edi, 0x10
jl 0x41f331
mov esi, dword [esi + 0x514]
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f377
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00448d99
mov esp, ebp
pop ebp
ret