Function at 0x405b50
Capabilities:
Check os version
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eef5b
mov eax, dword fs:[0]
push eax
sub esp, 0xbbc
mov eax, dword [0x658e64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0049ae41
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0049d15a
mov edi, eax
mov dword [ebp - 0xbc4], edi
test edi, edi
je 0x405c38
call fcn.0049333d
mov ecx, eax
test ecx, ecx
jne 0x405bbb
push 0x80004005
call fcn.00403040
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xbc0], esi
push 0x65
mov dword [ebp - 4], 0
call fcn.0049d46d
test eax, eax
je 0x405bef
push 0x65
push eax
lea ecx, [ebp - 0xbc0]
call fcn.0040b8b0
mov esi, dword [ebp - 0xbc0]
cmp dword [esi - 0xc], 0
je 0x405c19
push 0
push 0
push 0x800
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
call edi
mov eax, dword [ebp - 0xbc4]
push esi
push 0x10
push 0
push dword [eax + 4]
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405c38
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0xa8]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x80
push dword [ebx + 0x20]
call esi
push dword [ebx + 0xa8]
push 0
push 0x80
push dword [ebx + 0x20]
call esi
lea ecx, [ebx + 0xe8]
call fcn.004022c0
mov dword [ebx + 0x168], eax
lea eax, [ebp - 0xbbc]
push eax
mov dword [ebp - 0xbbc], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x405cbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov dword [ebx + 0x16c], eax
test eax, eax
je 0x405ca7
mov ecx, ebx
call fcn.00405e70
mov ecx, ebx
call fcn.00406330
cmp eax, 1
jne 0x405cda
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0xbb8]
cmp eax, 6
jne 0x405cd1
cmp dword [ebp - 0xbb4], 2
jae 0x405cd3
jmp 0x405c94
jbe 0x405c94
mov eax, 1
jmp 0x405c96
mov ecx, ebx
mov dword [ebx + 0x210], 0
call fcn.00406a40
lea ecx, [ebp - 0x310]
call fcn.00401dd0
lea eax, [ebp - 0x310]
push eax
push str.Platform:__s
lea eax, [ebp - 0x710]
push 0x400
push eax
call fcn.00401db0
add esp, 0x10
lea eax, [ebp - 0x710]
lea ecx, [ebx + 0xfd8]
push eax
call fcn.00492ef9
mov eax, dword [0x633194]
movq xmm0, qword [str.Administrator]
mov dword [ebp - 0x208], eax
mov ax, word [0x633198]
push 0x1f2
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push 0
push eax
movq qword [ebp - 0x210], xmm0
call fcn.005cf9e0
add esp, 0xc
mov dword [ebp - 0xbc8], 0x200
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x210]
push eax
push str.Username:__s
lea eax, [ebp - 0xb10]
push 0x400
push eax
call fcn.00401db0
add esp, 0x10
lea eax, [ebp - 0xb10]
lea ecx, [ebx + 0xf58]
push eax
call fcn.00492ef9
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0xb20]
push eax
push dword [ebx + 0x1a8]
call esi
mov eax, dword [ebp - 0xb18]
sub eax, dword [ebp - 0xb20]
mov dword [ebx + 0x208], eax
mov eax, dword [ebp - 0xb14]
sub eax, dword [ebp - 0xb1c]
mov dword [ebx + 0x20c], eax
lea eax, [ebp - 0xb20]
push eax
push dword [ebx + 0x20]
mov dword [ebx + 0x178], 1
call esi
mov ecx, dword [ebp - 0xb18]
xor edx, edx
sub ecx, dword [ebp - 0xb20]
mov eax, dword [ebx + 0x20c]
imul eax, ecx
push 0x46
div dword [ebx + 0x208]
push eax
push ecx
push 0
push 0
push 0
lea ecx, [ebx + 0x188]
call fcn.00492e9d
push 0
push 0
push 0
push 0
push ebx
push 0x405ab0
call fcn.00497366
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cc070
mov esp, ebp
pop ebp
ret