Function at 0x4916ec
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x40
mov eax, dword [0x6d1d44]
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 0x491f2e
cmp dword [edi + 0x3c4], eax
je 0x491f2e
cmp dword [edi], eax
je 0x491762
cmp dword [edi + 0x394], eax
jne 0x491778
push edx
mov edx, dword [esi]
push edi
push ebx
call fcn.00491311
add esp, 0xc
mov dword [esi], eax
jmp 0x491f2e
cmp dword [edi + 0x394], eax
jne 0x491778
mov ecx, dword [edi + 0x360]
add ecx, 0x44
call fcn.0044cfd4
mov ecx, dword [edi + 0x3c4]
call fcn.004883f7
mov ebp, eax
xor eax, eax
cmp dword [edi + 0x394], eax
jne 0x491798
mov ecx, dword [edi + 0x360]
mov dword [ecx + 0x44], eax
test ebp, ebp
jne 0x4917a3
mov dword [esi], ebx
jmp 0x491f2e
cmp dword [edi + 0x374], eax
jne 0x491e52
mov edx, dword [esi]
mov eax, ebx
sub eax, edx
cmp eax, 4
jl 0x491f0f
add eax, 0xfffffffc
mov dword [esp + 0x10], eax
js 0x491f0f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ecx, edx
cmp dword [edi + 0x3a0], 0
je 0x4917e6
cmp byte [ecx + eax], 0
je 0x4917ec
jmp 0x491801
cmp byte [ecx + eax], 0xd
jne 0x491801
cmp byte [ecx + eax + 1], 0xa
jne 0x491801
cmp byte [ecx + eax + 2], 0xd
jne 0x491801
cmp byte [ecx + eax + 3], 0xa
je 0x491811
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jle 0x4917cf
jmp 0x491f0f
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x491828
lea edx, [edi + 0x3a4]
call fcn.0048293f
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 0x49186e
mov edx, dword [esi]
mov eax, ebx
sub eax, dword [esi]
mov ecx, dword [esp + 0x18]
push eax
call fcn.00488f62
mov dword [edi + 0x3a0], eax
xor eax, eax
pop ecx
inc eax
mov ecx, dword [edi + 0x3a0]
test ecx, ecx
je 0x491f0f
cmp dword [ecx], 0
jne 0x491899
cmp dword [ecx + 0x18], 0xffffffff
je 0x491899
cmp dword [edi + 0x394], eax
jne 0x491899
mov eax, 0x190
jmp 0x491f30
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 0x4918e3
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 0x491911
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 0x491a21
cmp dword [eax + 4], 0x11
jne 0x49196f
push 0x11
push str.transfer_encoding
push dword [eax]
call fcn.005e8140
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x49196f
cmp dword [eax + 0xc], 7
jne 0x49196f
push 7
push 0x741eac
push dword [eax + 8]
call fcn.005e8140
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x49196f
and dword [edi + 0x38c], 0
mov dword [edi + 0x37c], 1
cmp dword [eax + 4], 0xa
jne 0x4919b8
push 0xa
push str.connection
push dword [eax]
call fcn.005e8140
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x4919b8
cmp dword [eax + 0xc], 5
jne 0x4919b8
push 5
push 0x741ec0
push dword [eax + 8]
call fcn.005e8140
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x4919b8
mov dword [edi + 0x384], 1
cmp dword [eax + 4], 0xe
jne 0x491a1e
push 0xe
push str.content_length
push dword [eax]
call fcn.005e8140
add esp, 0xc
test eax, eax
jne 0x491a1a
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.00484daf
test edx, edx
ja 0x491a0a
jb 0x4919fc
cmp eax, 0x7fffffff
ja 0x491a0a
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
call fcn.00484ddc
jmp 0x491a0c
xor eax, eax
mov dword [edi + 0x388], eax
test eax, eax
js 0x491ad5
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x49191f
mov eax, dword [edi + 0x3a0]
push dword [eax + 0x24]
call fcn.0060e4a0
fstp qword [esp + 0x2c]
movsd xmm0, qword [esp + 0x2c]
xor edx, edx
comisd xmm0, xmmword [0x6c03f8]
pop ecx
jbe 0x491a76
cmp dword [edi + 0x37c], edx
jne 0x491a76
cmp dword [edi + 0x384], edx
jne 0x491a76
cmp dword [edi + 0x38c], edx
je 0x491a76
mov dword [edi + 0x38c], edx
mov dword [edi + 0x388], edx
mov ecx, dword [edi + 0x3a0]
mov eax, dword [ecx + 0x18]
cmp eax, 0x64
jl 0x491bd9
cmp eax, 0xc7
jg 0x491bd9
mov edx, dword [ebp + 0x48]
test edx, edx
jne 0x491ae6
mov ecx, dword [ebp + 0x54]
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x491ac8
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 0x491f2e
and dword [edi + 0x388], 0
mov eax, 0xfa1
jmp 0x491f30
cmp eax, 0x65
jne 0x491bad
cmp dword [edx + 8], 0
je 0x491bad
push 0
push 0x14
mov edx, str.Sec_WebSocket_Accept
call fcn.0048a541
pop ecx
pop ecx
test eax, eax
je 0x491b9a
mov ecx, dword [ebp + 0x48]
mov ecx, dword [ecx + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x491b37
test dl, dl
je 0x491b33
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x491b37
add eax, 2
add ecx, 2
test dl, dl
jne 0x491b17
xor eax, eax
jmp 0x491b3c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x491b9a
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.004903d9
pop ecx
mov ecx, ebp
mov dword [edi], 1
call fcn.0049105a
mov ecx, dword [ebp + 0x54]
test ecx, ecx
je 0x491b93
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 0x491f2e
mov ecx, edi
call fcn.00492f55
mov ecx, edi
call fcn.00490414
jmp 0x491f2e
xor edx, edx
cmp dword [ebp + 0x4c], edx
jne 0x491bf3
mov eax, dword [edi + 0x39c]
mov dword [edi + 0x374], edx
add dword [esi], eax
mov ecx, dword [edi + 0x3a0]
call fcn.00488e9d
and dword [edi + 0x3a0], 0
jmp 0x491f0f
cmp eax, 0xcc
je 0x491be7
cmp eax, 0x130
jne 0x491bf3
mov dword [edi + 0x38c], edx
mov dword [edi + 0x388], edx
cmp dword [edi + 0x394], edx
je 0x491c12
cmp dword [edi + 0x388], 0xffffffff
jne 0x491c12
cmp dword [edi + 0x37c], edx
jne 0x491c12
mov dword [edi + 0x388], edx
mov ecx, dword [edi + 0x3c4]
call fcn.004883f7
xor edx, edx
cmp dword [edi + 0x3c4], edx
je 0x491c42
test eax, eax
je 0x491c42
cmp dword [eax + 0x50], edx
je 0x491c42
mov dword [edi + 0x388], edx
mov dword [edi + 0x38c], edx
mov dword [edi + 0x37c], edx
mov eax, dword [edi + 0x388]
test eax, eax
jne 0x491c94
xor ebx, ebx
inc ebx
mov dword [edi + 0x36c], ebx
mov ecx, dword [ebp + 0x54]
test ecx, ecx
je 0x491c80
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 0x491ef2
cmp dword [edi + 0x37c], edx
jne 0x491d93
mov ecx, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x491d20
mov eax, ebx
sub eax, dword [esi]
sub eax, ecx
sub eax, 4
cmp eax, dword [edi + 0x388]
jl 0x491d20
xor ebx, ebx
inc ebx
mov dword [edi + 0x36c], ebx
mov edx, dword [ebp + 0x54]
test edx, edx
je 0x491cff
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 0x491d0d
mov eax, dword [edi + 0x388]
add ecx, 4
add eax, ecx
add dword [esi], eax
and dword [edi + 0x36c], 0
jmp 0x491ef2
mov edx, dword [ebp + 0x54]
test edx, edx
je 0x491d5b
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 0x491d72
mov ecx, eax
call fcn.00482681
test eax, eax
jne 0x491f0f
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
jmp 0x491e2f
cmp dword [edi + 0x380], edx
jne 0x491dfb
mov ecx, dword [ebp + 0x54]
test ecx, ecx
je 0x491dfb
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 0x491de3
mov eax, dword [esp + 0x24]
jmp 0x49175b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x491dff
mov ecx, eax
call fcn.00482681
test eax, eax
je 0x491dff
jmp 0x491f2e
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.00490a73
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.00489fc1
mov ecx, dword [edi + 0x3a0]
mov esi, eax
call fcn.00488e9d
mov dword [edi + 0x3a0], esi
jmp 0x491f0f
cmp dword [edi + 0x37c], eax
jne 0x491efb
mov edx, dword [edi + 0x38c]
test edx, edx
jne 0x491e79
mov eax, ebx
xor ecx, ecx
sub eax, dword [esi]
cmp eax, dword [edi + 0x388]
setge cl
jmp 0x491e7b
mov ecx, eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
test eax, eax
je 0x491ebf
sub ebx, dword [esi]
test edx, edx
jne 0x491e9b
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 0x491ed2
mov ecx, eax
call fcn.00482681
test eax, eax
jne 0x491f0f
cmp dword [edi + 0x38c], 0
jne 0x491f0f
mov eax, dword [esi]
sub dword [edi + 0x388], eax
cmp dword [esp + 0x14], 0
mov eax, dword [edi + 0x388]
je 0x491f0f
add dword [esi], eax
mov edx, edi
call fcn.0049086b
jmp 0x491f0f
mov ecx, dword [esp + 0x20]
mov edx, edi
push ebx
push esi
push dword [esp + 0x20]
call fcn.00490a73
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x491f22
mov ecx, eax
call fcn.00482681
test eax, eax
jne 0x491f2e
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.005b8900
add esp, 0x40
ret