Function at 0x495e00
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x40
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
push ebp
push esi
mov esi, dword [esp + 0x58]
push edi
mov edi, dword [eax]
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
test edi, edi
je 0x496650
cmp dword [edi + 0x3c4], eax
je 0x496650
cmp dword [edi], eax
je 0x495e76
cmp dword [edi + 0x394], eax
jne 0x495e8c
push edx
mov edx, dword [esi]
push edi
push ebx
call fcn.00495a25
add esp, 0xc
mov dword [esi], eax
jmp 0x496650
cmp dword [edi + 0x394], eax
jne 0x495e8c
mov ecx, dword [edi + 0x360]
add ecx, 0x44
call fcn.0044de31
mov ecx, dword [edi + 0x3c4]
call fcn.0048b143
mov ebp, eax
xor eax, eax
cmp dword [edi + 0x394], eax
jne 0x495eac
mov ecx, dword [edi + 0x360]
mov dword [ecx + 0x44], eax
test ebp, ebp
jne 0x495eb7
mov dword [esi], ebx
jmp 0x496650
cmp dword [edi + 0x374], eax
jne 0x496574
mov edx, dword [esi]
mov eax, ebx
sub eax, edx
cmp eax, 4
jl 0x496631
add eax, 0xfffffffc
mov dword [esp + 0x10], eax
js 0x496631
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ecx, edx
cmp dword [edi + 0x3a0], 0
je 0x495efa
cmp byte [ecx + eax], 0
je 0x495f00
jmp 0x495f15
cmp byte [ecx + eax], 0xd
jne 0x495f15
cmp byte [ecx + eax + 1], 0xa
jne 0x495f15
cmp byte [ecx + eax + 2], 0xd
jne 0x495f15
cmp byte [ecx + eax + 3], 0xa
je 0x495f25
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jle 0x495ee3
jmp 0x496631
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x495f3c
lea edx, [edi + 0x3a4]
call fcn.004852b0
mov eax, dword [esp + 0x14]
or dword [edi + 0x388], 0xffffffff
add eax, 4
mov dword [esp + 0x24], eax
mov dword [edi + 0x39c], eax
xor eax, eax
inc eax
cmp dword [edi + 0x3a0], 0
mov dword [edi + 0x38c], eax
mov dword [edi + 0x374], eax
jne 0x495f82
mov edx, dword [esi]
mov eax, ebx
sub eax, dword [esi]
mov ecx, dword [esp + 0x18]
push eax
call fcn.0048bcbe
mov dword [edi + 0x3a0], eax
xor eax, eax
pop ecx
inc eax
mov ecx, dword [edi + 0x3a0]
test ecx, ecx
je 0x496631
cmp dword [ecx], 0
jne 0x495fad
cmp dword [ecx + 0x18], 0xffffffff
je 0x495fad
cmp dword [edi + 0x394], eax
jne 0x495fad
mov eax, 0x190
jmp 0x496652
movzx eax, word [edi + 0x3a4]
mov ecx, dword [edi + 0x3a0]
mov dword [esp + 0x10], eax
cmp word [esp + 0x10], 0
push 0x10
pop eax
mov dword [esp + 0x28], 0x17
je 0x495ff7
push 0x17
pop edx
cmp word [esp + 0x10], dx
push 0x1c
pop edx
cmove eax, edx
lea edx, [edi + 0x3a4]
push eax
push edx
push 0x1e
add ecx, 0x48
pop edx
call section..text
pop ecx
pop ecx
push 0x10
pop eax
lea ecx, [edi + 0x3cc]
movzx edx, word [ecx]
test dx, dx
je 0x496025
cmp dx, word [esp + 0x28]
push 0x1c
pop edx
cmove eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x3a0]
push 0x1e
add ecx, 0x66
pop edx
call section..text
pop ecx
pop ecx
mov eax, dword [edi + 0x3a0]
mov eax, dword [eax + 0x40]
jmp 0x496135
cmp dword [eax + 4], 0x11
jne 0x496083
push 0x11
push str.transfer_encoding
push dword [eax]
call fcn.005f0620
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x496083
cmp dword [eax + 0xc], 7
jne 0x496083
push 7
push 0x75d148
push dword [eax + 8]
call fcn.005f0620
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x496083
and dword [edi + 0x38c], 0
mov dword [edi + 0x37c], 1
cmp dword [eax + 4], 0xa
jne 0x4960cc
push 0xa
push str.connection
push dword [eax]
call fcn.005f0620
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x4960cc
cmp dword [eax + 0xc], 5
jne 0x4960cc
push 5
push 0x75d15c
push dword [eax + 8]
call fcn.005f0620
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x4960cc
mov dword [edi + 0x384], 1
cmp dword [eax + 4], 0xe
jne 0x496132
push 0xe
push str.content_length
push dword [eax]
call fcn.005f0620
add esp, 0xc
test eax, eax
jne 0x49612e
mov edx, dword [esp + 0x10]
and dword [edi + 0x38c], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
mov byte [ecx + eax], 0
mov ecx, dword [edx + 8]
call fcn.00487795
test edx, edx
ja 0x49611e
jb 0x496110
cmp eax, 0x7fffffff
ja 0x49611e
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
call fcn.004877c2
jmp 0x496120
xor eax, eax
mov dword [edi + 0x388], eax
test eax, eax
js 0x4961e9
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x496033
mov eax, dword [edi + 0x3a0]
push dword [eax + 0x24]
call fcn.00616970
fstp qword [esp + 0x2c]
movsd xmm0, qword [esp + 0x2c]
xor edx, edx
comisd xmm0, xmmword [0x6c9460]
pop ecx
jbe 0x49618a
cmp dword [edi + 0x37c], edx
jne 0x49618a
cmp dword [edi + 0x384], edx
jne 0x49618a
cmp dword [edi + 0x38c], edx
je 0x49618a
mov dword [edi + 0x38c], edx
mov dword [edi + 0x388], edx
mov ecx, dword [edi + 0x3a0]
mov eax, dword [ecx + 0x18]
cmp eax, 0x64
jl 0x4962ed
cmp eax, 0xc7
jg 0x4962ed
mov edx, dword [ebp + 0x48]
test edx, edx
jne 0x4961fa
mov ecx, dword [ebp + 0x54]
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x4961dc
lea eax, [edi + 0x3e8]
push eax
push dword [ebp + 0x38]
lea eax, [esp + 0x30]
push dword [ebp + 0x34]
push 0xc
push edx
push eax
push edx
push dword [edi + 0x3a0]
push edx
push edi
call ecx
add esp, 0x28
mov eax, dword [edi + 0x39c]
add dword [esi], eax
jmp 0x496650
and dword [edi + 0x388], 0
mov eax, 0xfa1
jmp 0x496652
cmp eax, 0x65
jne 0x4962c1
cmp dword [edx + 8], 0
je 0x4962c1
push 0
push 0x14
mov edx, str.Sec_WebSocket_Accept
call fcn.0048d2f3
pop ecx
pop ecx
test eax, eax
je 0x4962ae
mov ecx, dword [ebp + 0x48]
mov ecx, dword [ecx + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x49624b
test dl, dl
je 0x496247
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x49624b
add eax, 2
add ecx, 2
test dl, dl
jne 0x49622b
xor eax, eax
jmp 0x496250
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4962ae
and dword [esp + 0x10], eax
lea ecx, [edi + 0x28]
mov ebx, dword [edi + 0x39c]
lea eax, [esp + 0x34]
push eax
xor edx, edx
call fcn.00494aed
pop ecx
mov ecx, ebp
mov dword [edi], 1
call fcn.0049576e
mov ecx, dword [ebp + 0x54]
test ecx, ecx
je 0x4962a7
lea eax, [edi + 0x3e8]
xor edx, edx
push eax
push dword [ebp + 0x38]
lea eax, [esp + 0x18]
push dword [ebp + 0x34]
push 0xc
push edx
push eax
push edx
push dword [edi + 0x3a0]
push edx
push edi
call ecx
add esp, 0x28
add dword [esi], ebx
jmp 0x496650
mov ecx, edi
call fcn.00497677
mov ecx, edi
call fcn.00494b28
jmp 0x496650
xor edx, edx
cmp dword [ebp + 0x4c], edx
jne 0x496307
mov eax, dword [edi + 0x39c]
mov dword [edi + 0x374], edx
add dword [esi], eax
mov ecx, dword [edi + 0x3a0]
call fcn.0048bbf8
and dword [edi + 0x3a0], 0
jmp 0x496631
cmp eax, 0xcc
je 0x4962fb
cmp eax, 0x130
jne 0x496307
mov dword [edi + 0x38c], edx
mov dword [edi + 0x388], edx
cmp dword [edi + 0x394], edx
je 0x496326
cmp dword [edi + 0x388], 0xffffffff
jne 0x496326
cmp dword [edi + 0x37c], edx
jne 0x496326
mov dword [edi + 0x388], edx
mov ecx, dword [edi + 0x3c4]
call fcn.0048b143
xor edx, edx
cmp dword [edi + 0x3c4], edx
je 0x496356
test eax, eax
je 0x496356
cmp dword [eax + 0x50], edx
je 0x496356
mov dword [edi + 0x388], edx
mov dword [edi + 0x38c], edx
mov dword [edi + 0x37c], edx
mov eax, dword [edi + 0x388]
test eax, eax
jne 0x4963a8
xor ebx, ebx
inc ebx
mov dword [edi + 0x36c], ebx
mov ecx, dword [ebp + 0x54]
test ecx, ecx
je 0x496394
lea eax, [edi + 0x3e8]
push eax
push dword [ebp + 0x38]
lea eax, [esp + 0x24]
push dword [ebp + 0x34]
push ebx
push edx
push eax
push edx
push dword [edi + 0x3a0]
push edx
push edi
call ecx
add esp, 0x28
xor edx, edx
mov eax, dword [esp + 0x14]
add eax, 4
add dword [esi], eax
mov dword [edi + 0x36c], edx
jmp 0x496614
cmp dword [edi + 0x37c], edx
jne 0x4964b5
mov ecx, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x496434
mov eax, ebx
sub eax, dword [esi]
sub eax, ecx
sub eax, 4
cmp eax, dword [edi + 0x388]
jl 0x496434
xor ebx, ebx
inc ebx
mov dword [edi + 0x36c], ebx
mov edx, dword [ebp + 0x54]
test edx, edx
je 0x496413
lea eax, [edi + 0x3e8]
add ecx, 4
push eax
push dword [ebp + 0x38]
lea eax, [esp + 0x24]
push dword [ebp + 0x34]
push ebx
push dword [edi + 0x388]
push eax
mov eax, dword [esp + 0x30]
add eax, ecx
push eax
push dword [edi + 0x3a0]
push 0
push edi
call edx
mov ecx, dword [esp + 0x3c]
add esp, 0x28
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x496421
mov eax, dword [edi + 0x388]
add ecx, 4
add eax, ecx
add dword [esi], eax
and dword [edi + 0x36c], 0
jmp 0x496614
mov edx, dword [ebp + 0x54]
test edx, edx
je 0x49646f
sub ebx, dword [esi]
lea eax, [edi + 0x3e8]
push eax
push dword [ebp + 0x38]
sub ebx, ecx
lea eax, [esp + 0x24]
push dword [ebp + 0x34]
sub ebx, 4
push 0
push ebx
push eax
mov eax, dword [esp + 0x30]
add eax, 4
add eax, ecx
push eax
push dword [edi + 0x3a0]
push 0
push edi
call edx
add esp, 0x28
mov eax, dword [esp + 0x20]
test eax, eax
je 0x496486
mov ecx, eax
call fcn.00484fd7
test eax, eax
jne 0x496631
and dword [edi + 0x39c], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add eax, 4
add eax, ecx
mov dword [esi], eax
sub dword [edi + 0x388], ecx
mov ecx, dword [edi + 0x3a0]
test ecx, ecx
je 0x496631
jmp 0x496557
cmp dword [edi + 0x380], edx
jne 0x49651d
mov ecx, dword [ebp + 0x54]
test ecx, ecx
je 0x49651d
lea eax, [edi + 0x3e8]
push eax
push dword [ebp + 0x38]
lea eax, [esp + 0x24]
push dword [ebp + 0x34]
mov ebp, dword [esp + 0x20]
push edx
push edx
push eax
mov eax, dword [esp + 0x30]
add eax, 4
add eax, ebp
push eax
push dword [edi + 0x3a0]
push edx
push edi
call ecx
add esp, 0x28
cmp dword [edi + 0x374], 0
jne 0x496505
mov eax, dword [esp + 0x24]
jmp 0x495e6f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x496521
mov ecx, eax
call fcn.00484fd7
test eax, eax
je 0x496521
jmp 0x496650
mov ebp, dword [esp + 0x14]
sub ebx, dword [esi]
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub ebx, ebp
sub ebx, 4
mov edx, edi
push ebx
push eax
mov eax, dword [esp + 0x20]
add eax, 4
add eax, ebp
push eax
call fcn.00495187
mov eax, dword [esp + 0x28]
add esp, 0xc
add eax, 4
add eax, ebp
mov dword [esi], eax
mov ecx, dword [edi + 0x3a0]
call fcn.0048cd15
mov ecx, dword [edi + 0x3a0]
mov esi, eax
call fcn.0048bbf8
mov dword [edi + 0x3a0], esi
jmp 0x496631
cmp dword [edi + 0x37c], eax
jne 0x49661d
mov edx, dword [edi + 0x38c]
test edx, edx
jne 0x49659b
mov eax, ebx
xor ecx, ecx
sub eax, dword [esi]
cmp eax, dword [edi + 0x388]
setge cl
jmp 0x49659d
mov ecx, eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
test eax, eax
je 0x4965e1
sub ebx, dword [esi]
test edx, edx
jne 0x4965bd
mov eax, dword [edi + 0x388]
cmp ebx, eax
cmovge ebx, eax
lea eax, [edi + 0x3e8]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push ecx
push ebx
push esi
push dword [esp + 0x30]
push dword [edi + 0x3a0]
push 0
push edi
call dword [esp + 0x4c]
add esp, 0x28
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4965f4
mov ecx, eax
call fcn.00484fd7
test eax, eax
jne 0x496631
cmp dword [edi + 0x38c], 0
jne 0x496631
mov eax, dword [esi]
sub dword [edi + 0x388], eax
cmp dword [esp + 0x14], 0
mov eax, dword [edi + 0x388]
je 0x496631
add dword [esi], eax
mov edx, edi
call fcn.00494f7f
jmp 0x496631
mov ecx, dword [esp + 0x20]
mov edx, edi
push ebx
push esi
push dword [esp + 0x20]
call fcn.00495187
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x496644
mov ecx, eax
call fcn.00484fd7
test eax, eax
jne 0x496650
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 0x3e8]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0e20
add esp, 0x40
ret