Function at 0x4b98e0
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov eax, dword [0x6019e4]
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 0x4ba155
cmp dword [edi + 0xc8], ebx
je 0x4ba155
cmp dword [edi], ebx
je 0x4b996a
cmp dword [edi + 0x98], ebx
jne 0x4b9980
push edx
mov edx, dword [ebp]
push edi
push esi
call fcn.004b94b0
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.005852a8
add esp, 0x48
ret
cmp dword [edi + 0x98], ebx
jne 0x4b9980
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 + 0xc8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4b9999
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x98], ebx
jne 0x4b99b1
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 0x4b99cf
mov dword [ebp], esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005852a8
add esp, 0x48
ret
cmp dword [edi + 0x78], ebx
jne 0x4ba085
mov ecx, dword [ebp]
mov eax, esi
sub eax, ecx
cmp eax, 4
jl 0x4ba13b
lea edx, [eax - 4]
test edx, edx
js 0x4ba13b
mov eax, dword [esp + 0x10]
add eax, ecx
cmp dword [edi + 0xa4], 0
je 0x4b9a0a
cmp byte [eax + ebx], 0
je 0x4b9a10
jmp 0x4b9a25
cmp byte [eax + ebx], 0xd
jne 0x4b9a25
cmp byte [eax + ebx + 1], 0xa
jne 0x4b9a25
cmp byte [eax + ebx + 2], 0xd
jne 0x4b9a25
cmp byte [eax + ebx + 3], 0xa
je 0x4b9a2f
inc ebx
cmp ebx, edx
jle 0x4b99f3
jmp 0x4ba13b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b9a44
lea edx, [edi + 0xa8]
mov ecx, eax
call fcn.004ac9e0
cmp dword [edi + 0xa4], 0
lea eax, [ebx + 4]
mov dword [esp + 0x30], eax
mov dword [edi + 0xa0], eax
mov dword [edi + 0x90], 1
mov dword [edi + 0x8c], 0xffffffff
mov dword [edi + 0x78], 1
jne 0x4b9a8f
mov edx, dword [ebp]
mov eax, esi
mov ecx, dword [esp + 0x10]
sub eax, edx
push eax
call fcn.004b0f20
add esp, 4
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x4ba13b
movzx eax, word [edi + 0xa8]
lea edx, [edi + 0xa8]
mov dword [esp + 0x20], eax
mov esi, 0x10
mov dword [esp + 0x34], 0x1c
test ax, ax
je 0x4b9add
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 + 0xd0]
lea eax, [edi + 0xd0]
test cx, cx
je 0x4b9b0f
cmp ecx, 0x17
mov edx, 0x1e
mov ecx, dword [edi + 0xa4]
cmove esi, dword [esp + 0x34]
add ecx, 0x66
push esi
push eax
call fcn.00401000
add esp, 8
mov eax, dword [edi + 0xa4]
mov esi, dword [eax + 0x40]
test esi, esi
je 0x4b9bef
cmp dword [esi + 4], 0x11
jne 0x4b9b67
push 0x11
push str.transfer_encoding
push dword [esi]
call fcn.00593426
add esp, 0xc
test eax, eax
jne 0x4b9b67
cmp dword [esi + 0xc], 7
jne 0x4b9b67
push 7
push 0x626498
push dword [esi + 8]
call fcn.00593426
add esp, 0xc
test eax, eax
jne 0x4b9b67
mov dword [edi + 0x90], eax
mov dword [edi + 0x80], 1
cmp dword [esi + 4], 0xa
jne 0x4b9ba8
push 0xa
push str.connection
push dword [esi]
call fcn.00593426
add esp, 0xc
test eax, eax
jne 0x4b9ba8
cmp dword [esi + 0xc], 5
jne 0x4b9ba8
push 5
push str.close
push dword [esi + 8]
call fcn.00593426
add esp, 0xc
test eax, eax
jne 0x4b9ba8
mov dword [edi + 0x88], 1
cmp dword [esi + 4], 0xe
jne 0x4b9be4
push 0xe
push str.content_length
push dword [esi]
call fcn.00593426
add esp, 0xc
test eax, eax
jne 0x4b9be4
mov dword [edi + 0x90], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 0
push dword [esi + 8]
call fcn.0058d50c
add esp, 4
mov dword [edi + 0x8c], eax
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4b9b20
mov eax, dword [edi + 0xa4]
push dword [eax + 0x24]
call fcn.00594a8d
fstp qword [esp + 0x24]
movsd xmm0, qword [esp + 0x24]
add esp, 4
comisd xmm0, xmmword [0x5f1eb8]
jbe 0x4b9c43
cmp dword [edi + 0x80], 0
jne 0x4b9c43
cmp dword [edi + 0x88], 0
jne 0x4b9c43
cmp dword [edi + 0x90], 0
je 0x4b9c43
mov dword [edi + 0x90], 0
mov dword [edi + 0x8c], 0
mov edx, dword [edi + 0xa4]
mov eax, dword [edx + 0x18]
cmp eax, 0x64
jl 0x4b9ded
cmp eax, 0xc7
jg 0x4b9ded
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x48]
test ecx, ecx
jne 0x4b9cb3
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4b9c97
lea eax, [edi + 0xec]
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 + 0xa0]
add dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005852a8
add esp, 0x48
ret
cmp eax, 0x65
jne 0x4b9dbd
cmp dword [ecx + 8], 0
je 0x4b9dbd
mov ecx, dword [edi + 0xa4]
mov edx, str.Sec_WebSocket_Accept
push 0
push 0x14
mov ecx, dword [ecx + 0x84]
call fcn.004b0710
add esp, 8
test eax, eax
je 0x4b9d9c
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4b9cf9
mov byte [eax + ecx], 0
test ecx, ecx
je 0x4b9d9c
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 8]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4b9d27
test dl, dl
je 0x4b9d23
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4b9d27
add ecx, 2
add eax, 2
test dl, dl
jne 0x4b9d07
xor eax, eax
jmp 0x4b9d2c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4b9d9c
mov ebx, dword [edi + 0xa0]
lea ecx, [edi + 0x28]
mov dword [esp + 0x20], eax
xor edx, edx
lea eax, [esp + 0x3c]
push eax
call fcn.004b8240
add esp, 4
mov dword [edi], 1
mov ecx, esi
call fcn.004b9060
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4b9d86
lea eax, [edi + 0xec]
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 + 0xa4]
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.005852a8
add esp, 0x48
ret
mov ecx, edi
call fcn.004bb760
mov ecx, edi
call fcn.004b8290
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005852a8
add esp, 0x48
ret
cmp dword [esi + 0x4c], 0
jne 0x4b9e13
mov eax, dword [edi + 0xa0]
mov dword [edi + 0x78], 0
add dword [ebp], eax
mov ecx, dword [edi + 0xa4]
call fcn.004b0e60
mov dword [edi + 0xa4], 0
jmp 0x4ba13b
cmp eax, 0xcc
je 0x4b9dfb
cmp eax, 0x130
jne 0x4b9e0f
mov dword [edi + 0x90], 0
mov dword [edi + 0x8c], 0
mov esi, dword [esp + 0x1c]
cmp dword [edi + 0x98], 0
je 0x4b9e38
cmp dword [edi + 0x8c], 0xffffffff
jne 0x4b9e38
cmp dword [edi + 0x80], 0
jne 0x4b9e38
mov dword [edi + 0x8c], 0
mov ecx, dword [edi + 0xc8]
xor eax, eax
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x4b9e49
mov eax, dword [ecx]
cmp dword [edi + 0xc8], 0
je 0x4b9e7a
test eax, eax
je 0x4b9e7a
cmp dword [eax + 0x50], 0
je 0x4b9e7a
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x80], 0
mov eax, dword [edi + 0x8c]
test eax, eax
jne 0x4b9ecc
mov dword [edi + 0x70], 1
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4b9eb3
lea eax, [edi + 0xec]
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 + 0x70], 0
call fcn.004b8820
jmp 0x4ba13b
cmp dword [edi + 0x80], 0
jne 0x4b9fbc
mov ecx, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x4b9f47
mov eax, ecx
sub eax, dword [ebp]
sub eax, ebx
sub eax, 4
cmp eax, dword [edi + 0x8c]
jl 0x4b9f47
mov dword [edi + 0x70], 1
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4b9f2f
lea eax, [edi + 0xec]
push eax
push dword [esi + 0x38]
lea eax, [esp + 0x1c]
push dword [esi + 0x34]
push 1
push dword [edi + 0x8c]
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 0x4b9f3d
mov eax, dword [edi + 0x8c]
add eax, 4
add eax, ebx
jmp 0x4b9eb6
mov eax, dword [esi + 0x54]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4b9f84
sub ecx, dword [ebp]
lea eax, [edi + 0xec]
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 0x4b9f9b
mov ecx, eax
call fcn.004ac720
test eax, eax
jne 0x4ba13b
mov dword [edi + 0xa0], 0
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 4]
add eax, ebx
mov dword [ebp], eax
sub dword [edi + 0x8c], ecx
jmp 0x4ba062
cmp dword [edi + 0x84], 0
jne 0x4ba02c
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4ba02c
lea eax, [edi + 0xec]
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 + 0x78], 0
jne 0x4ba015
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.005852a8
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ba02c
mov ecx, eax
call fcn.004ac720
test eax, eax
jne 0x4ba155
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.004b8a50
mov eax, dword [esp + 0x20]
add esp, 0xc
add eax, 4
add eax, ebx
mov dword [ebp], eax
mov ecx, dword [edi + 0xa4]
call fcn.004b21b0
mov ecx, dword [edi + 0xa4]
mov esi, eax
call fcn.004b0e60
mov dword [edi + 0xa4], esi
jmp 0x4ba13b
cmp dword [edi + 0x80], ebx
jne 0x4ba127
mov edx, dword [edi + 0x90]
xor ebx, ebx
test edx, edx
jne 0x4ba0ab
mov eax, esi
sub eax, dword [ebp]
cmp eax, dword [edi + 0x8c]
setge bl
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4ba0ec
sub esi, dword [ebp]
test edx, edx
jne 0x4ba0c8
mov eax, dword [edi + 0x8c]
cmp esi, eax
cmovge esi, eax
lea eax, [edi + 0xec]
push eax
push dword [ecx + 0x38]
push dword [ecx + 0x34]
push ebx
push esi
push ebp
push dword [esp + 0x28]
push dword [edi + 0xa4]
push 0
push edi
call dword [esp + 0x58]
add esp, 0x28
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ba0ff
mov ecx, eax
call fcn.004ac720
test eax, eax
jne 0x4ba13b
cmp dword [edi + 0x90], 0
jne 0x4ba13b
mov eax, dword [ebp]
sub dword [edi + 0x8c], eax
mov eax, dword [edi + 0x8c]
test ebx, ebx
je 0x4ba13b
add dword [ebp], eax
mov edx, edi
call fcn.004b8820
jmp 0x4ba13b
mov ecx, dword [esp + 0x18]
mov edx, edi
push esi
push ebp
push dword [esp + 0x18]
call fcn.004b8a50
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ba149
cmp dword [eax + 0x2c], 0xffffffff
je 0x4ba155
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0xec]
mov dword [ecx], eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005852a8
add esp, 0x48
ret