Function at 0x404290
Capabilities:
Check os version
Create thread

Disassembly:
sub esp, 0x14
push ebx
push esi
call fcn.00406eb0
mov dword [0x419010], eax
call fcn.00402e20
mov eax, dword [0x41b2a4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
jne 0x4042ba
call esi
mov dword [0x41b2a4], eax
cmp al, 6
jb 0x4042dc
test eax, eax
jne 0x4042c9
call esi
mov dword [0x41b2a4], eax
cmp al, 6
jne 0x4042e5
test eax, eax
jne 0x4042d8
call esi
mov dword [0x41b2a4], eax
test ah, ah
jne 0x4042e5
mov byte [0x40900a], 0
jmp 0x4042ec
mov byte [0x40900a], 1
mov eax, dword [0x41b240]
test eax, eax
je 0x4043c3
push eax
call fcn.004065c0
add esp, 4
mov ecx, eax
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404304
sub ecx, eax
sar ecx, 1
sub ecx, 1
mov edx, 0x5c
je 0x40432b
cmp word [eax + ecx*2 - 2], dx
jne 0x40432b
mov word [eax + ecx*2 - 2], 0
mov ecx, eax
lea ecx, [ecx]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x404330
sub ecx, eax
sar ecx, 1
sub ecx, 1
cmp ecx, 2
jbe 0x404359
cmp word [eax], dx
jne 0x404359
cmp word [eax + 2], dx
jne 0x404359
call fcn.00405a90
jmp 0x404363
push 1
call fcn.00405990
add esp, 4
call fcn.004044f0
mov eax, dword [0x41b250]
test eax, eax
je 0x4043b4
mov ecx, dword [eax]
test ecx, ecx
mov edx, ecx
je 0x4043b4
mov eax, dword [edx + 4]
test eax, eax
je 0x404389
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x404380
cmp dword [edx], 0
je 0x4043b4
mov eax, dword [ecx + 4]
test eax, eax
je 0x40439e
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x404395
mov ecx, dword [ecx]
call fcn.00402d60
test edx, edx
jl 0x4043b4
jg 0x4043af
test eax, eax
jbe 0x4043b4
call fcn.00407120
mov eax, dword [0x41b240]
pop esi
pop ebx
add esp, 0x14
jmp fcn.004076f0
cmp byte [0x41b26c], 0
je 0x404423
mov esi, dword [0x41b268]
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 8], 0x103
jne 0x4043f6
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x404415
mov esi, dword [0x41b268]
call fcn.004010a0
call fcn.004061f0
test al, al
je 0x404423
push 1
xor eax, eax
call fcn.00405990
add esp, 4
jmp 0x404488
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0x404260
push 0
push 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x2c], 1
call esi
push 0
push 0
push 0
push 0x404280
push 0
push 0
mov dword [esp + 0x20], eax
call esi
push 0xffffffffffffffff
mov dword [esp + 0x10], eax
push 1
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
call fcn.004044f0
mov eax, dword [0x41b250]
test eax, eax
je 0x4044df
mov ecx, dword [eax]
test ecx, ecx
mov edx, ecx
je 0x4044df
mov eax, dword [edx + 4]
test eax, eax
je 0x4044ae
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x4044a5
cmp dword [edx], 0
je 0x4044df
mov eax, dword [ecx + 4]
test eax, eax
je 0x4044c9
lea ebx, [ebx]
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4044c0
mov ecx, dword [ecx]
call fcn.00402d60
test edx, edx
jl 0x4044df
jg 0x4044da
test eax, eax
jbe 0x4044df
call fcn.00407120
xor eax, eax
pop esi
pop ebx
add esp, 0x14
jmp fcn.004076f0