Function at 0x4b9080
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x48
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
xor ebx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x64]
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], 0
test edi, edi
je 0x4b98e3
cmp dword [edi + 0xc4], ebx
je 0x4b98e3
cmp dword [edi], ebx
je 0x4b910a
cmp dword [edi + 0x94], ebx
jne 0x4b9120
push edx
mov edx, dword [ebp]
push edi
push esi
call fcn.004b8c50
add esp, 0xc
mov dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00584a28
add esp, 0x48
ret
cmp dword [edi + 0x94], ebx
jne 0x4b9120
mov eax, dword [edi + 0x60]
push 0xffffffffffffffff
push dword [eax + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0xc4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4b9139
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x94], ebx
jne 0x4b9151
mov eax, dword [edi + 0x60]
push 0
push 1
push dword [eax + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4b916f
mov dword [ebp], esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00584a28
add esp, 0x48
ret
cmp dword [edi + 0x74], ebx
jne 0x4b9816
mov ecx, dword [ebp]
mov eax, esi
sub eax, ecx
cmp eax, 4
jl 0x4b98c9
lea edx, [eax - 4]
test edx, edx
js 0x4b98c9
mov eax, dword [esp + 0x10]
add eax, ecx
cmp dword [edi + 0xa0], 0
je 0x4b91aa
cmp byte [eax + ebx], 0
je 0x4b91b0
jmp 0x4b91c5
cmp byte [eax + ebx], 0xd
jne 0x4b91c5
cmp byte [eax + ebx + 1], 0xa
jne 0x4b91c5
cmp byte [eax + ebx + 2], 0xd
jne 0x4b91c5
cmp byte [eax + ebx + 3], 0xa
je 0x4b91cf
inc ebx
cmp ebx, edx
jle 0x4b9193
jmp 0x4b98c9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b91e4
lea edx, [edi + 0xa4]
mov ecx, eax
call fcn.004ac270
cmp dword [edi + 0xa0], 0
lea eax, [ebx + 4]
mov dword [esp + 0x30], eax
mov dword [edi + 0x9c], eax
mov dword [edi + 0x8c], 1
mov dword [edi + 0x88], 0xffffffff
mov dword [edi + 0x74], 1
jne 0x4b922f
mov edx, dword [ebp]
mov eax, esi
mov ecx, dword [esp + 0x10]
sub eax, edx
push eax
call fcn.004b07b0
add esp, 4
mov dword [edi + 0xa0], eax
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x4b98c9
movzx eax, word [edi + 0xa4]
lea edx, [edi + 0xa4]
mov dword [esp + 0x20], eax
mov esi, 0x10
mov dword [esp + 0x34], 0x1c
test ax, ax
je 0x4b927d
cmp word [esp + 0x20], 0x17
mov eax, esi
cmove eax, dword [esp + 0x34]
add ecx, 0x48
push eax
push edx
lea edx, [esi + 0xe]
call fcn.00401000
add esp, 8
movzx ecx, word [edi + 0xcc]
lea eax, [edi + 0xcc]
test cx, cx
je 0x4b92af
cmp ecx, 0x17
mov edx, 0x1e
mov ecx, dword [edi + 0xa0]
cmove esi, dword [esp + 0x34]
add ecx, 0x66
push esi
push eax
call fcn.00401000
add esp, 8
mov eax, dword [edi + 0xa0]
mov esi, dword [eax + 0x40]
test esi, esi
je 0x4b938c
cmp dword [esi + 4], 0x11
jne 0x4b9304
push 0x11
push str.transfer_encoding
push dword [esi]
call fcn.00592b16
add esp, 0xc
test eax, eax
jne 0x4b9304
cmp dword [esi + 0xc], 7
jne 0x4b9304
push 7
push 0x61e838
push dword [esi + 8]
call fcn.00592b16
add esp, 0xc
test eax, eax
jne 0x4b9304
mov dword [edi + 0x8c], eax
mov dword [edi + 0x7c], 1
cmp dword [esi + 4], 0xa
jne 0x4b9345
push 0xa
push str.connection
push dword [esi]
call fcn.00592b16
add esp, 0xc
test eax, eax
jne 0x4b9345
cmp dword [esi + 0xc], 5
jne 0x4b9345
push 5
push str.close
push dword [esi + 8]
call fcn.00592b16
add esp, 0xc
test eax, eax
jne 0x4b9345
mov dword [edi + 0x84], 1
cmp dword [esi + 4], 0xe
jne 0x4b9381
push 0xe
push str.content_length
push dword [esi]
call fcn.00592b16
add esp, 0xc
test eax, eax
jne 0x4b9381
mov dword [edi + 0x8c], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 0
push dword [esi + 8]
call fcn.0058cc7c
add esp, 4
mov dword [edi + 0x88], eax
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4b92c0
mov eax, dword [edi + 0xa0]
push dword [eax + 0x24]
call fcn.005941ae
fstp qword [esp + 0x24]
movsd xmm0, qword [esp + 0x24]
add esp, 4
comisd xmm0, xmmword [0x5f0eb8]
jbe 0x4b93dd
cmp dword [edi + 0x7c], 0
jne 0x4b93dd
cmp dword [edi + 0x84], 0
jne 0x4b93dd
cmp dword [edi + 0x8c], 0
je 0x4b93dd
mov dword [edi + 0x8c], 0
mov dword [edi + 0x88], 0
mov edx, dword [edi + 0xa0]
mov eax, dword [edx + 0x18]
cmp eax, 0x64
jl 0x4b9587
cmp eax, 0xc7
jg 0x4b9587
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x48]
test ecx, ecx
jne 0x4b944d
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4b9431
lea eax, [edi + 0xe8]
push eax
push dword [esi + 0x38]
lea eax, [esp + 0x28]
push dword [esi + 0x34]
push 0xc
push 0
push eax
push 0
push edx
push 0
push edi
call ecx
add esp, 0x28
mov eax, dword [edi + 0x9c]
add dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00584a28
add esp, 0x48
ret
cmp eax, 0x65
jne 0x4b9557
cmp dword [ecx + 8], 0
je 0x4b9557
mov ecx, dword [edi + 0xa0]
mov edx, str.Sec_WebSocket_Accept
push 0
push 0x14
mov ecx, dword [ecx + 0x84]
call fcn.004affa0
add esp, 8
test eax, eax
je 0x4b9536
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4b9493
mov byte [eax + ecx], 0
test ecx, ecx
je 0x4b9536
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 8]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4b94c1
test dl, dl
je 0x4b94bd
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4b94c1
add ecx, 2
add eax, 2
test dl, dl
jne 0x4b94a1
xor eax, eax
jmp 0x4b94c6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4b9536
mov ebx, dword [edi + 0x9c]
lea ecx, [edi + 0x28]
mov dword [esp + 0x20], eax
xor edx, edx
lea eax, [esp + 0x3c]
push eax
call fcn.004b79e0
add esp, 4
mov dword [edi], 1
mov ecx, esi
call fcn.004b87f0
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4b9520
lea eax, [edi + 0xe8]
push eax
push dword [esi + 0x38]
lea eax, [esp + 0x28]
push dword [esi + 0x34]
push 0xc
push 0
push eax
push 0
push dword [edi + 0xa0]
push 0
push edi
call ecx
add esp, 0x28
add dword [ebp], ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00584a28
add esp, 0x48
ret
mov ecx, edi
call fcn.004baec0
mov ecx, edi
call fcn.004b7a30
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00584a28
add esp, 0x48
ret
cmp dword [esi + 0x4c], 0
jne 0x4b95ad
mov eax, dword [edi + 0x9c]
mov dword [edi + 0x74], 0
add dword [ebp], eax
mov ecx, dword [edi + 0xa0]
call fcn.004b06f0
mov dword [edi + 0xa0], 0
jmp 0x4b98c9
cmp eax, 0xcc
je 0x4b9595
cmp eax, 0x130
jne 0x4b95a9
mov dword [edi + 0x8c], 0
mov dword [edi + 0x88], 0
mov esi, dword [esp + 0x1c]
cmp dword [edi + 0x94], 0
je 0x4b95cf
cmp dword [edi + 0x88], 0xffffffff
jne 0x4b95cf
cmp dword [edi + 0x7c], 0
jne 0x4b95cf
mov dword [edi + 0x88], 0
mov ecx, dword [edi + 0xc4]
xor eax, eax
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x4b95e0
mov eax, dword [ecx]
cmp dword [edi + 0xc4], 0
je 0x4b960e
test eax, eax
je 0x4b960e
cmp dword [eax + 0x50], 0
je 0x4b960e
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x7c], 0
mov eax, dword [edi + 0x88]
test eax, eax
jne 0x4b9660
mov dword [edi + 0x6c], 1
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4b9647
lea eax, [edi + 0xe8]
push eax
push dword [esi + 0x38]
lea eax, [esp + 0x1c]
push dword [esi + 0x34]
push 1
push 0
push eax
push 0
push edx
push 0
push edi
call ecx
add esp, 0x28
lea eax, [ebx + 4]
add dword [ebp], eax
mov edx, edi
mov dword [edi + 0x6c], 0
call fcn.004b7fb0
jmp 0x4b98c9
cmp dword [edi + 0x7c], 0
jne 0x4b974d
mov ecx, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x4b96d8
mov eax, ecx
sub eax, dword [ebp]
sub eax, ebx
sub eax, 4
cmp eax, dword [edi + 0x88]
jl 0x4b96d8
mov dword [edi + 0x6c], 1
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4b96c0
lea eax, [edi + 0xe8]
push eax
push dword [esi + 0x38]
lea eax, [esp + 0x1c]
push dword [esi + 0x34]
push 1
push dword [edi + 0x88]
push eax
mov eax, dword [esp + 0x28]
add eax, 4
add eax, ebx
push eax
push edx
push 0
push edi
call ecx
add esp, 0x28
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b96ce
mov eax, dword [edi + 0x88]
add eax, 4
add eax, ebx
jmp 0x4b964a
mov eax, dword [esi + 0x54]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4b9715
sub ecx, dword [ebp]
lea eax, [edi + 0xe8]
push eax
push dword [esi + 0x38]
sub ecx, ebx
lea eax, [esp + 0x1c]
push dword [esi + 0x34]
sub ecx, 4
push 0
push ecx
push eax
mov eax, dword [esp + 0x28]
add eax, 4
add eax, ebx
push eax
push edx
push 0
push edi
call dword [esp + 0x48]
add esp, 0x28
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b972c
mov ecx, eax
call fcn.004abfb0
test eax, eax
jne 0x4b98c9
mov dword [edi + 0x9c], 0
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 4]
add eax, ebx
mov dword [ebp], eax
sub dword [edi + 0x88], ecx
jmp 0x4b97f3
cmp dword [edi + 0x80], 0
jne 0x4b97bd
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4b97bd
lea eax, [edi + 0xe8]
push eax
push dword [esi + 0x38]
lea eax, [esp + 0x1c]
push dword [esi + 0x34]
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
add eax, 4
add eax, ebx
push eax
push edx
push 0
push edi
call ecx
add esp, 0x28
cmp dword [edi + 0x74], 0
jne 0x4b97a6
mov eax, dword [esp + 0x30]
mov dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00584a28
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b97bd
mov ecx, eax
call fcn.004abfb0
test eax, eax
jne 0x4b98e3
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
sub ecx, dword [ebp]
mov edx, edi
sub ecx, ebx
sub ecx, 4
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
add eax, 4
add eax, ebx
push eax
call fcn.004b81e0
mov eax, dword [esp + 0x20]
add esp, 0xc
add eax, 4
add eax, ebx
mov dword [ebp], eax
mov ecx, dword [edi + 0xa0]
call fcn.004b1a40
mov ecx, dword [edi + 0xa0]
mov esi, eax
call fcn.004b06f0
mov dword [edi + 0xa0], esi
jmp 0x4b98c9
cmp dword [edi + 0x7c], ebx
jne 0x4b98b5
mov edx, dword [edi + 0x8c]
xor ebx, ebx
test edx, edx
jne 0x4b9839
mov eax, esi
sub eax, dword [ebp]
cmp eax, dword [edi + 0x88]
setge bl
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4b987a
sub esi, dword [ebp]
test edx, edx
jne 0x4b9856
mov eax, dword [edi + 0x88]
cmp esi, eax
cmovge esi, eax
lea eax, [edi + 0xe8]
push eax
push dword [ecx + 0x38]
push dword [ecx + 0x34]
push ebx
push esi
push ebp
push dword [esp + 0x28]
push dword [edi + 0xa0]
push 0
push edi
call dword [esp + 0x58]
add esp, 0x28
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b988d
mov ecx, eax
call fcn.004abfb0
test eax, eax
jne 0x4b98c9
cmp dword [edi + 0x8c], 0
jne 0x4b98c9
mov eax, dword [ebp]
sub dword [edi + 0x88], eax
mov eax, dword [edi + 0x88]
test ebx, ebx
je 0x4b98c9
add dword [ebp], eax
mov edx, edi
call fcn.004b7fb0
jmp 0x4b98c9
mov ecx, dword [esp + 0x18]
mov edx, edi
push esi
push ebp
push dword [esp + 0x18]
call fcn.004b81e0
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b98d7
cmp dword [eax + 0x2c], 0xffffffff
je 0x4b98e3
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0xe8]
mov dword [ecx], eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00584a28
add esp, 0x48
ret