Function at 0x10019ad0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041220
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10055020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], 0
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x20], eax
cmp word [eax], 0
jne 0x10019c02
mov dword [ebp - 4], 0
push 0x10
call fcn.1001ff37
mov edx, eax
add esp, 4
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movq qword [edx], xmm0
lea ecx, [edx + 0xc]
mov dword [edx + 8], 0
mov dword [edx + 4], 1
mov dword [edx + 8], 1
mov dword [edx], 0x1004e208
mov dword [ebp - 0x38], ecx
mov dword [ecx], 0
mov dword [ecx], method.std::_Facet_base.virtual_4
mov byte [ebp - 4], 2
mov dword [ecx], 0x1004e158
mov byte [ebp - 4], 0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x61]
mov dword [edi + 0x61], ecx
mov ecx, dword [edi + 0x65]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], ecx
mov dword [edi + 0x65], edx
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10019bf2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10019bf2
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x20]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x10019bf2
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov dword [ebp - 0x2c], eax
and eax, 0xfffffffe
jmp 0x10019d4c
mov dword [ebp - 4], 4
push 0x2c
call fcn.1001ff37
mov esi, eax
add esp, 4
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 5
lea eax, [esi + 0xc]
mov dword [ebp - 0x24], eax
xorps xmm0, xmm0
mov edx, dword [ebp - 0x20]
mov ecx, edx
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 4], 1
lea eax, [ecx + 2]
mov dword [esi + 8], 1
mov dword [esi], 0x1004e148
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x20], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10019c61
sub ecx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.100069a0
mov byte [ebp - 4], 6
mov dword [esi + 0xc], 0x1004d9e8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0x1004d9d8
call fcn.100153a0
mov byte [ebp - 4], 8
mov dword [esi + 0x28], 0xffffffff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call fcn.100029e0
mov byte [ebp - 4], 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 9
mov eax, dword [edi + 0x61]
mov dword [edi + 0x61], ecx
mov ecx, dword [edi + 0x65]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], ecx
mov dword [edi + 0x65], esi
mov byte [ebp - 4], 4
test ecx, ecx
je 0x10019d41
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10019d41
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x20]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x10019d41
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 2
mov dword [ebp - 0x2c], eax
and eax, 0xfffffffd
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
call esi
push eax
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x28
movups xmmword [ecx], xmm0
push str.Initialization_started._PID:__d__TID:__d
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 0xa
push 1
push dword [edi + 0x61]
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
add esp, 0x28
call esi
mov ecx, dword [edi + 0x3c]
xor edx, edx
cmp eax, dword [ecx + 0x600]
lea eax, [ebp - 0x1c]
push eax
push ecx
push edi
setne dl
push 0x10019a00
mov dword [ebp - 0x20], edx
call fcn.10017980
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10019e25
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x36
movups xmmword [ecx], xmm0
push str.Failed_to_create_TrainerLib_thread._Last_Win32:_0x_08x
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 0xb
push 3
push dword [edi + 0x61]
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
mov eax, dword [ebp - 0x20]
add esp, 0x24
jmp 0x10019f93
mov ecx, edi
call fcn.10019fb0
mov esi, eax
xor ecx, ecx
push 0xffffffffffffffff
test esi, esi
mov dword [ebp - 0x14], esi
push 0
setne cl
lea eax, [ebp - 0x18]
inc ecx
push eax
push ecx
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x10019ea4
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x2d
movups xmmword [ecx], xmm0
push str.Failed_to_wait_on_objects._Last_Win32:_0x_08x
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 0xc
push 3
push dword [edi + 0x61]
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
add esp, 0x24
push 1
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_TerminateThread]
jmp 0x10019ea9
cmp eax, 1
je 0x10019ec5
push dword [ebp - 0x18]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
call edi
test esi, esi
je 0x10019ebd
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0x20]
jmp 0x10019f93
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x2a
movups xmmword [ecx], xmm0
push str.Signaled_to_unload._Waiting_for_trainer...
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 0xd
push 1
push dword [edi + 0x61]
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
add esp, 0x20
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CancelSynchronousIo]
mov ecx, dword [edi + 0x4d]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0x1388
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x10019f81
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x40
movups xmmword [ecx], xmm0
push str.Failed_to_wait_on_trainer_thread._Killing_it._Last_Win32:_0x_08x
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10002de0
mov dword [ebp - 4], 0xe
push 2
push dword [edi + 0x61]
mov dword [ebp - 4], 0xffffffff
call fcn.10001810
add esp, 0x24
push 1
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_TerminateThread]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
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.1001fd2c
mov esp, ebp
pop ebp
ret