Function at 0x41b710
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b595
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x44a00c]
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 dword [ebp - 0xac], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x41ba6c
push 0x450
lea edi, [esi + 8]
call fcn.0041be73
mov ebx, eax
add esp, 4
mov dword [ebp - 0xb4], ebx
lea ecx, [ebx + 0x418]
mov dword [ebp - 4], 0
call fcn.004169c0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [ebx + 0x414], 0xffffffff
mov al, byte [edi + 0x410]
mov dword [ebp - 0xb0], ebx
mov byte [ebx + 0x410], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b7a5
sub ecx, edx
cmp ecx, 1
jbe 0x41b7b9
cmp byte [edi + 1], 0x3a
jne 0x41b7df
mov al, byte [edi]
cmp al, 0x61
jl 0x41b7c3
cmp al, 0x7a
jle 0x41b7cb
cmp al, 0x41
jl 0x41b7df
cmp al, 0x5a
jg 0x41b7df
movsx eax, al
push eax
push str.._C:
push ebx
call fcn.00401480
jmp 0x41b865
push 3
push 0x4462b8
push edi
call fcn.00429581
add esp, 0xc
test eax, eax
je 0x41b81f
push 4
push str.DISK
push edi
call fcn.00429581
add esp, 0xc
test eax, eax
je 0x41b81f
mov edx, ebx
mov ecx, edi
sub edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x41b810
jmp 0x41b868
push 4
lea eax, [esi + 8]
mov edi, 3
push str.DISK
push eax
call fcn.00429581
add esp, 0xc
test eax, eax
mov eax, 4
cmove edi, eax
lea eax, [edi + 8]
add eax, esi
push eax
call fcn.00424347
add esp, 4
xor ecx, ecx
test eax, eax
cmovs eax, ecx
push eax
push str..PhysicalDrive_d
push ebx
call fcn.00401480
lea edi, [esi + 8]
add esp, 0xc
push 0x104
lea eax, [ebx + 0x104]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add edi, 0x30c
cmp byte [edi], 0x2f
jne 0x41b8a2
mov ecx, ebx
sub ecx, edi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi + 0x30b], al
test al, al
jne 0x41b890
jmp 0x41b8d2
push 2
push 0x4462d8
push edi
call fcn.00424470
add esp, 0xc
test eax, eax
lea eax, [ebx + 0x30c]
push edi
jne 0x41b8c4
push 0x4462dc
jmp 0x41b8c9
push str.__:_s
push eax
call fcn.00401480
add esp, 0xc
cmp byte [ebx + 0x410], 0
je 0x41b9ca
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 0x414], eax
cmp eax, 0xffffffff
je 0x41b9c3
push 0x94
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.0041ea80
add esp, 0xc
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa4], 6
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 6
jb 0x41b9b3
push 0
lea eax, [ebp - 0xb8]
push eax
push 0
push 0
push 0
push 0
push 0x90018
push dword [ebx + 0x414]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41b9a3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push ebx
push str._Can_not_Lock_Disk_Partition___s__for_Write__err_d_n
call fcn.0040eaf0
add esp, 0xc
push dword [ebx + 0x414]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x414], 0xffffffff
mov byte [ebx + 0x410], 0
jmp 0x41b9d0
push ebx
push str.Lock_Disk_Partition___s__for_Read__Write_OK._n
call fcn.0040eaf0
add esp, 8
jmp 0x41b9ca
push ebx
push str.WINXP:_Open_Disk_Partition___s__for_Read__Write_OK._n
call fcn.0040eaf0
add esp, 8
jmp 0x41b9ca
mov byte [ebx + 0x410], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebx + 0x410], 0
jne 0x41ba27
cmp dword [ebx + 0x414], 0xffffffff
jne 0x41ba27
push 0
push 0x20000000
push 3
push 0
push 3
push bind
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 0x414], eax
cmp eax, 0xffffffff
je 0x41ba16
push ebx
push str.Open_Disk_Partition___s__for_Read_OK._n
call fcn.0040eaf0
add esp, 8
jmp 0x41ba27
call edi
push eax
push ebx
push str._Can_not_Open_Disk_Partition___s__for_Read._err_d._n
call fcn.0040eaf0
add esp, 0xc
mov ebx, dword [ebp - 0xac]
lea eax, [ebp - 0xb0]
push eax
mov edi, dword [ebx + 0x2c]
push dword [edi + 4]
push edi
call fcn.00414630
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebx + 0x30]
sub ecx, eax
cmp ecx, 1
jb 0x41ba8a
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov esi, dword [esi]
cmp esi, dword [eax]
jne 0x41b753
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.0041be62
mov esp, ebp
pop ebp
ret 4
push str.list_T__too_long
call fcn.0041be15
int3