Function at 0x4060b1
Capabilities:
Accept command line arguments
Check os version
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13ec
call fcn.00410ce0
push ebx
push esi
push edi
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x406105
mov eax, dword [esp + 0x44]
cmp eax, 2
jle 0x406105
add eax, 0xfffffffe
push eax
lea edi, [esi + 8]
call fcn.00403b93
push eax
mov eax, edi
call fcn.00402de4
test al, al
je 0x406105
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0xfa
mov bl, 0x20
mov dword [esp + 0x2c], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov cl, byte [esp + 0x2c]
add dword [esp + 0x2c], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x1c]
inc esi
cmp dword [esp + 0x2c], 5
jl 0x406138
inc esi
dec dword [esp + 0x14]
jne 0x40612b
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov cl, al
and cl, 0x3f
lea eax, [esp + 0x20]
push eax
add cl, bl
lea eax, [esp + 0x74]
inc esi
push eax
mov byte [esi + 1], 0
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov edx, ecx
and edx, 0x80000001
jns 0x4061a7
dec edx
or edx, 0xfffffffe
inc edx
cmp word [eax + edx*2], 0
je 0x4061b9
add ecx, 0xa
cmp ecx, 0xc8
jl 0x406198
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x70]
push eax
call esi
call fcn.0040319f
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x70]
push eax
call esi
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], 0xfa
mov dword [esp + 0x1c], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x30]
mov al, byte [eax]
mov cl, byte [esp + 0x1c]
add dword [esp + 0x1c], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x30]
inc esi
cmp dword [esp + 0x1c], 5
jl 0x406215
inc esi
dec dword [esp + 0x14]
jne 0x406208
mov eax, dword [esp + 0x30]
mov al, byte [eax]
mov cl, al
and cl, 0x3f
add cl, bl
inc esi
mov byte [esi + 1], 0
mov dword [esp + 0x14], 1
xor esi, esi
inc esi
push 1
call edi
push 0
call edi
call fcn.0040319f
sub eax, dword [esp + 0x2c]
cmp eax, 0xa
ja 0x40627c
inc esi
cmp esi, 8
jle 0x406260
call fcn.0040319f
sub eax, dword [esp + 0x2c]
cmp eax, 0xa
ja 0x406460
fild dword [esp + 0x14]
xor esi, esi
inc esi
mov dword [esp + 0x18], esi
fdiv qword [0x418d38]
fsub qword [0x418d30]
fmul qword [0x418d28]
fstp qword [esp + 0x48]
jmp 0x4062b4
xor esi, esi
inc esi
fild dword [esp + 0x18]
push esi
fdiv qword [0x418d20]
fsub qword [0x418d30]
fmul qword [0x418d28]
fsub qword [0x418d18]
fstp qword [esp + 0x34]
call edi
push 0
call edi
fldz
fst qword [esp + 0x38]
mov dword [esp + 0x1c], esi
fstp qword [esp + 0x20]
call fcn.0040319f
sub eax, dword [esp + 0x2c]
cmp eax, 0xa
ja 0x406351
fld qword [esp + 0x38]
fmul qword [esp + 0x38]
fld qword [esp + 0x20]
fmul qword [esp + 0x20]
fsubp st(1)
fadd qword [esp + 0x30]
fld qword [esp + 0x38]
fadd st(0), st(0)
fmul qword [esp + 0x20]
fadd qword [esp + 0x48]
fstp qword [esp + 0x20]
fst qword [esp + 0x38]
fld st(0)
fmulp st(1)
fld qword [esp + 0x20]
fmul qword [esp + 0x20]
faddp st(1)
fcomp qword [0x418d10]
fnstsw ax
test ah, 0x41
jne 0x406346
mov dword [esp + 0x1c], 0x1869f
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0x64
jl 0x4062e9
call fcn.0040319f
sub eax, dword [esp + 0x2c]
cmp eax, 0xa
ja 0x406440
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], 0xfa
mov dword [esp + 0x30], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x38]
mov al, byte [eax]
mov cl, byte [esp + 0x30]
add dword [esp + 0x30], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x38]
inc esi
cmp dword [esp + 0x30], 5
jl 0x4063a2
inc esi
dec dword [esp + 0x20]
jne 0x406395
mov eax, dword [esp + 0x38]
mov al, byte [eax]
mov cl, al
and cl, 0x3f
add cl, bl
inc esi
push 0x1a
mov byte [esi + 1], 0
pop esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x28], 0x214
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
dec esi
jne 0x4063e5
cmp dword [esp + 0x1c], 0x1869f
jge 0x406440
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov edx, ecx
and edx, 0x80000001
jns 0x406421
dec edx
or edx, 0xfffffffe
inc edx
cmp word [eax + edx*2], 0
je 0x40642e
inc ecx
cmp ecx, 0x14
jl 0x406412
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0xaa
jle 0x4062b1
call fcn.0040319f
sub eax, dword [esp + 0x2c]
cmp eax, 0xa
ja 0x406460
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x141
jle 0x40625d
push 0
call dword [sym.imp.USER32.dll_GetKeyboardType]
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0xfa
mov dword [esp + 0x14], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x18]
mov al, byte [eax]
mov cl, byte [esp + 0x14]
add dword [esp + 0x14], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x18]
inc esi
cmp dword [esp + 0x14], 5
jl 0x40648c
inc esi
dec dword [esp + 0x20]
jne 0x40647f
inc esi
mov byte [esi + 1], 0
call fcn.00403b93
mov ecx, dword [ebp + 8]
mov dword [eax + 0x5804], ecx
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0xfa
mov dword [esp + 0x14], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x18]
mov al, byte [eax]
mov cl, byte [esp + 0x14]
add dword [esp + 0x14], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x18]
inc esi
cmp dword [esp + 0x14], 5
jl 0x4064f1
inc esi
dec dword [esp + 0x20]
jne 0x4064e4
inc esi
mov byte [esi + 1], 0
call fcn.00403b93
call fcn.0040659d
lea eax, [esp + 0x70]
lea esi, [esp + 0x458]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0xfa
mov dword [esp + 0x14], 2
mov byte [esp + 0x13], 0
push 0
call edi
mov eax, dword [esp + 0x18]
mov al, byte [eax]
mov cl, byte [esp + 0x14]
add dword [esp + 0x14], 2
and al, 0xc0
shr al, cl
or byte [esp + 0x13], al
inc dword [esp + 0x18]
inc esi
cmp dword [esp + 0x14], 5
jl 0x406552
inc esi
dec dword [esp + 0x20]
jne 0x406545
mov eax, dword [esp + 0x18]
mov al, byte [eax]
shr al, 2
and al, 0x30
inc esi
pop edi
mov byte [esi + 1], 0
add al, bl
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10