Function at 0x10040410
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063399
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xf4]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x118], 0
push 0x12
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xf4], 0
push str.Sec_WebSocket_Key1
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x114], eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
call fcn.10021390
lea eax, [ebp - 0xf4]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2c]
lea edi, [esi + 0x18]
push eax
mov ecx, edi
call fcn.10034d40
mov esi, dword [ebp - 0x24]
cmp byte [esi + 0xd], 0
jne 0x100404ea
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.10005000
test al, al
jne 0x100404ea
cmp esi, dword [edi]
je 0x100404ea
add esi, 0x28
jmp 0x100404ef
mov esi, 0x1007d0c8
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.100427c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xe0]
cmp ecx, 0x10
jb 0x1004053c
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040532
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040532
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
push 0x12
mov dword [ebp - 0xf4], 0
lea ecx, [ebp - 0xf4]
push str.Sec_WebSocket_Key2
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
call fcn.10021390
lea eax, [ebp - 0xf4]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.10034d40
mov esi, dword [ebp - 0x24]
cmp byte [esi + 0xd], 0
jne 0x100405b2
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.10005000
test al, al
jne 0x100405b2
cmp esi, dword [edi]
je 0x100405b2
add esi, 0x28
jmp 0x100405b7
mov esi, 0x1007d0c8
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.100427c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xe0]
cmp ecx, 0x10
jb 0x10040604
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100405fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100405fa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
push 0x12
push str.Sec_WebSocket_Key3
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
call fcn.10021390
lea eax, [ebp - 0xf4]
mov ecx, edi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10034d40
mov esi, dword [ebp - 0x24]
cmp byte [esi + 0xd], 0
jne 0x1004066c
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.10005000
test al, al
jne 0x1004066c
cmp esi, dword [edi]
je 0x1004066c
add esi, 0x28
jmp 0x10040671
mov esi, 0x1007d0c8
mov ecx, dword [ebp - 0xe0]
cmp ecx, 0x10
jb 0x100406ad
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100406a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100406a3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov dword [ebp - 0xe4], 0
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0x118], 8
jb 0x100406f9
cmp edx, 8
lea edx, [ebp - 0x118]
cmovae ecx, edx
mov edx, dword [esi]
mov esi, edx
jmp 0x10040707
cmp edx, 8
lea eax, [ebp - 0x118]
mov edx, esi
cmovae ecx, eax
mov eax, dword [ecx]
add eax, esi
sub eax, edx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x110], 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
push 0x12
push str.Sec_WebSocket_Key3
call fcn.10021390
mov dword [ebp - 4], 2
lea eax, [ebp - 0x20]
push 0x10
mov dword [ebp - 0xf4], 0
lea ecx, [ebp - 0xf4]
push eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
call fcn.10021390
mov byte [ebp - 4], 4
lea edx, [ebp - 0xf4]
cmp dword [ebp - 0xe0], 0x10
lea ecx, [ebp - 0x84]
push dword [ebp - 0xe4]
cmovae edx, dword [ebp - 0xf4]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x7c], 0x67452301
mov dword [ebp - 0x78], 0xefcdab89
mov dword [ebp - 0x74], 0x98badcfe
mov dword [ebp - 0x70], 0x10325476
call fcn.10011920
mov edx, dword [ebp - 0x84]
mov eax, edx
mov ecx, dword [ebp - 0x80]
shr eax, 8
mov byte [ebp - 0x27], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x26], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0x25], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x23], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x22], al
mov eax, 0xfffffff7
mov byte [ebp - 0x28], dl
shr edx, 3
sub eax, edx
mov byte [ebp - 0x24], cl
shr ecx, 0x18
and eax, 0x3f
inc eax
mov byte [ebp - 0x21], cl
push eax
mov edx, 0x1006df90
lea ecx, [ebp - 0x84]
call fcn.10011920
push 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x84]
call fcn.10011920
add esp, 0xc
xor edx, edx
mov eax, edx
mov ecx, edx
and eax, 0xfffffffc
and ecx, 3
shl ecx, 3
mov eax, dword [ebp + eax - 0x7c]
shr eax, cl
mov byte [ebp + edx - 0x20], al
inc edx
cmp edx, 0x10
jl 0x10040856
push 0
push 0x10
mov byte [ebp - 0xf8], 0
lea ecx, [ebp - 0x130]
push dword [ebp - 0xf8]
mov dword [ebp - 0x130], 0
push 0x10
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
mov dword [ebp - 0x118], 1
call fcn.1002c920
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
movups xmm0, xmmword [ebp - 0x20]
cmovae eax, dword [ebp - 0x130]
mov esi, dword [ebp - 0x114]
mov ecx, esi
movups xmmword [eax], xmm0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.10006030
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0x10
jb 0x10040934
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004092a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100409d7
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp ecx, 0x10
jb 0x10040989
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004097f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100409d7
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
cmp ecx, 0x10
jb 0x100409e7
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100409dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100409dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
push 9
mov dword [ebp - 0x110], 0
lea ecx, [ebp - 0x110]
push str.WebSocket
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
call fcn.10021390
mov dword [ebp - 4], 5
lea ecx, [ebp - 0xf4]
push 7
mov dword [ebp - 0xf4], 0
push 0x1006c53c
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
call fcn.10021390
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xf4]
mov ecx, esi
push eax
call fcn.10006030
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xe0]
cmp ecx, 0x10
jb 0x10040aaf
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040aa5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040afd
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
cmp ecx, 0x10
jb 0x10040b0d
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040b03
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040b03
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
push 7
mov dword [ebp - 0x110], 0
lea ecx, [ebp - 0x110]
push 0x1006c53c
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
call fcn.10021390
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xf4]
push 0xa
mov dword [ebp - 0xf4], 0
push str.Connection
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
call fcn.10021390
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xf4]
mov ecx, esi
push eax
call fcn.10006030
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xe0]
cmp ecx, 0x10
jb 0x10040bd5
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040bcb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040c23
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
cmp ecx, 0x10
jb 0x10040c33
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040c29
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040c29
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
push 0x14
push str.Sec_WebSocket_Origin
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
call fcn.10021390
lea ecx, [ebp - 0x110]
push ecx
lea eax, [esi + 0x18]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xf8], eax
push ecx
mov ecx, eax
call fcn.10034d40
mov esi, dword [ebp - 0x24]
cmp byte [esi + 0xd], 0
jne 0x10040cab
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.10005000
test al, al
jne 0x10040cab
mov eax, dword [ebp - 0x114]
cmp esi, dword [eax + 0x18]
je 0x10040cab
add esi, 0x38
jmp 0x10040cb0
mov esi, 0x1007d0d8
mov ecx, dword [ebp - 0xfc]
mov esi, dword [esi]
cmp ecx, 0x10
jb 0x10040cee
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040ce4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040ce4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
test esi, esi
jne 0x10040e47
push 6
mov dword [ebp - 0x130], esi
lea ecx, [ebp - 0x130]
push str.Origin
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
call fcn.10021390
mov dword [ebp - 4], 9
lea ecx, [ebp - 0xf4]
push 0x14
mov dword [ebp - 0xf4], esi
push str.Sec_WebSocket_Origin
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
call fcn.10021390
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.10034d40
mov esi, dword [ebp - 0x24]
cmp byte [esi + 0xd], 0
jne 0x10040d97
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.10005000
test al, al
jne 0x10040d97
cmp esi, dword [edi]
je 0x10040d97
add esi, 0x28
jmp 0x10040d9c
mov esi, 0x1007d0c8
mov ecx, dword [ebp - 0x114]
lea eax, [ebp - 0xf4]
push esi
push eax
call fcn.10006030
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xe0]
cmp ecx, 0x10
jb 0x10040de9
mov edx, dword [ebp - 0xf4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040ddf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040e37
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
cmp ecx, 0x10
jb 0x10040e47
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040e3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040e3d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
push 0x16
push str.Sec_WebSocket_Location
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
call fcn.10021390
mov edi, dword [ebp - 0xf8]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.10034d40
mov esi, dword [ebp - 0x24]
cmp byte [esi + 0xd], 0
jne 0x10040eb5
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.10005000
test al, al
jne 0x10040eb5
cmp esi, dword [edi]
je 0x10040eb5
add esi, 0x38
jmp 0x10040eba
mov esi, 0x1007d0d8
mov ecx, dword [ebp - 0xfc]
mov esi, dword [esi]
cmp ecx, 0x10
jb 0x10040ef8
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040eee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040eee
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
test esi, esi
jne 0x10041165
mov ecx, dword [ebp - 0x150]
lea edx, [ebp - 0x28]
push dword [ebp - 0x154]
xorps xmm0, xmm0
push edx
mov eax, dword [ecx]
movlpd qword [ebp - 0x28], xmm0
call dword [eax + 0x30]
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x110]
push 0x16
mov dword [ebp - 0x110], esi
push str.Sec_WebSocket_Location
mov dword [ebp - 0x100], esi
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
call fcn.10021390
push 0xb0
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x28]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0xdc]
call fcn.1001c5d0
mov byte [ebp - 4], 0xd
mov edx, esi
cmp dword [esi + 0x14], 0x10
jb 0x10040f89
mov edx, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0xcc]
call fcn.10033dd0
add esp, 4
mov edx, 0x10067dd4
mov ecx, eax
call fcn.10027780
cmp dword [esi + 0x2c], 0x10
lea edx, [esi + 0x18]
jb 0x10040fb2
mov edx, dword [esi + 0x18]
push dword [esi + 0x28]
mov ecx, eax
call fcn.10033dd0
movzx ecx, word [esi + 0x48]
add esp, 4
cmp byte [esi + 0x4a], 0
mov eax, 0x50
mov edx, 0x1bb
cmovne eax, edx
cmp cx, ax
je 0x10040ff2
push ecx
mov edx, 0x10067dd0
lea ecx, [ebp - 0xcc]
call fcn.10027780
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int_]
cmp dword [esi + 0x44], 0x10
lea edx, [esi + 0x30]
jb 0x10040ffe
mov edx, dword [esi + 0x30]
push dword [esi + 0x40]
lea ecx, [ebp - 0xcc]
call fcn.10033dd0
add esp, 4
lea eax, [ebp - 0x14c]
lea ecx, [ebp - 0xc4]
push eax
call fcn.10020670
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe0], eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.100205d0
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x114]
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 0xe
push eax
call fcn.10006030
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x138]
cmp ecx, 0x10
jb 0x100410d5
mov edx, dword [ebp - 0x14c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100410cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10041120
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0xf
mov byte [ebp - 0x14c], 0
cmp ecx, 0x10
jb 0x10041130
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10041126
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10041126
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1004115f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1004115f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1004115f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0xf8]
mov esi, dword [ebp - 0x134]
cmp dword [esi + 0x10], 0
je 0x10041216
push 0x16
mov dword [ebp - 0x14c], 0
lea ecx, [ebp - 0x14c]
push str.Sec_WebSocket_Protocol
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0xf
mov byte [ebp - 0x14c], 0
call fcn.10021390
lea eax, [ebp - 0x14c]
mov dword [ebp - 4], 0xf
push eax
mov ecx, edi
call fcn.1001bde0
mov ecx, esi
cmp eax, ecx
je 0x100411da
cmp dword [ecx + 0x14], 0x10
jb 0x100411cf
mov ecx, dword [ecx]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.10021390
mov ecx, dword [ebp - 0x138]
cmp ecx, 0x10
jb 0x10041216
mov edx, dword [ebp - 0x14c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004120c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004120c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov eax, dword [ebp - 0x158]
mov dword [eax], 0
mov dword [eax + 4], 0x1007d018
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.1005c9d3
mov esp, ebp
pop ebp
ret 0x10