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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af1a2
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x677e70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x130], edx
mov edi, ecx
mov dword [ebp - 0x138], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x125], 0
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x431c10
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x134], esi
mov dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.0057e31f
add esp, 8
test eax, eax
je 0x431c86
sub eax, dword [edi]
sar eax, 1
test eax, eax
jle 0x431c86
push eax
lea eax, [ebp - 0x12c]
mov ecx, edi
push eax
call fcn.0040cdc0
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 1
call fcn.00405520
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x12c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431c80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x134]
push 0x110
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x114
push 0
push eax
call fcn.0057ee10
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 5
jbe 0x431e33
push 0x44
lea eax, [ebp - 0x198]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x154], xmm0
call fcn.0057ee10
add esp, 0xc
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x140], eax
test eax, eax
je 0x431d93
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x431d7e
push 0x44
lea eax, [ebp - 0x198]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x154], xmm0
call fcn.0057ee10
mov eax, dword [edi]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x431d3b
push dword [eax - 0xc]
mov ecx, edi
call fcn.00404890
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x198]
push eax
push esi
push 0
push 0x4000210
push dword [edi]
push 0
push 1
push dword [ebp - 0x130]
call dword [ebp - 0x12c]
test eax, eax
jne 0x431d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x13c]
mov dword [ecx], eax
jmp 0x431d7e
mov byte [ebp - 0x125], 1
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x125], 0
jne 0x431e06
push 0x44
lea eax, [ebp - 0x198]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x154], xmm0
call fcn.0057ee10
mov eax, dword [edi]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x431dc2
push dword [eax - 0xc]
mov ecx, edi
call fcn.00404890
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x198]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
push dword [edi]
push 0
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x431dff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x13c]
mov dword [ecx], eax
jmp 0x431e06
mov byte [ebp - 0x125], 1
mov eax, dword [ebp - 0x150]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x431e19
push eax
call esi
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x431e26
push eax
call esi
cmp byte [ebp - 0x125], 0
jne 0x431fe2
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004053d0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x12c], esi
mov byte [ebp - 4], 2
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x431e63
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x130], edi
mov eax, dword [ebp - 0x138]
mov byte [ebp - 4], 3
push 0x5c
push dword [eax]
call fcn.0057e31f
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x431f78
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x431f78
cmp ecx, dword [eax - 0xc]
jge 0x431f78
lea eax, [eax + ecx*2]
push 0x20
push eax
call fcn.0057e271
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x431f78
mov eax, dword [ebp - 0x138]
sub ecx, dword [eax]
sar ecx, 1
mov dword [ebp - 0x144], ecx
test ecx, ecx
jle 0x431f78
push ecx
lea ecx, [ebp - 0x140]
push ecx
mov ecx, eax
call fcn.0040cdc0
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 4
call fcn.00405520
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x140]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431f23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x144]
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x144]
push eax
call fcn.0042f680
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 5
call fcn.00405520
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x144]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431f6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x130]
mov esi, dword [ebp - 0x12c]
push 1
push dword [ebp - 0x134]
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setge byte [ebp - 0x125]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x13c]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov dword [ecx], eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431fc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x431fe5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x431fe5
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x432007
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x125]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret