Function at 0x1007e110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fe33d
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x10143964]
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 - 0x154], edi
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x168], edi
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov ax, word [ebp + 8]
mov word [edi + 8], ax
mov eax, dword [ebp + 8]
shr eax, 0x10
cmp byte [ebp + 0x24], 0
mov byte [edi + 0xa], al
mov byte [edi + 0x24], 0
je 0x1007e1b6
movups xmm0, xmmword [ebp + 0xc]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
movups xmmword [edi + 0xc], xmm0
mov byte [ebp + 0xc], 0
movq xmm0, qword [ebp + 0x1c]
movq qword [edi + 0x1c], xmm0
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [edi + 0x24], 1
cmp byte [ebp + 0x40], 0
mov byte [edi + 0x40], 0
je 0x1007e1f6
movups xmm0, xmmword [ebp + 0x28]
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
movups xmmword [edi + 0x28], xmm0
mov byte [ebp + 0x28], 0
movq xmm0, qword [ebp + 0x38]
movq qword [edi + 0x38], xmm0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0xf
mov byte [edi + 0x40], 1
cmp byte [ebp + 0x5c], 0
mov byte [edi + 0x5c], 0
je 0x1007e236
movups xmm0, xmmword [ebp + 0x44]
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
movups xmmword [edi + 0x44], xmm0
mov byte [ebp + 0x44], 0
movq xmm0, qword [ebp + 0x54]
movq qword [edi + 0x54], xmm0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0xf
mov byte [edi + 0x5c], 1
lea esi, [edi + 0x60]
mov byte [ebp - 4], 2
push 0x6c
mov dword [ebp - 0x158], esi
call fcn.100f0182
mov ecx, eax
add esp, 4
mov dword [ebp - 0x158], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x1007e269
movzx eax, word [edi + 8]
push eax
call fcn.100750f0
jmp 0x1007e26b
xor eax, eax
mov dword [esi], eax
lea eax, [edi + 0x98]
mov dword [edi + 0x68], vtable.rtc::synchronized_callback_class_std::shared_ptr_class_rtc::WebSocket__.0
push 0x102
push eax
mov dword [edi + 0x94], 0
call sub.MSVCP140.dll__Mtx_init_in_situ
lea eax, [edi + 0xc8]
mov byte [ebp - 4], 5
push eax
call fcn.10055910
add esp, 0xc
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
xorps xmm0, xmm0
movq qword [edi + 0xd8], xmm0
mov byte [edi + 0xe0], 0
mov eax, dword [0x1014a500]
mov byte [ebp - 4], 8
test eax, eax
je 0x1007e34c
cmp dword [eax + 4], 6
jl 0x1007e34c
push 0
push 0
push 0x101008a0
push 0x21
push 0x1010790c
push 6
lea ecx, [ebp - 0x150]
call fcn.10005670
mov dword [ebp - 0x158], eax
add eax, 0x28
mov byte [ebp - 4], 9
push str.Creating_WebSocketServer
push eax
call fcn.10006870
mov eax, dword [0x1014a500]
add esp, 8
mov esi, dword [eax + 8]
cmp esi, dword [eax + 0xc]
je 0x1007e33d
mov edi, eax
mov ecx, dword [esi]
push dword [ebp - 0x158]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [edi + 0xc]
jne 0x1007e322
mov edi, dword [ebp - 0x154]
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 8
call fcn.10006040
cmp byte [edi + 0xa], 0
je 0x1007e527
cmp byte [edi + 0x24], 0
je 0x1007e466
cmp byte [edi + 0x40], 0
je 0x1007e69b
cmp byte [edi + 0x5c], 0
lea eax, [edi + 0x44]
je 0x1007e37e
push eax
lea ecx, [ebp - 0x28]
call fcn.10004d20
jmp 0x1007e397
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push edx
lea ecx, [edi + 0x28]
push ecx
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10049dc0
push eax
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xb
push eax
call fcn.10048e10
mov ecx, eax
add esp, 0x18
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov ecx, dword [edi + 0xd4]
mov dword [edi + 0xd0], eax
mov dword [ebp - 0x154], ecx
mov dword [edi + 0xd4], edx
test ecx, ecx
je 0x1007e417
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1007e417
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x154]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x1007e417
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x15c]
call fcn.1000a860
lea ecx, [ebp - 0x50]
call fcn.10049760
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x1007e527
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007e51d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007e51d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp byte [edi + 0x40], 0
jne 0x1007e69b
movq xmm0, qword [str.localhost]
mov al, byte [0x1010795c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 9
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1f], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10049ff0
push eax
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xd
push eax
call fcn.10048e10
mov ecx, eax
add esp, 0x14
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov ecx, dword [edi + 0xd4]
mov dword [edi + 0xd0], eax
mov dword [ebp - 0x154], ecx
mov dword [edi + 0xd4], edx
test ecx, ecx
je 0x1007e417
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1007e417
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x154]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x1007e417
jmp 0x1007e412
push edx
push ecx
call fcn.100f01b2
add esp, 8
push 8
call fcn.100f0182
add esp, 4
test eax, eax
je 0x1007e540
mov dword [eax], edi
mov dword [eax + 4], 0x1007ea10
jmp 0x1007e542
xor eax, eax
mov dword [ebp - 0x154], eax
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xe
push ecx
push 0
push eax
push 0x100506e0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x15c], ecx
test ecx, ecx
je 0x1007e68a
cmp dword [edi + 0xdc], 0
je 0x1007e587
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
cmp byte [ebp + 0x5c], 0
mov eax, dword [ebp - 0x158]
mov dword [edi + 0xd8], ecx
mov dword [edi + 0xdc], eax
je 0x1007e5e5
mov edx, dword [ebp + 0x58]
cmp edx, 0x10
jb 0x1007e5d3
mov ecx, dword [ebp + 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007e5c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007e460
push edx
push ecx
call fcn.100f01b2
add esp, 8
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0xf
mov byte [ebp + 0x44], 0
cmp byte [ebp + 0x40], 0
je 0x1007e631
mov edx, dword [ebp + 0x3c]
cmp edx, 0x10
jb 0x1007e61f
mov ecx, dword [ebp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007e615
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007e460
push edx
push ecx
call fcn.100f01b2
add esp, 8
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0xf
mov byte [ebp + 0x28], 0
cmp byte [ebp + 0x24], 0
je 0x1007e66b
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x1007e66b
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007e661
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007e460
push edx
push ecx
call fcn.100f01b2
add esp, 8
mov eax, edi
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.100f06e3
mov esp, ebp
pop ebp
ret 0x58
push 6
mov dword [ebp - 0x158], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
push str.Either_none_or_both_certificate_and_key_PEM_files_must_be_specified
lea ecx, [ebp - 0x160]
call fcn.100058f0
push 0x1011e954
lea eax, [ebp - 0x160]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3