Function at 0x140138060
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 [0x140418a10]
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 0x1401382c4
mov rcx, qword [rcx + 0xa8]
test rcx, rcx
je 0x1401380c6
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 0x1401381ec
mov rax, qword [r15 + 8]
cmp rax, 1
jne 0x14013815c
mov rcx, qword [rsi + 0x138]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0xd0]
cmp byte [rsi + 0x114], r14b
je 0x140138268
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 0x140138268
cmp rax, 2
jne 0x140138268
mov qword [rbp - 0x61], r14
lea edx, [rax + 0xf]
lea rcx, [rbp - 0x69]
call fcn.1401ff260
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.1402bd21c
mov edx, 0x11
lea rcx, [rbp - 0x69]
call fcn.140200570
nop
lea rdx, [rbp - 0x69]
lea rcx, [rbp + 0x17]
call fcn.1400f57b0
nop
mov rdx, rax
mov rcx, qword [rsi + 0x138]
call fcn.1401fc380
nop
cmp dword [rbp + 0x1f], 0
jle 0x1401381d1
mov rcx, qword [rbp + 0x17]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x61], 0
jle 0x1401381e0
mov rcx, qword [rbp - 0x69]
call fcn.1402b9c20
xor edx, edx
mov rcx, rsi
call fcn.1401376a0
jmp 0x140138268
mov qword [rbp - 0x61], r14
mov edx, 0x10
lea rcx, [rbp - 0x69]
call fcn.1401ff260
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.1402bd21c
mov edx, 0x10
lea rcx, [rbp - 0x69]
call fcn.140200570
nop
lea rdx, [rbp - 0x69]
lea rcx, [rbp + 0x17]
call fcn.1400f57b0
nop
mov rdx, rax
mov rcx, qword [rsi + 0x138]
call fcn.1401fc380
nop
cmp dword [rbp + 0x1f], 0
jle 0x140138259
mov rcx, qword [rbp + 0x17]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x61], 0
jle 0x140138268
mov rcx, qword [rbp - 0x69]
call fcn.1402b9c20
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.14020ef50
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 0x1401387a5
call fcn.1402177e0
jmp 0x1401387a5
cmp eax, dword [rcx + 0xb8]
jne 0x1401383b2
mov r12, qword [rdx + 8]
mov rdi, qword [r12 + 8]
test rdi, rdi
jne 0x1401382e7
mov ebx, r14d
mov qword [rbp - 0x61], r14
jmp 0x140138302
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdi + rbx*2], r14w
jne 0x1401382f0
mov qword [rbp - 0x61], r14
test ebx, ebx
jne 0x14013830f
lea rax, [0x140348ca0]
mov qword [rbp - 0x69], rax
jmp 0x140138331
mov edx, ebx
lea rcx, [rbp - 0x69]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rbp - 0x61]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rbp - 0x69]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rbp - 0x69]
call fcn.140200570
nop
mov rdi, qword [rsi + 0x138]
mov edx, dword [rbp - 0x5d]
lea rcx, [rdi + 0x40]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbp - 0x5d]
lea rcx, [rdi + 0x40]
call fcn.140200570
cmp qword [rdi + 8], 0
je 0x140138395
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 0x1401383a4
mov rcx, qword [rbp - 0x69]
call fcn.1402b9c20
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax]
movzx ecx, word [r15 + 0x10]
cmp ecx, 0x14
jg 0x140138673
je 0x1401385a1
dec ecx
je 0x140138591
dec ecx
je 0x140138547
cmp ecx, 0xd
jne 0x140138591
lea rdx, [rbp - 0x49]
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_BeginPaint]
mov rdi, qword [rbp - 0x49]
lea rbx, [0x140419f00]
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 0x1401384bc
mov rcx, qword [rbx - 8]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1401384b0
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 0x140138521
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 0x140138400
lea rdx, [rbp - 0x49]
mov rcx, qword [r15]
call qword [sym.imp.USER32.dll_EndPaint]
jmp 0x1401387a5
mov rdx, r15
mov rcx, rsi
call fcn.1401fc460
cmp qword [rsi + 0xa8], 0
je 0x1401387a5
mov edx, 0x7530
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1401387a5
xor edx, edx
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1401387a5
mov rdx, r15
mov rcx, rsi
call fcn.1401fc460
jmp 0x1401387a5
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 0x14013879d
cmp ecx, 0x20
je 0x140138777
cmp ecx, 0x113
jne 0x140138591
mov rax, qword [r15 + 0x20]
cmp rax, 1
jne 0x1401386b3
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.1401376a0
jmp 0x1401387a5
cmp rax, 2
jne 0x1401386de
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 0x1401387a5
cmp rax, 3
jne 0x1401387a5
inc dword [rsi + 0x120]
cmp dword [rsi + 0x120], 0x64
jl 0x14013870d
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 [0x140374860]
mulsd xmm0, qword [0x1403747e8]
call fcn.1402dafb0
movd xmm1, dword [rsi + 0x11c]
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
cmp eax, dword [rsi + 0x118]
jl 0x1401387a5
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 0x1401387a5
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.1402b9610
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