Function at 0x41c180
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cc91
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x54735c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x164]
call fcn.0041bfd0
mov dword [ebp - 4], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x165]
mov byte [ebp - 4], 1
push eax
push 0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 0x165], 0x76
call fcn.0041c640
mov esi, dword [ebp - 0x114]
mov eax, dword [ebp - 0x118]
mov byte [ebp - 0x165], 0x62
cmp esi, eax
je 0x41c21f
mov byte [eax], 0x62
inc eax
mov dword [ebp - 0x118], eax
jmp 0x41c23e
lea ecx, [ebp - 0x165]
push ecx
push eax
lea ecx, [ebp - 0x11c]
call fcn.0041c640
mov esi, dword [ebp - 0x114]
mov eax, dword [ebp - 0x118]
mov byte [ebp - 0x165], 0x6f
cmp esi, eax
je 0x41c255
mov byte [eax], 0x6f
inc eax
mov dword [ebp - 0x118], eax
jmp 0x41c274
lea ecx, [ebp - 0x165]
push ecx
push eax
lea ecx, [ebp - 0x11c]
call fcn.0041c640
mov esi, dword [ebp - 0x114]
mov eax, dword [ebp - 0x118]
mov byte [ebp - 0x165], 0x78
cmp esi, eax
je 0x41c28b
mov byte [eax], 0x78
inc eax
mov dword [ebp - 0x118], eax
jmp 0x41c2aa
lea ecx, [ebp - 0x165]
push ecx
push eax
lea ecx, [ebp - 0x11c]
call fcn.0041c640
mov esi, dword [ebp - 0x114]
mov eax, dword [ebp - 0x118]
mov byte [ebp - 0x165], 0
cmp esi, eax
je 0x41c2c1
mov byte [eax], 0
inc eax
mov dword [ebp - 0x118], eax
jmp 0x41c2da
lea ecx, [ebp - 0x165]
push ecx
push eax
lea ecx, [ebp - 0x11c]
call fcn.0041c640
mov esi, dword [ebp - 0x114]
mov edi, dword [ebp - 0x11c]
mov ecx, edi
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0xf
mov byte [ebp - 0x14c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c300
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x14c]
call fcn.00409bb0
mov byte [ebp - 4], 0
test edi, edi
je 0x41c348
sub esi, edi
mov eax, edi
cmp esi, 0x1000
jb 0x41c33e
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c5d6
push esi
push edi
call fcn.004f2ead
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
push 0x12
push str..PhysicalDrive0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
call fcn.00409bb0
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push 0
cmovae eax, dword [ebp - 0x134]
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp - 0x120]
mov esi, eax
cmp edx, 0x10
jb 0x41c3dc
mov ecx, dword [ebp - 0x134]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c3d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c5db
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
cmp esi, 0xffffffff
je 0x41c52c
push 0x80
lea eax, [ebp - 0x110]
mov dword [ebp - 0x16c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
push 0
push eax
movlpd qword [ebp - 0x118], xmm0
call fcn.004f53d0
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004f53d0
add esp, 0x18
lea eax, [ebp - 0x16c]
push 0
push eax
push 0x80
lea eax, [ebp - 0x110]
push eax
push 0xc
lea eax, [ebp - 0x11c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41c525
mov eax, dword [ebp - 0x100]
mov cl, byte [ebp + eax - 0x110]
lea eax, [ebp + eax - 0x110]
test cl, cl
je 0x41c4a6
lea edx, [ebp - 0x90]
mov byte [edx], cl
lea eax, [eax + 1]
mov cl, byte [eax]
lea edx, [edx + 1]
test cl, cl
jne 0x41c498
lea ecx, [ebp - 0x90]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c4b0
sub ecx, edx
lea eax, [ebp - 0x90]
push ecx
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
cmp dword [ebp - 0x150], 0x10
lea eax, [ebp - 0x164]
cmovae eax, dword [ebp - 0x164]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004f5720
add esp, 8
test eax, eax
je 0x41c4f6
mov esi, 1
jmp 0x41c52e
cmp dword [ebp - 0x138], 0x10
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004f5720
add esp, 8
test eax, eax
je 0x41c525
mov esi, 2
jmp 0x41c52e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edx, dword [ebp - 0x138]
cmp edx, 0x10
jb 0x41c568
mov ecx, dword [ebp - 0x14c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c55e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c5e0
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0xf
mov byte [ebp - 0x14c], 0
cmp edx, 0x10
jb 0x41c5b9
mov ecx, dword [ebp - 0x164]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c5af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c5e5
push edx
push ecx
call fcn.004f2ead
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f313b
mov esp, ebp
pop ebp
ret
call fcn.004f855c
call fcn.004f855c
call fcn.004f855c
call fcn.004f855c
int3