Function at 0x4015f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44c
mov eax, dword [0x416b74]
xor eax, esp
mov dword [esp + 0x448], eax
push ebp
push esi
mov esi, dword [esp + 0x45c]
mov dword [esp + 8], 0x100
call fcn.004031d0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x150]
push ecx
call fcn.004048b0
add esp, 8
xor eax, eax
mov ebp, 1
jmp 0x401640
mov cl, byte [eax + 0x41bfb0]
mov byte [esp + eax + 0x24c], cl
add eax, ebp
test cl, cl
jne 0x401640
lea eax, [esp + 0x24c]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401660
mov edx, dword [str.LskTSDat.ini]
mov ecx, dword [0x410478]
mov dword [eax], edx
mov edx, dword [0x41047c]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [eax + 4], ecx
mov cx, word [0x410480]
mov dword [eax + 8], edx
push 0x41c1b8
lea edx, [esp + 0x358]
push str._s_TSClient_List
push edx
mov word [eax + 0xc], cx
call edi
add esp, 0xc
test byte [0x41bda0], 8
jne 0x4016ef
cmp dword [esi + 0xc], ebp
mov ecx, dword [esi + 8]
lea eax, [esp + 0x150]
push eax
lea edx, [esp + 0x54]
push ecx
jne 0x4016dd
push str.Teacher
push str._s__Channel_d__Name_s
push edx
call edi
add esp, 0x14
jmp 0x401739
push str.Student
push str._s__Channel_d__Name_s
push edx
call edi
add esp, 0x14
jmp 0x401739
cmp dword [esi + 0xc], ebp
jne 0x401715
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
push eax
lea ecx, [esp + 0x154]
push ecx
push edx
push str.Teacher
push str._s__Channel_d__Name_s__PerfCnt_d
lea eax, [esp + 0x64]
push eax
jmp 0x401734
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ecx
lea edx, [esp + 0x154]
push edx
push eax
push str.Student
push str._s__Channel_d__Name_s__PerfCnt_d
lea ecx, [esp + 0x64]
push ecx
call edi
add esp, 0x18
mov dword [esp + 0xc], 0x40
call fcn.00404200
test eax, eax
jne 0x401757
call fcn.00404460
test eax, eax
je 0x401810
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00404820
add esp, 8
test eax, eax
je 0x401810
test byte [0x41bda0], 8
jne 0x4017b0
cmp dword [esi + 0xc], ebp
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x54]
push edx
jne 0x40179e
push str.Teacher
push str._s__Channel_d__Name_s
push eax
call edi
add esp, 0x14
jmp 0x4017f4
push str.Student
push str._s__Channel_d__Name_s
push eax
call edi
add esp, 0x14
jmp 0x4017f4
cmp dword [esi + 0xc], ebp
jne 0x4017d3
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push str.Teacher
push str._s__Channel_d__Name_s__PerfCnt_d
lea ecx, [esp + 0x64]
push ecx
jmp 0x4017ef
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
push str.Student
push str._s__Channel_d__Name_s__PerfCnt_d
lea edx, [esp + 0x64]
push edx
call edi
add esp, 0x18
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x360]
push eax
jmp 0x40182d
lea ecx, [esp + 0x250]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x360]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call fcn.00404460
test eax, eax
pop edi
je 0x401847
cmp dword [esi + 0xc], ebp
jne 0x401847
call fcn.00404c30
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x41bfb0]
mov byte [esp + eax + 0x4c], cl
add eax, ebp
test cl, cl
jne 0x401850
lea eax, [esp + 0x4c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401867
mov edx, dword [str.LskTSRun.exe]
mov ecx, dword [0x410408]
mov dword [eax], edx
mov edx, dword [0x41040c]
push ebp
mov dword [eax + 4], ecx
mov cx, word [0x410410]
mov dword [eax + 8], edx
push str.Teacher
lea edx, [esp + 0x54]
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push edx
mov word [eax + 0xc], cx
call fcn.004020e0
add esp, 0x10
call fcn.00404460
cmp eax, ebp
jne 0x4018d0
cmp dword [esi + 0xc], 2
jne 0x4018d0
mov eax, dword [esp + 0x458]
push esi
push eax
call fcn.00401350
add esp, 8
jmp 0x4018dc
push ebp
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp dword [esi + 0xc], ebp
jne 0x4018ea
movzx edx, word [esi + 8]
push edx
push 0xb
jmp 0x4018f1
movzx eax, word [esi + 8]
push eax
push 0xc
call fcn.004032a0
add esp, 8
push 0
call fcn.00402400
mov ecx, dword [esp + 0x454]
add esp, 4
pop esi
mov dword [0x41c2b8], ebp
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0040757a
add esp, 0x44c
ret