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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66551c
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x338], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x75e244], ebx
jne 0x5b9e0c
cmp dword [esi + 0x528], ebx
je 0x5b98a8
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x528]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5b988e
push ebx
push ebx
push 0x10
mov edx, dword [esi + 0x528]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], ebx
jmp 0x5b98a8
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
mov byte [ebp - 4], 3
push ebx
push 1
lea edx, [ebp - 0x38]
push edx
lea ecx, [esi + 0x20]
call fcn.005917e0
mov edi, dword [esi + 0x44]
cmp edi, 4
je 0x5b98dc
cmp edi, 5
je 0x5b98dc
cmp dword [esi + 0x354], ebx
je 0x5b98f2
mov eax, dword [esi + 0x500]
mov ecx, dword [esi + 0x504]
mov edx, eax
or edx, ecx
je 0x5b98f2
mov ebx, eax
jmp 0x5b98fe
mov ecx, dword [esi + 0x50c]
mov ebx, dword [esi + 0x508]
mov edx, dword [esi + 0x510]
mov eax, dword [esi + 0x514]
cmp eax, ecx
jl 0x5b9918
jg 0x5b9914
cmp edx, ebx
jbe 0x5b9918
mov ebx, edx
mov ecx, eax
cmp dword [esi + 0x504], 0
jl 0x5b992c
jg 0x5b9943
cmp dword [esi + 0x500], 0
ja 0x5b9943
cmp edi, 4
je 0x5b9943
cmp edi, 5
je 0x5b9943
cmp dword [esi + 0x354], 0
jne 0x5b9943
xor dl, dl
jmp 0x5b9945
mov dl, 1
mov eax, dword [ebp - 0x38]
test eax, eax
mov edi, eax
jne 0x5b9951
lea edi, [ebp - 0x34]
cmp dword [esi + 0x54], 0
je 0x5b995c
mov eax, dword [esi + 0x54]
jmp 0x5b995f
lea eax, [esi + 0x58]
push 0
push edi
push eax
push edx
push ecx
push ebx
movzx eax, word [esi + 0x17e]
and eax, 1
push eax
lea ecx, [ebp - 0x334]
call fcn.00444fe0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x334]
call fcn.005f6434
cmp eax, 1
jne 0x5b9dea
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x5b9a94
mov ebx, 0x3c
push ebx
push 0
lea ecx, [ebp - 0x4a4]
push ecx
call fcn.00620850
add esp, 0xc
mov dword [ebp - 0x4a4], ebx
mov edi, 0x40
mov dword [ebp - 0x4a0], edi
cmp dword [esi + 0x54], 0
je 0x5b99d6
mov eax, dword [esi + 0x54]
jmp 0x5b99d9
lea eax, [esi + 0x58]
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x488], 1
lea edx, [ebp - 0x4a4]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x5b9dea
cmp dword [0x752d28], eax
jne 0x5b9dea
push ebx
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00620850
add esp, 0xc
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], edi
cmp dword [esi + 0x54], 0
je 0x5b9a32
mov esi, dword [esi + 0x54]
jmp 0x5b9a35
add esi, 0x58
push 0
push esi
lea ecx, [ebp - 0x338]
push ecx
call fcn.00402a70
mov byte [ebp - 4], 5
push 0x3f
mov edx, dword [ebp - 0x338]
push edx
call fcn.00621750
add esp, 0x14
test eax, eax
jne 0x5b9a80
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x44c], 1
lea ecx, [ebp - 0x468]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x338]
call fcn.00402570
jmp 0x5b9dea
cmp eax, 2
jne 0x5b9c1c
xor edi, edi
cmp dword [esi + 0x54], edi
je 0x5b9aa9
mov eax, dword [esi + 0x54]
jmp 0x5b9aac
lea eax, [esi + 0x58]
push eax
call fcn.00457ae0
add esp, 4
test eax, eax
jne 0x5b9dea
cmp dword [esi + 0x54], edi
je 0x5b9ac7
mov esi, dword [esi + 0x54]
jmp 0x5b9aca
add esi, 0x58
push esi
lea ecx, [ebp - 0x20]
call fcn.00402180
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x5b9ae1
lea eax, [ebp - 0x1c]
push 0x5c
push eax
call fcn.0061fc83
add esp, 8
mov esi, eax
cmp esi, edi
je 0x5b9dde
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
xor edx, edx
mov word [ebp - 0x28], dx
mov bl, 7
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
cmp eax, edi
jne 0x5b9b11
lea eax, [ebp - 0x1c]
push 0
push eax
push str._n__select___s_
lea ecx, [ebp - 0x2c]
call fcn.004021b0
add esi, 2
xor eax, eax
mov word [esi], ax
mov esi, 0x3c
push esi
push eax
lea ecx, [ebp - 0x3b4]
push ecx
call fcn.00620850
add esp, 0xc
mov dword [ebp - 0x3b4], esi
mov edi, 0x40
mov dword [ebp - 0x3b0], edi
mov dword [ebp - 0x398], 1
mov dword [ebp - 0x3a4], 0x67f1c4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5b9b73
mov dword [ebp - 0x3a0], eax
jmp 0x5b9b7c
lea edx, [ebp - 0x28]
mov dword [ebp - 0x3a0], edx
lea eax, [ebp - 0x3b4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x5b9c0b
cmp dword [0x752d28], eax
jne 0x5b9c0b
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x5b9b9f
lea eax, [ebp - 0x28]
push 0
push eax
lea ecx, [ebp - 0x338]
push ecx
call fcn.00402a70
mov byte [ebp - 4], 8
push esi
push 0
lea edx, [ebp - 0x42c]
push edx
call fcn.00620850
add esp, 0x18
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x410], 1
mov dword [ebp - 0x41c], str.explorer.exe
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x418], eax
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x338]
call fcn.00402570
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00401210
jmp 0x5b9dde
cmp eax, 3
jne 0x5b9dea
xor bl, bl
mov byte [ebp - 0x339], bl
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
xor edx, edx
mov word [ebp - 0x1c], dx
mov byte [ebp - 4], 9
mov dword [ebp - 0xcc], 0x94
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5b9c74
cmp dword [ebp - 0xbc], 2
jne 0x5b9c74
cmp dword [ebp - 0xc8], 6
jb 0x5b9c74
mov bl, 1
mov byte [ebp - 0x339], bl
push 0x3c
push 0
lea ecx, [ebp - 0x378]
push ecx
call fcn.00620850
add esp, 0xc
mov dword [ebp - 0x378], 0x3c
mov edi, 0x40
mov dword [ebp - 0x374], edi
mov dword [ebp - 0x35c], 1
test bl, bl
je 0x5b9d0c
mov dword [ebp - 0x368], str.rundll32.exe
cmp dword [esi + 0x54], 0
je 0x5b9cbf
mov esi, dword [esi + 0x54]
jmp 0x5b9cc2
add esi, 0x58
push 0
push esi
push str.shell32.dll_OpenAs_RunDLL__s
lea ecx, [ebp - 0x20]
call fcn.004021b0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5b9cf1
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x5b9dde
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x364], edx
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x5b9dde
cmp dword [esi + 0x54], 0
je 0x5b9d17
mov eax, dword [esi + 0x54]
jmp 0x5b9d1a
lea eax, [esi + 0x58]
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x36c], str.openas
lea ecx, [ebp - 0x378]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x5b9dde
cmp dword [0x752d28], eax
jne 0x5b9dde
cmp dword [esi + 0x54], eax
je 0x5b9d55
mov esi, dword [esi + 0x54]
jmp 0x5b9d58
add esi, 0x58
push 0
push esi
lea edx, [ebp - 0x338]
push edx
call fcn.00402a70
mov byte [ebp - 4], 0xa
push 0x3f
mov eax, dword [ebp - 0x338]
push eax
call fcn.00621750
add esp, 0x14
test eax, eax
jne 0x5b9dcf
push 0x3c
push eax
lea ecx, [ebp - 0x3f0]
push ecx
call fcn.00620850
add esp, 0xc
mov dword [ebp - 0x3f0], 0x3c
mov dword [ebp - 0x3ec], edi
mov dword [ebp - 0x3d4], 1
mov edx, dword [ebp - 0x338]
mov dword [ebp - 0x3e0], edx
mov dword [ebp - 0x3e4], 0x68516c
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x338]
call fcn.00402570
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00401210
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x334]
call fcn.00445170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062016f
mov esp, ebp
pop ebp
ret