Function at 0x140139a50
Capabilities:
Terminate thread

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rdx
mov rsi, rcx
movzx eax, word [rdx + 0x10]
xor r14d, r14d
cmp eax, dword [rcx + 0xbc]
jne 0x140139cb4
mov rcx, qword [rcx + 0xa8]
test rcx, rcx
je 0x140139ab6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xa8], r14
mov rcx, qword [rsi + 0x128]
mov rcx, qword [rcx + 0x140]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [r15 + 0x20], r14
je 0x140139bdc
mov rax, qword [r15 + 8]
cmp rax, 1
jne 0x140139b4c
mov rcx, qword [rsi + 0x138]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0xd0]
cmp byte [rsi + 0x114], r14b
je 0x140139c58
mov dword [rsi + 0x110], 4
mov rax, qword [rsi]
lea rdx, [rbp - 0x69]
mov rcx, rsi
call qword [rax + 0xb8]
mov ecx, dword [rax + 4]
mov dword [rsi + 0x118], ecx
mov qword [rsi + 0x11c], 0x168
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov rcx, rax
xor r9d, r9d
lea edx, [r9 + 2]
lea r8d, [r9 + 0x64]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x140139c58
cmp rax, 2
jne 0x140139c58
mov qword [rbp - 0x61], r14
lea edx, [rax + 0xf]
lea rcx, [rbp - 0x69]
call fcn.1402028a0
mov eax, dword [rbp - 0x61]
inc eax
movsxd rdx, eax
mov r9d, 0x11
lea r8, str.Kickstart_Success
mov rcx, qword [rbp - 0x69]
call fcn.1402c06dc
mov edx, 0x11
lea rcx, [rbp - 0x69]
call fcn.140203bb0
nop
lea rdx, [rbp - 0x69]
lea rcx, [rbp + 0x17]
call fcn.1400f6d90
nop
mov rdx, rax
mov rcx, qword [rsi + 0x138]
call fcn.1401ff9c0
nop
cmp dword [rbp + 0x1f], 0
jle 0x140139bc1
mov rcx, qword [rbp + 0x17]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x61], 0
jle 0x140139bd0
mov rcx, qword [rbp - 0x69]
call fcn.1402bd0e0
xor edx, edx
mov rcx, rsi
call fcn.140139090
jmp 0x140139c58
mov qword [rbp - 0x61], r14
mov edx, 0x10
lea rcx, [rbp - 0x69]
call fcn.1402028a0
mov eax, dword [rbp - 0x61]
inc eax
movsxd rdx, eax
mov r9d, 0x10
lea r8, str.Kickstart_Failed
mov rcx, qword [rbp - 0x69]
call fcn.1402c06dc
mov edx, 0x10
lea rcx, [rbp - 0x69]
call fcn.140203bb0
nop
lea rdx, [rbp - 0x69]
lea rcx, [rbp + 0x17]
call fcn.1400f6d90
nop
mov rdx, rax
mov rcx, qword [rsi + 0x138]
call fcn.1401ff9c0
nop
cmp dword [rbp + 0x1f], 0
jle 0x140139c49
mov rcx, qword [rbp + 0x17]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x61], 0
jle 0x140139c58
mov rcx, qword [rbp - 0x69]
call fcn.1402bd0e0
mov rcx, qword [rsi + 0x128]
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x60]
lea rdx, [rbp + 0x17]
mov rcx, qword [rsi + 0x128]
call fcn.140212520
mov rcx, rax
mov r8, qword [rsi + 0x130]
mov r9, qword [r8]
mov rax, qword [rax + 8]
sub rax, qword [rcx]
sar rax, 3
cmp eax, 1
sete dl
mov rcx, r8
call qword [r9 + 0x60]
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14013a195
call fcn.14021ae20
jmp 0x14013a195
cmp eax, dword [rcx + 0xb8]
jne 0x140139da2
mov r12, qword [rdx + 8]
mov rdi, qword [r12 + 8]
test rdi, rdi
jne 0x140139cd7
mov ebx, r14d
mov qword [rbp - 0x61], r14
jmp 0x140139cf2
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2], r14w
jne 0x140139ce0
mov qword [rbp - 0x61], r14
test ebx, ebx
jne 0x140139cff
lea rax, [0x14034d1a0]
mov qword [rbp - 0x69], rax
jmp 0x140139d21
mov edx, ebx
lea rcx, [rbp - 0x69]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rbp - 0x61]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rbp - 0x69]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rbp - 0x69]
call fcn.140203bb0
nop
mov rdi, qword [rsi + 0x138]
mov edx, dword [rbp - 0x5d]
lea rcx, [rdi + 0x40]
call fcn.1402028a0
movsxd r9, dword [rbp - 0x5d]
mov eax, dword [rdi + 0x48]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x69]
mov rcx, qword [rdi + 0x40]
call fcn.1402c06dc
mov edx, dword [rbp - 0x5d]
lea rcx, [rdi + 0x40]
call fcn.140203bb0
cmp qword [rdi + 8], 0
je 0x140139d85
mov rbx, qword [rdi + 0x40]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop
cmp dword [rbp - 0x61], 0
jle 0x140139d94
mov rcx, qword [rbp - 0x69]
call fcn.1402bd0e0
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
movzx ecx, word [r15 + 0x10]
cmp ecx, 0x14
jg 0x14013a063
je 0x140139f91
dec ecx
je 0x140139f81
dec ecx
je 0x140139f37
cmp ecx, 0xd
jne 0x140139f81
lea rdx, [rbp - 0x49]
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_BeginPaint]
mov rdi, qword [rbp - 0x49]
lea rbx, [0x14041ef00]
nop word [rax + rax]
mov rdx, qword [rsi + 0xc0]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov edx, 0x585858
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetTextColor]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetBkMode]
mov r8d, dword [rbx + 4]
lea eax, [r8 + 0x18]
mov dword [rsp + 0x20], eax
xor edx, edx
lea r9d, [rdx + 0x15]
lea rcx, [rbp + 7]
call qword [sym.imp.USER32.dll_SetRect]
mov eax, dword [rbp + 0x13]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0xf]
mov r8d, dword [rbp + 0xb]
xor edx, edx
lea rcx, [rbp + 7]
call qword [sym.imp.USER32.dll_SetRect]
mov dword [rsp + 0x20], 0x22
lea r9, [rbp + 7]
mov r8d, 1
mov rdx, qword [rbx - 0x10]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [rbp + 0xb]
lea eax, [rcx + 8]
mov dword [rbp + 0x1b], eax
mov dword [rbp + 0x17], 0x20
mov dword [rbp + 0x1f], 0x296
lea eax, [rcx + 0x30]
mov dword [rbp + 0x23], eax
cmp dword [rbx], 0xffffffff
jne 0x140139eac
mov rcx, qword [rbx - 8]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140139ea0
mov dword [rbx], eax
mov edx, 0x585858
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rdx, qword [rsi + 0xc8]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x20], 0x10
lea r9, [rbp + 0x17]
mov r8d, dword [rbx]
mov rdx, qword [rbx - 8]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DrawTextW]
cmp r14d, 3
jne 0x140139f11
mov ecx, dword [rbp + 0x17]
mov dword [rbp - 0x69], ecx
mov ecx, dword [rbp + 0x1b]
add ecx, 0xa
add eax, ecx
mov dword [rbp - 0x65], eax
mov rcx, qword [rsi + 0x140]
mov rax, qword [rcx]
lea rdx, [rbp - 0x69]
call qword [rax + 0xa0]
inc r14d
add rbx, 0x18
movsxd rax, r14d
cmp rax, 4
jb 0x140139df0
lea rdx, [rbp - 0x49]
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_EndPaint]
jmp 0x14013a195
mov rdx, r15
mov rcx, rsi
call fcn.1401ffaa0
cmp qword [rsi + 0xa8], 0
je 0x14013a195
mov edx, 0x7530
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14013a195
xor edx, edx
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14013a195
mov rdx, r15
mov rcx, rsi
call fcn.1401ffaa0
jmp 0x14013a195
mov rdi, qword [r15 + 0x20]
lea rdx, [rbp + 0x17]
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_GetClientRect]
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov r8, rax
lea rdx, [rbp + 0x17]
mov rcx, rdi
call qword [sym.imp.USER32.dll_FillRect]
mov rcx, qword [rsi + 0x128]
mov rax, qword [rcx]
call qword [rax]
mov rcx, rax
lea rdx, [rbp + 0x17]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov qword [rbp + 7], r14
mov eax, dword [rbp + 0x1f]
sub eax, dword [rbp + 0x17]
mov dword [rbp + 0xf], eax
mov eax, dword [rbp + 0x23]
sub eax, dword [rbp + 0x1b]
mov dword [rbp + 0x13], eax
mov rcx, qword [rsi + 0x128]
mov rax, qword [rcx]
call qword [rax]
mov rcx, rax
mov r9d, 2
lea r8, [rbp + 7]
mov rdx, qword [r15]
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, 1
xor ecx, ecx
mov r8d, 0xcccccc
call qword [sym.imp.GDI32.dll_CreatePen]
mov rbx, rax
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r10d, dword [rbp + 0x13]
inc r10d
mov r9d, dword [rbp + 0xf]
inc r9d
mov r8d, dword [rbp + 0xb]
dec r8d
mov edx, dword [rbp + 7]
dec edx
mov dword [rsp + 0x20], r10d
mov rcx, rdi
call qword [sym.imp.GDI32.dll_Rectangle]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x14013a18d
cmp ecx, 0x20
je 0x14013a167
cmp ecx, 0x113
jne 0x140139f81
mov rax, qword [r15 + 0x20]
cmp rax, 1
jne 0x14013a0a3
mov byte [rsi + 0x114], al
mov rdx, rax
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_KillTimer]
xor edx, edx
mov rcx, rsi
call fcn.140139090
jmp 0x14013a195
cmp rax, 2
jne 0x14013a0ce
mov rdx, rax
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_KillTimer]
xor r9d, r9d
lea edx, [r9 + 3]
lea r8d, [r9 + 0xf]
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x14013a195
cmp rax, 3
jne 0x14013a195
inc dword [rsi + 0x120]
cmp dword [rsi + 0x120], 0x64
jl 0x14013a0fd
mov dword [rsi + 0x120], 0x64
mov rdx, rax
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_KillTimer]
movd xmm0, dword [rsi + 0x120]
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140379430]
mulsd xmm0, qword [0x1403793b8]
call fcn.1402de600
movd xmm1, dword [rsi + 0x11c]
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
cmp eax, dword [rsi + 0x118]
jl 0x14013a195
mov r9d, 0x1e4
sub r9d, eax
mov dword [rsp + 0x30], 0x4000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x2c0
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x14013a195
mov edx, 0x7f00
mov eax, 0x7f02
cmp qword [rsi + 0xa8], 0
cmovne edx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov qword [r15 + 0x18], 1
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1402bcad0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret