Function at 0x4041c0
Capabilities:
Check os version
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421817
mov eax, dword fs:[0]
push eax
sub esp, 0xab0
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0xaa8], eax
push ebx
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0xac0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push str.SendRewind_run..
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], eax
call fcn.004124a0
add esp, 4
push 0x11c
xor esi, esi
call fcn.00412dc7
add esp, 4
push 0x11c
mov edi, eax
push esi
push edi
call fcn.004183e0
add esp, 0xc
push edi
mov dword [edi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40425c
cmp dword [edi + 4], 6
jb 0x40425c
cmp dword [edi + 8], 2
jb 0x40425c
mov esi, 1
push edi
call fcn.00412cea
add esp, 4
test esi, esi
je 0x404289
call fcn.00405d00
test eax, eax
je 0x404289
push str.CRNdisDevice::SendRewind__:_FindWin8OSVersion____MatchedMBIM__
call fcn.004124a0
add esp, 4
mov eax, 1
jmp 0x404897
push 0xd
xor ebx, ebx
xor esi, esi
push str.vid_12d1pid_
lea ecx, [esp + 0x74]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1a], 0
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], 0
call fcn.00401c30
mov dword [esp + 0xac8], ebx
mov ecx, dword [0x4223b4]
mov edx, dword [0x4223b8]
mov eax, dword [0x4223bc]
mov dword [esp + 0x88], ecx
mov ecx, dword [0x4223c0]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x20], ebx
jmp 0x404300
push 0x12
push ebx
push ebx
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
je 0x4048bd
lea eax, [esp + 0xd0]
push eax
push ebx
lea ecx, [esp + 0x90]
push ecx
push ebx
push edi
mov dword [esp + 0xe4], 0x1c
mov dword [esp + 0x30], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x404849
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
push 0x7d0
lea ecx, [esp + 0x2f0]
push ecx
lea edx, [esp + 0xe0]
push edx
push eax
mov dword [esp + 0xcc], 0x1c
mov dword [esp + 0x2fc], 5
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x404810
lea ecx, [esp + 0x2e8]
push ecx
call fcn.00412c85
lea edi, [esp + 0x2ec]
add esp, 4
mov byte [esp + 0xec], 0
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4043c0
mov dx, word [0x42418c]
push 0x1f3
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x2f0]
push ecx
mov word [edi], dx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x404810
lea edx, [esp + 0xec]
push edx
call fcn.00405440
mov bl, al
mov byte [esp + 0x13], bl
test bl, bl
je 0x404810
mov ecx, dword [esp + 0xc8]
mov edi, dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
push 0
push 0x1f4
lea eax, [esp + 0xf4]
push eax
push ecx
call edi
lea edx, [esp + 0xec]
push edx
call fcn.00412c85
mov eax, dword [esp + 0xcc]
add esp, 4
push 0
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
mov eax, dword [esp + 0x28]
push 0
push 0x1f4
lea edx, [esp + 0xf4]
push edx
push eax
call edi
lea ecx, [esp + 0xec]
push ecx
call fcn.00412c85
mov esi, dword [esp + 0x30]
add esp, 4
cmp esi, 0x423d93
je 0x40464e
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404490
sub eax, edx
cmp eax, 4
jb 0x404535
push 0xd
push str.vid_12d1pid_
lea ecx, [esp + 0x74]
call fcn.00401c30
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044b7
sub eax, edx
push eax
push esi
lea eax, [esp + 0x74]
call fcn.00401740
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x4044dd
lea eax, [esp + 0x70]
push eax
lea edx, [esp + 0xf0]
push edx
call fcn.00413540
add esp, 8
test eax, eax
jne 0x40450c
lea eax, [esp + 0xec]
push eax
push str._s_is_not_the_device_we_find
call fcn.004124a0
add esp, 8
jmp 0x404810
mov ecx, dword [esp + 0x14]
push esi
mov byte [esp + 0x16], 1
call fcn.004040e0
test eax, eax
jne 0x404773
push str.SendRewind_FindCdRom_false...
call fcn.00412560
add esp, 4
jmp 0x404773
cmp bl, byte [esi]
jne 0x404810
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x16], 1
call fcn.00401500
push 0x423d93
lea ecx, [esp + 0x54]
mov byte [esp + 0xacc], 1
call fcn.00401500
push 4
push str.pid
lea edx, [esp + 0xa0]
push edx
mov byte [esp + 0xad4], 2
call fcn.00401930
push 4
lea ecx, [eax + 5]
lea esi, [esp + 0x38]
lea edx, [esp + 0x9c]
call fcn.004016a0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xad4], 3
call fcn.00401850
mov esi, 0x10
mov byte [esp + 0xac8], 2
cmp dword [esp + 0x4c], esi
jb 0x4045d3
mov eax, dword [esp + 0x38]
push eax
call fcn.0041288e
add esp, 4
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], esi
jae 0x4045e1
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x14]
push eax
call fcn.004040e0
test eax, eax
jne 0x4045fc
push str.SendRewind_FindCdrom_return_false...
call fcn.00412560
add esp, 4
cmp dword [esp + 0x68], esi
jb 0x40460f
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041288e
add esp, 4
mov byte [esp + 0xac8], 0
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
cmp dword [esp + 0xb0], esi
jb 0x404773
mov edx, dword [esp + 0x9c]
push edx
call fcn.0041288e
add esp, 4
jmp 0x404773
mov esi, dword [esp + 0x14]
mov ebx, dword [esi + 0x70]
cmp ebx, dword [esi + 0x74]
jbe 0x40465f
call fcn.00413a68
mov edi, dword [esi + 0x64]
mov eax, esi
mov esi, dword [eax + 0x74]
cmp dword [eax + 0x70], esi
jbe 0x404675
call fcn.00413a68
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x64]
test edi, edi
je 0x404680
cmp edi, eax
je 0x404685
call fcn.00413a68
cmp ebx, esi
je 0x404764
push 0xd
push str.vid_12d1pid_
lea ecx, [esp + 0x74]
call fcn.00401c30
test edi, edi
jne 0x40470c
call fcn.00413a68
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4046b2
call fcn.00413a68
push 0
lea eax, [ebx + 0x1c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x74]
call fcn.00401b40
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x4046d6
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xf0]
push ecx
call fcn.00413540
add esp, 8
test eax, eax
jne 0x404714
test edi, edi
jne 0x404710
call fcn.00413a68
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x404700
call fcn.00413a68
mov eax, dword [esp + 0x14]
add ebx, 0x38
jmp 0x404664
mov eax, dword [edi]
jmp 0x4046a8
mov eax, dword [edi]
jmp 0x4046f6
test edi, edi
jne 0x404748
call fcn.00413a68
cmp ebx, dword [edi + 0x10]
jb 0x404727
call fcn.00413a68
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
add esi, 0x48
add ebx, 0x1c
push ebx
mov ecx, esi
call fcn.00401850
cmp dword [esi + 0x18], 0x10
jb 0x40474c
mov esi, dword [esi + 4]
jmp 0x40474f
mov edi, dword [edi]
jmp 0x40471d
add esi, 4
push esi
push str.the_CDROM_PID_is__s
call fcn.004124a0
add esp, 8
mov byte [esp + 0x12], 1
jmp 0x40476f
cmp byte [esp + 0x12], 0
je 0x404810
mov bl, byte [esp + 0x13]
call fcn.00404140
push 4
push str.._
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.00401c30
lea esi, [esp + 0x50]
mov byte [esp + 0xac8], 4
call fcn.00407b80
mov bl, 0x3a
call fcn.00407b80
mov eax, dword [esp + 0x54]
mov esi, 0x10
cmp dword [esp + 0x68], esi
jae 0x4047c8
lea eax, [esp + 0x54]
push eax
call fcn.004033b0
mov eax, dword [esp + 0x58]
add esp, 4
cmp dword [esp + 0x68], esi
jae 0x4047df
lea eax, [esp + 0x54]
push eax
push str.Send_SCSI_command_to_driver___s_
call fcn.004124a0
add esp, 8
mov byte [esp + 0xac8], 0
mov dword [esp + 0x24], 1
cmp dword [esp + 0x68], esi
jb 0x404810
mov edx, dword [esp + 0x54]
push edx
call fcn.0041288e
add esp, 4
mov eax, dword [esp + 0x1c]
inc eax
lea ecx, [esp + 0xd0]
push ecx
push eax
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x404351
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
xor ebx, ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp esi, ebx
jne 0x404871
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 5
mov dword [esp + 0x20], eax
jl 0x404300
push str.SendRewind_exit..
call fcn.004124a0
add esp, 4
cmp dword [esp + 0x84], 0x10
jb 0x404895
mov edx, dword [esp + 0x70]
push edx
call fcn.0041288e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xac0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xaa8]
xor ecx, esp
call fcn.00412899
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetClassDevs_error__error_code___d
call fcn.00412560
add esp, 8
cmp dword [esp + 0x84], 0x10
jb 0x4048e8
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0041288e
add esp, 4
xor eax, eax
jmp 0x404897