Function at 0x4042a0
Capabilities:
Check os version
Create thread

Disassembly:
sub esp, 0x14
push ebx
push esi
call fcn.00406ec0
mov dword [0x419010], eax
call fcn.00402e30
mov eax, dword [0x41b2a4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
jne 0x4042ca
call esi
mov dword [0x41b2a4], eax
cmp al, 6
jb 0x4042ec
test eax, eax
jne 0x4042d9
call esi
mov dword [0x41b2a4], eax
cmp al, 6
jne 0x4042f5
test eax, eax
jne 0x4042e8
call esi
mov dword [0x41b2a4], eax
test ah, ah
jne 0x4042f5
mov byte [0x40900a], 0
jmp 0x4042fc
mov byte [0x40900a], 1
mov eax, dword [0x41b240]
test eax, eax
je 0x4043d3
push eax
call fcn.004065d0
add esp, 4
mov ecx, eax
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404314
sub ecx, eax
sar ecx, 1
sub ecx, 1
mov edx, 0x5c
je 0x40433b
cmp word [eax + ecx*2 - 2], dx
jne 0x40433b
mov word [eax + ecx*2 - 2], 0
mov ecx, eax
lea ecx, [ecx]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x404340
sub ecx, eax
sar ecx, 1
sub ecx, 1
cmp ecx, 2
jbe 0x404369
cmp word [eax], dx
jne 0x404369
cmp word [eax + 2], dx
jne 0x404369
call fcn.00405aa0
jmp 0x404373
push 1
call fcn.004059a0
add esp, 4
call fcn.00404500
mov eax, dword [0x41b250]
test eax, eax
je 0x4043c4
mov ecx, dword [eax]
test ecx, ecx
mov edx, ecx
je 0x4043c4
mov eax, dword [edx + 4]
test eax, eax
je 0x404399
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x404390
cmp dword [edx], 0
je 0x4043c4
mov eax, dword [ecx + 4]
test eax, eax
je 0x4043ae
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4043a5
mov ecx, dword [ecx]
call fcn.00402d70
test edx, edx
jl 0x4043c4
jg 0x4043bf
test eax, eax
jbe 0x4043c4
call fcn.00407130
mov eax, dword [0x41b240]
pop esi
pop ebx
add esp, 0x14
jmp fcn.00407700
cmp byte [0x41b26c], 0
je 0x404433
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 0x404406
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x404425
mov esi, dword [0x41b268]
call fcn.004010a0
call fcn.00406200
test al, al
je 0x404433
push 1
xor eax, eax
call fcn.004059a0
add esp, 4
jmp 0x404498
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0x404270
push 0
push 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x2c], 1
call esi
push 0
push 0
push 0
push 0x404290
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.00404500
mov eax, dword [0x41b250]
test eax, eax
je 0x4044ef
mov ecx, dword [eax]
test ecx, ecx
mov edx, ecx
je 0x4044ef
mov eax, dword [edx + 4]
test eax, eax
je 0x4044be
mov edx, eax
mov eax, dword [edx + 4]
test eax, eax
jne 0x4044b5
cmp dword [edx], 0
je 0x4044ef
mov eax, dword [ecx + 4]
test eax, eax
je 0x4044d9
lea ebx, [ebx]
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4044d0
mov ecx, dword [ecx]
call fcn.00402d70
test edx, edx
jl 0x4044ef
jg 0x4044ea
test eax, eax
jbe 0x4044ef
call fcn.00407130
xor eax, eax
pop esi
pop ebx
add esp, 0x14
jmp fcn.00407700