Function at 0x401e20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x200
mov dword [ebp - 0xac], edx
push edi
push esi
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xb8], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0xbc], edi
test edi, edi
je 0x40202c
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop dword [eax]
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push 0x90
lea eax, [ebp - 0xa4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401eeb
cmp dword [ebp - 0x98], 2
jne 0x401ec5
cmp dword [ebp - 0xa4], 5
ja 0x401ec5
cmp dword [ebp - 0xa0], 0
je 0x401eeb
push esi
push edi
push 0
push 0
push 0x70050
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp - 0xb0]
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
jmp 0x401ffe
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40202a
push esi
push ebx
push 0
push 0
push 0x7400c
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp - 0xb0]
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
mov dword [ebp - 0xb4], eax
test eax, eax
js 0x401fec
mov eax, dword [ebx]
lea eax, [eax + eax*8]
shl eax, 4
add eax, 0x30
cmp esi, eax
jb 0x401fe0
mov dword [edi], 0
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov eax, dword [ebx + 4]
mov dword [edi + 8], eax
cmp dword [ebx], 0
mov dword [ebp - 0xc0], 0
jbe 0x401fec
lea eax, [edi + 0x38]
mov edi, dword [ebp - 0xc0]
lea esi, [ebx + 0x10]
mov dword [eax - 8], 0
lea esi, [esi + 0x20]
mov ecx, dword [esi - 0x28]
lea eax, [eax + 0x90]
mov edx, dword [esi - 0x24]
inc edi
mov dword [eax - 0x90], ecx
mov dword [eax - 0x8c], edx
mov ecx, dword [esi - 0x20]
mov edx, dword [esi - 0x1c]
mov dword [eax - 0x88], ecx
mov dword [eax - 0x84], edx
mov ecx, dword [esi - 0x14]
mov dword [eax - 0x80], ecx
movzx ecx, byte [esi - 0xd]
mov byte [eax - 0x7c], cl
movzx ecx, byte [esi - 0x10]
mov byte [eax - 0x78], cl
movzx ecx, byte [esi - 0xf]
mov byte [eax - 0x77], cl
movzx ecx, byte [esi - 0xe]
mov byte [eax - 0x76], cl
mov ecx, dword [esi - 0x18]
mov dword [eax - 0x74], ecx
cmp edi, dword [ebx]
jb 0x401f71
mov edi, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xb8]
jmp 0x401fec
mov esi, eax
mov dword [ebp - 0xb4], 0xc0000023
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
mov eax, dword [ebp - 0xb4]
add esp, 4
cmp eax, 0xc0000023
jne 0x40203d
push edi
call ebx
add esi, esi
push esi
mov dword [ebp - 0xb8], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
mov dword [ebp - 0xbc], eax
add esp, 8
test edi, edi
jne 0x401e70
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
test eax, eax
js 0x40209d
mov eax, dword [edi]
test eax, eax
jne 0x40207b
mov al, byte [edi + 4]
xor dl, dl
test al, al
je 0x402071
mov ecx, edi
movzx esi, al
mov al, byte [ecx + 0x50]
lea ecx, [ecx + 0x90]
test al, al
je 0x40206c
cmp al, 5
je 0x40206c
cmp al, 0xf
je 0x40206c
inc dl
sub esi, 1
jne 0x402055
mov esi, dword [ebp - 0xac]
mov byte [esi], dl
jmp 0x402098
mov esi, dword [ebp - 0xac]
cmp eax, 1
jne 0x40208d
mov al, byte [edi + 4]
mov byte [esi], al
jmp 0x402098
push edi
mov byte [esi], 0
call ebx
add esp, 4
xor edi, edi
cmp byte [esi], 0
jne 0x40202a
push edi
call ebx
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00416a63
mov esp, ebp
pop ebp
ret