Function at 0x401482
Capabilities:
Check os version

Disassembly:
push 0x1bc
push 0x4046d8
call fcn.00403368
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0xc8], 0x94
push 0x90
push edi
lea eax, [ebp - 0xc4]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x401732
cmp dword [ebp - 0xc4], 5
jne 0x4014f4
cmp dword [ebp - 0xc0], edi
jbe 0x4014f4
mov eax, 0xc039
mov word [0x42b138], ax
jmp 0x40152c
cmp dword [ebp - 0xc4], 6
jne 0x40151f
cmp dword [ebp - 0xc0], 2
jae 0x40151f
xor eax, eax
cmp dword [ebp - 0xc0], 1
sete al
lea eax, [eax + eax + 0xc03a]
mov word [0x42b138], ax
cmp word [0x42b138], di
je 0x401732
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x20], esi
cmp esi, edi
je 0x401553
push 0x82
push 9
mov eax, esi
mov edx, 0x406d34
call fcn.00402d34
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
cmp eax, edi
je 0x401575
push 0x8b
push 0x18
mov edx, 0x406d40
call fcn.00402d34
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call edi
mov ebx, eax
test ebx, ebx
je 0x401732
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
test eax, eax
je 0x4015b4
push 0x83
push 0x17
mov edx, 0x406d58
call fcn.00402d34
push eax
push dword [ebp - 0x20]
call esi
push eax
call edi
mov dword [0x42b140], eax
test eax, eax
je 0x401732
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0xb
call ebx
test eax, eax
je 0x401732
push dword [ebp - 0x24]
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x1c], eax
xor esi, esi
cmp eax, esi
je 0x401732
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push 0xb
call ebx
cmp eax, esi
jne 0x401732
mov byte [ebp - 0x1cc], 0
push 0x103
push esi
lea eax, [ebp - 0x1cb]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov ebx, dword [sym.imp.ntdll.dll_strstr]
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x1c]
cmp esi, dword [eax]
jae 0x401689
mov ecx, esi
imul ecx, ecx, 0x11c
lea eax, [ecx + eax + 0x20]
mov dword [ebp - 0x20], eax
push 0x4045fc
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x401686
push 0x404600
push dword [ebp - 0x20]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x401686
mov edx, eax
lea ecx, [ebp - 0x1cc]
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x40166d
imul esi, esi, 0x11c
mov eax, dword [ebp - 0x1c]
mov esi, dword [esi + eax + 0xc]
jmp 0x40168c
inc esi
jmp 0x40162e
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x401732
test esi, esi
je 0x401732
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
test eax, eax
je 0x4016d0
push 0x84
push 0x1a
mov edx, 0x406d70
call fcn.00402d34
push eax
push ebx
call edi
mov dword [0x42b130], eax
test eax, eax
je 0x401732
mov ecx, esi
sub ecx, ebx
add eax, ecx
mov dword [0x42b130], eax
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov dword [ebp - 0x18], esp
mov eax, esp
test eax, eax
je 0x40170a
push 0x89
push 0x17
mov edx, 0x406d8c
call fcn.00402d34
push eax
push ebx
call edi
mov dword [0x42b13c], eax
test eax, eax
je 0x401732
sub esi, ebx
add eax, esi
mov dword [0x42b13c], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [0x42b12c], eax
mov dword [ebp - 0x2c], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040174a
mov eax, dword [ebp - 0x2c]
lea esp, [ebp - 0x1d8]
call fcn.004033a1
ret