Function at 0x412c90
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6237e4
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x6cd400]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x6cd400]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
push 0x676964
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
call fcn.00403c30
mov dword [esp + 0x1e0], 0
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x412d4c
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0x1e0], 1
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0x1e0], 0
cmp byte [0x6d6ba2], 0
je 0x412d65
push 0x18
push 0x6799ac
lea ecx, [esp + 0x54]
call fcn.004039e0
push 0xb
push 0x6799e0
lea ecx, [esp + 0x54]
call fcn.004039e0
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x58]
call fcn.00403f80
push 8
push 0x6799f8
lea ecx, [esp + 0x54]
call fcn.004039e0
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x412dcf
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0x1e0], 2
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0x1e0], 0
push 0xffffffffffffffff
push 0
push 0x6d67dc
lea ecx, [esp + 0x58]
call fcn.00403f80
push 1
push 0x679a0c
lea ecx, [esp + 0x54]
call fcn.004039e0
xor eax, eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
mov byte [esp + 0x1e0], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push eax
lea ecx, [esp + 0x9c]
call fcn.00499700
add esp, 8
lea ecx, [esp + 0x4c]
push 7
push 0x679a10
call fcn.004039e0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x58]
call fcn.00403f80
push 0xd
push 0x679a20
lea ecx, [esp + 0x54]
call fcn.004039e0
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x412eba
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0x1e0], 4
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0x1e0], 3
mov eax, dword [case.0x79a990.0]
cmp byte [0x6d682f], 0
je 0x412f05
test al, 1
jne 0x412ef7
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0x1e0], 5
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0x1e0], 3
cmp byte [0x6d6812], 0
mov edx, 0x679a3c
jne 0x412f0a
mov edx, 0x679a48
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412f10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.004039e0
push 0x38
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0x3c
call fcn.005edd10
xor eax, eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0xc
mov dword [esp + 0x14], 0x540
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov byte [esp + 0x1e0], 6
lea edx, [eax + 0xf]
lea ecx, [esp + 0x64]
call fcn.004a05c0
cmp dword [esp + 0x78], 8
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push 0x11c
mov dword [esp + 0x24], eax
lea eax, [esp + 0xb0]
push 0
push eax
call fcn.005edd10
add esp, 0xc
lea eax, [esp + 0xac]
push eax
mov dword [esp + 0xb0], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x412fe2
mov edi, dword [esp + 0xb0]
mov esi, dword [esp + 0xb4]
jmp 0x412fea
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
call fcn.0040f000
test al, al
je 0x41300c
cmp edi, 5
jne 0x41300c
cmp esi, 1
je 0x413002
cmp esi, 2
jne 0x41300c
mov dword [esp + 0x1c], 0x679994
jmp 0x413014
mov dword [esp + 0x1c], 0x6799a0
cmp dword [esp + 0x60], 8
lea eax, [esp + 0x4c]
cmovae eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x6c]
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], 0
call fcn.00403b10
mov byte [esp + 0x1e0], 7
lea ecx, [esp + 0x7c]
call fcn.004a0980
cmp dword [esp + 0x90], 8
lea eax, [esp + 0x7c]
cmovae eax, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x30], 0xa
xor bl, bl
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [esp + 0x48]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x1e0], 6
cmp dword [esp + 0x90], 8
jb 0x4130e0
push dword [esp + 0x7c]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
mov byte [esp + 0x1e0], 3
cmp dword [esp + 0x78], 8
jb 0x413118
push dword [esp + 0x64]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov byte [esp + 0x1e0], al
cmp dword [esp + 0xa8], 8
jb 0x41314f
push dword [esp + 0x94]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
mov dword [esp + 0x1e0], 0xffffffff
cmp dword [esp + 0x60], 8
jb 0x41318d
push dword [esp + 0x4c]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov word [esp + 0x4c], ax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov al, bl
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret