Function at 0x401710
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Resume thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430240
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x188
lea eax, [ebp - 0x198]
mov ecx, 0x1e
mov esi, str.C:Program_Files__x86_GRLevelXGR2Analyst_3gr2analyst.exe
lea edi, [ebp - 0x210]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00419ff0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call fcn.00419ff0
mov ecx, 0x16
lea edi, [ebp - 0x610]
mov esi, str.C:Program_Files__x86_GRLevelXGR2Analyst_3
lea eax, [ebp - 0x5b6]
rep movsd dword es:[edi], dword [esi]
push 0x1a6
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00419ff0
push 0xdc
lea eax, [ebp - 0x6ec]
push 0
push eax
call fcn.00419ff0
push 0x18
mov dword [ebp - method.GleeBug::Debugger.virtual_0], vtable.GleeBug::Debugger.0
mov dword [ebp - 0x694], 0x80010001
mov byte [ebp - 0x690], 0
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x628], 0
call fcn.00418e5b
add esp, 0x34
lea ecx, [ebp - 0x62c]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x624], 0
mov word [ebp - 0x620], pe_nt_image_headers32
mov byte [ebp - 0x61e], 0
mov dword [ebp - 0x61c], 0
mov dword [ebp - 0x618], 0
mov dword [ebp - 0x614], 0
call fcn.00405180
mov dword [ebp - method.GleeBug::Debugger.virtual_0], 0x436fd4
push 0x44
lea eax, [ebp - 0x6e8]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00419ff0
add esp, 0xc
lea ecx, [ebp - 0x410]
xorps xmm0, xmm0
lea esi, [ecx + 2]
xor edx, edx
movups xmmword [ebp - 0x6a4], xmm0
mov dword [ebp - 0x6f4], edx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401886
sub ecx, esi
sar ecx, 1
je 0x4018f9
lea edx, [ebp - 0x210]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4018a0
sub edx, esi
sar edx, 1
lea esi, [edx + 4]
mov edx, 2
add esi, ecx
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418e90
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x6f4], eax
push ecx
lea ecx, [ebp - 0x210]
push ecx
push str.__s___s
push esi
push eax
call fcn.00406330
mov edx, dword [ebp - 0x6f4]
add esp, 0x18
xor edi, edi
jmp 0x4018ff
lea edi, [ebp - 0x210]
cmp byte [ebp - 0x61e], 0
mov eax, 0x13
mov ecx, 0x14
cmovne eax, ecx
xor esi, esi
mov dword [ebp - 0x6f8], eax
nop dword [eax + eax]
lea ecx, [ebp - 0x6a4]
push ecx
lea ecx, [ebp - 0x6e8]
push ecx
lea ecx, [ebp - 0x610]
push ecx
push 0
push eax
push 0
push 0
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne byte [ebp - 0x6ed]
test eax, eax
je 0x401a62
cmp byte [ebp - 0x61e], 0
je 0x401a62
lea eax, [ebp - 0x6a4]
push eax
push edi
lea ecx, [ebp - 0x6ec]
call fcn.004067b0
test al, al
jne 0x401a23
push 0xc0000018
push dword [ebp - 0x6a0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xc0000018
push dword [ebp - 0x6a4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x6f4]
mov eax, esi
inc esi
cmp eax, 0xa
mov eax, dword [ebp - 0x6f8]
jl 0x401920
mov eax, edx
push eax
call fcn.00418e8b
add esp, 4
mov byte [ebp - 0x620], 0
mov eax, str.Debugger::Init_failed_
push eax
call fcn.0041be3f
add esp, 4
lea ecx, [ebp - 0x6ec]
call fcn.004053a0
push str.Debugger::Start_finished_
call fcn.0041be3f
add esp, 4
mov dword [ebp - method.GleeBug::Debugger.virtual_0], vtable.GleeBug::Debugger.0
lea ecx, [ebp - 0x62c]
call fcn.00406c60
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418bcb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x69c]
call fcn.004061f0
push 1
call dword [sym.imp.KERNEL32.dll_DebugSetProcessKillOnExit]
push dword [ebp - 0x6a0]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x6f4]
push eax
call fcn.00418e8b
add esp, 4
mov byte [ebp - 0x620], 0
mov eax, str.Debugger::Init_success_
jmp 0x4019d0
mov eax, dword [ebp - 0x6f4]
push eax
call fcn.00418e8b
add esp, 4
mov byte [ebp - 0x620], 0
cmp byte [ebp - 0x6ed], 0
je 0x4019cb
mov eax, str.Debugger::Init_success_
jmp 0x4019d0