Function at 0x10003420
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1228
call fcn.1002aa40
mov eax, dword [0x10037040]
xor eax, esp
mov dword [esp + 0x1224], eax
push esi
push edi
push 0x90
xor esi, esi
lea eax, [esp + 0x88]
mov edi, ecx
push esi
push eax
mov dword [esp + 0x20], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x80], 0x94
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x90], 2
jne 0x100038cf
push dword [edi]
lea eax, [esp + 0x112c]
push str..PhysicalDrive_d
push eax
call fcn.10001380
add esp, 0xc
lea eax, [esp + 0x1128]
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x100035dd
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
push ecx
push 0x18
lea ecx, [esp + 0x6c]
xorps xmm0, xmm0
push ecx
push esi
push esi
push 0x74080
push eax
movaps xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100035d3
mov al, byte [esp + 0x63]
mov byte [esp + 0x1b], al
test al, al
je 0x100035d3
push 0x210
xorps xmm0, xmm0
mov byte [esp + 0x3b], 0
lea eax, [esp + 0x11c]
movlpd qword [esp + 0x3d], xmm0
push esi
push eax
movlpd qword [esp + 0x4d], xmm0
mov dword [esp + 0x55], esi
call sub.VCRUNTIME140.dll_memset
mov cl, byte [edi]
add esp, 0xc
mov al, cl
mov dword [esp + 0x30], 0x10100
and al, 1
mov byte [esp + 0x34], 0
or al, 0xfa
mov byte [esp + 0x38], cl
shl al, 4
mov byte [esp + 0x35], al
mov al, byte [esp + 0x1b]
shr al, cl
and al, 0x10
mov dword [esp + 0x2c], 0x200
neg al
push esi
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [esp + 0x3a], al
lea eax, [esp + 0x20]
push eax
push 0x210
lea eax, [esp + 0x124]
push eax
push 0x20
lea eax, [esp + 0x40]
push eax
push 0x7c088
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100035d3
xor ecx, ecx
lea edx, [edi + 4]
nop word [eax + eax]
movzx eax, word [esp + ecx*2 + 0x128]
lea edx, [edx + 4]
inc ecx
mov dword [edx - 4], eax
cmp ecx, 0x100
jl 0x100035b0
mov ecx, edi
call fcn.10002f10
mov esi, 1
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x10003a64
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
nop
mov edx, 0x36
xor esi, esi
nop word [eax + eax]
mov cl, byte [esi + 0x1002ecdc]
mov al, cl
xor al, dl
mov byte [esp + esi + 0x2c], al
movsx ax, cl
xor ax, dx
inc edx
mov word [esp + esi*2 + 0x38], ax
and edx, 0x800000ff
jns 0x1000362b
dec edx
or edx, 0xffffff00
inc edx
inc esi
cmp esi, 0xb
jl 0x10003600
push dword [esp + 0x1c]
xor eax, eax
mov byte [esp + 0x3b], 0
mov word [esp + 0x52], ax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1130]
push eax
call fcn.10001380
add esp, 0xc
xor eax, eax
nop dword [eax + eax]
xor ecx, ecx
mov byte [esp + eax + 0x2c], 0
mov word [esp + eax*2 + 0x38], cx
inc eax
cmp eax, 0xc
jl 0x10003660
push ecx
push ecx
push 3
push ecx
push 3
push 0xc0000000
lea eax, [esp + 0x1140]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10003782
mov dword [esp + 0x20], 0
nop
push 0x22d
lea eax, [esp + 0x11c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x118], 0x1c
lea eax, [esp + 0x11c]
mov dword [esp + 0x124], 0x2710
mov dword [esp + 0x130], 0x211
mov dword [esp + 0x128], 0x1b0501
push 8
push str.SCSIDISK
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov byte [esp + 0x140], al
lea eax, [esp + 0x28]
mov byte [esp + 0x13e], 0xec
push 0
push eax
push 0x22d
lea eax, [esp + 0x124]
push eax
push 0x3c
push eax
push 0x4d008
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10003769
cmp byte [esp + 0x17a], 0
je 0x10003769
xor eax, eax
lea edx, [edi + 4]
movzx ecx, word [esp + eax*2 + 0x144]
lea edx, [edx + 4]
inc eax
mov dword [edx - 4], ecx
cmp eax, 0x100
jl 0x10003744
mov ecx, edi
call fcn.10002f10
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 2
jl 0x100036a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 0x10
jl 0x100035f0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10003a66
mov ecx, edi
call fcn.10003130
test eax, eax
jne 0x10003a66
push dword [edi]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x112c]
push str..PhysicalDrive_d
push eax
call fcn.10001380
add esp, 0xc
lea eax, [esp + 0x1128]
push 0
push 0
push 3
push 0
push 7
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x100038b7
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
push ecx
push 0x18
lea ecx, [esp + 0x6c]
xorps xmm0, xmm0
push ecx
push 0
push 0
push 0x74080
push eax
movaps xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100038b7
push 0x221
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [esp + 0x20]
push 0
push eax
push 0x221
push esi
push 0x21
push esi
push 0x7c088
push dword [esp + 0x30]
mov byte [esi + 0xa], 0xec
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100038a3
xor edx, edx
lea ecx, [edi + 4]
nop word [eax + eax]
movzx eax, word [esi + edx*2 + 0x10]
lea ecx, [ecx + 4]
inc edx
mov dword [ecx - 4], eax
cmp edx, 0x100
jl 0x10003880
mov ecx, edi
call fcn.10002f10
mov dword [esp + 0x1c], 1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov ecx, dword [esp + 0x1224]
xor ecx, esp
call fcn.10029901
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x24], esi
jmp 0x100038e4
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x10003a64
xor edi, edi
push 0x100
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x100c
lea eax, [esp + 0x11c]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, 0x6a
mov cl, byte [esi + str.67B15CCADDX__]
mov al, dl
xor al, cl
mov byte [esp + esi + 0x2c], al
movsx ax, cl
xor ax, dx
inc edx
mov word [esp + esi*2 + 0x3e], ax
and edx, 0x800000ff
jns 0x1000394e
dec edx
or edx, 0xffffff00
inc edx
inc esi
cmp esi, 0x10
jl 0x10003923
xor eax, eax
mov byte [esp + 0x3c], 0
push eax
push 0x4000000
push eax
push eax
push eax
push eax
mov word [esp + 0x76], ax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor eax, eax
nop dword [eax]
xor ecx, ecx
mov byte [esp + eax + 0x2c], 0
mov word [esp + eax*2 + 0x3e], cx
inc eax
cmp eax, 0x11
jl 0x10003980
cmp esi, 0xffffffff
je 0x100039bb
push ecx
lea eax, [esp + 0x2c]
push eax
push 4
lea eax, [esp + 0x124]
push eax
push ecx
push ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003a2d
lea edx, [esp + 0x124]
xor edi, edi
mov dword [esp + 0x20], edx
nop dword [eax + eax]
cmp byte [esp + edi + 0x11c], 0
je 0x10003a19
mov eax, edi
shr eax, 1
cmp byte [esp + eax + 0x118], 0
je 0x10003a19
mov ecx, dword [esp + 0x14]
mov esi, 0x100
add ecx, 4
movzx eax, word [edx]
lea edx, [edx + 2]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x100039f4
mov ecx, dword [esp + 0x14]
call fcn.10002f10
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], 1
inc edi
add edx, 0x200
mov dword [esp + 0x20], edx
cmp edi, 8
jb 0x100039d0
mov edi, dword [esp + 0x1c]
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, 0xa
jl 0x100038e0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x1224]
xor ecx, esp
call fcn.10029901
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [esp + 0x122c]
pop edi
pop esi
xor ecx, esp
call fcn.10029901
mov esp, ebp
pop ebp
ret