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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56569b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f4
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
push 0
push ecx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.004ea0e0
mov eax, dword [esi + 0x440]
test eax, eax
je 0x5024f7
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5024f7
mov ecx, dword [esi + 0x440]
jmp 0x5024f9
xor ecx, ecx
mov eax, dword [esi + 0x42c]
test eax, eax
jl 0x502513
jg 0x50250f
mov eax, dword [esi + 0x428]
test eax, eax
jbe 0x502513
mov al, 1
jmp 0x502515
xor al, al
mov edx, dword [esi + 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [esi + 0x430]
push edx
push eax
mov eax, dword [esi + 0x434]
push eax
push ecx
lea ecx, [ebp - 0x300]
call fcn.00423fd0
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 2
call fcn.0053e1a5
cmp eax, 1
jne 0x5026a2
mov eax, dword [ebp - 0x110]
cmp eax, 1
jne 0x502591
mov edx, dword [esi + 0x54]
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x3c
push eax
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x38], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
jmp 0x5026a2
cmp eax, 2
jne 0x5025f0
mov ecx, dword [0x5c2a74]
mov dword [ebp - 0x14], ecx
mov edx, dword [esi + 0x54]
lea eax, [ebp - 0x14]
push edx
push 0x5a3e24
push eax
mov byte [ebp - 4], 3
call fcn.0053afda
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 0x5c
push ecx
call fcn.00526d20
add esp, 8
test eax, eax
je 0x5025e4
mov byte [eax], 0
mov edx, dword [ebp - 0x14]
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
jmp 0x50269d
cmp eax, 3
jne 0x5026a2
mov eax, dword [0x5c2a74]
xor bl, bl
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
push ecx
mov dword [ebp - 0xe8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x502636
cmp dword [ebp - 0xd8], 2
jne 0x502636
cmp dword [ebp - 0xe4], 6
jb 0x502636
mov bl, 1
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
test bl, bl
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
je 0x502678
mov edx, dword [esi + 0x54]
lea eax, [ebp - 0x14]
push edx
push str.shell32.dll_OpenAs_RunDLL__s
push eax
mov dword [ebp - 0x44], str.rundll32.exe
call fcn.0053afda
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x40], ecx
jmp 0x502685
mov edx, dword [esi + 0x54]
mov dword [ebp - 0x48], str.openas
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x38], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.005421be
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0xc
call fcn.005421be
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0xb
call fcn.005421be
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xa
call fcn.0053b9d2
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 9
call fcn.0054a098
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], 8
call fcn.0054a098
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call fcn.00549f48
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 6
call fcn.00549f10
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 5
call fcn.00420770
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 1
call fcn.0053dde6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret