Function at 0x10016c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dcf15
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1010a080]
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 - 0x50], edi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 8
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], 0x6b636f73
mov dword [ebp - 0x24], 0x74616863
mov byte [ebp - 0x20], 0
push 0x16
push str.SoftwareSAMPci_chat_
lea ecx, [edi + 0x4c]
mov dword [ebp - 4], 0
call fcn.1000af50
push 0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.1001b110
add esp, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x10016ceb
mov eax, dword [eax]
push ecx
push eax
lea ecx, [edi + 0x4c]
call fcn.1000b060
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x10016d35
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016d2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016d2b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100dad65
add esp, 8
lea eax, [edi + 0x130]
push 0
mov edx, eax
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x40]
call fcn.1001b110
mov esi, eax
add esp, 4
lea eax, [edi + 0x64]
cmp eax, esi
je 0x10016d81
mov ecx, eax
call fcn.100022d0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi + 0x64], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x74], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x10016dbd
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016db3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016db3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100dad65
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10016dfa
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10016df0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016df0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100dad65
add esp, 8
cmp dword [edi + 0x144], 0xf
mov ecx, dword [edi + 0xe4]
mov eax, dword [edi + 0x148]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], eax
jbe 0x10016e1e
mov eax, dword [edi + 0x130]
mov dword [ebp - 0x48], eax
lea esi, [ecx + 0x50]
push esi
mov dword [ebp - 0x54], esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x10016e3a
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
jne 0x10016e50
dec eax
push 6
mov dword [esi + 0x2c], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], 2
test eax, eax
js 0x10016fa9
cmp eax, 0xffff
jg 0x10016fa9
mov eax, dword [ebp - 0x44]
push dword [ebp - 0x48]
add eax, 0x30
push eax
call fcn.1006a7c9
add esp, 8
test eax, eax
jne 0x10016fa9
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov ecx, edx
mov eax, dword [ebp - 0x4c]
mov word [edi + 0x40], ax
lea eax, [ecx + 1]
mov dword [ebp - 0x44], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10016ea0
sub ecx, dword [ebp - 0x44]
add edi, 0x18
push ecx
push edx
mov ecx, edi
call fcn.10003a40
push 1
push 0x10104068
mov ecx, edi
call fcn.10003ca0
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
call fcn.10010ae0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
mov ecx, edi
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.10003ca0
lea ecx, [ebp - 0x28]
call fcn.10002350
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov esi, dword [ebp - 0x50]
add esp, 4
mov edi, dword [esi + 0xe4]
cmp dword [edi + 0x48], 0
je 0x10016f44
mov eax, dword [edi + 0x80]
mov dword [edi + 0x88], 4
test eax, eax
je 0x10016f44
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x80], 0
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x10016f61
push eax
push eax
push 4
push 1
push eax
call fcn.1006ad65
add esp, 0x14
mov dword [edi + 0x44], eax
test eax, eax
je 0x10016f8d
push 0
push 0
push edi
push 0x1001e4f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x80], eax
test eax, eax
je 0x10016f8d
mov dword [esi + 0xe8], 2
mov al, 1
jmp 0x10016fd9
push str.Failed_to_start.
push 0xffdb0000
push esi
call fcn.1000a2c0
mov dword [esi + 0xe8], 5
jmp 0x10016fd4
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
push str.Failed_to_bind_address.
push 0xffdb0000
push edi
call fcn.1000a2c0
mov dword [edi + 0xe8], 5
add esp, 0xc
xor al, al
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.100daa0d
mov esp, ebp
pop ebp
ret