Function at 0x402880
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x44e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4495f0]
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
push ebx
movq qword [ebp - 0x28], xmm0
mov ebx, edx
movups xmm0, xmmword [str.258EAFA5_E914_47DA_95CA_C5AB0DC85B11]
push esi
mov dword [ebp - 0x40], eax
lea esi, [ecx + 1]
mov al, byte [0x4495f4]
mov edx, ecx
movups xmmword [ebp - 0x60], xmm0
push edi
movups xmm0, xmmword [0x4495e0]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
movups xmmword [ebp - 0x50], xmm0
mov byte [ebp - 0x3c], al
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x118], 0x67452301
mov dword [ebp - 0x114], 0xefcdab89
mov dword [ebp - 0x110], 0x98badcfe
mov dword [ebp - 0x10c], 0x10325476
mov dword [ebp - 0x108], 0xc3d2e1f0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x104], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402930
sub ecx, esi
push ecx
lea ecx, [ebp - 0x118]
call fcn.0040a9d0
lea ecx, [ebp - 0x60]
add esp, 4
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402950
sub ecx, edx
lea edx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x118]
call fcn.0040a9d0
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x18]
call fcn.0040aa80
lea eax, [ebp - 0x38]
mov edx, 0x14
push eax
lea ecx, [ebp - 0x18]
call fcn.00408fb0
movups xmm0, xmmword [str.Sec_WebSocket_Accept___t_:___t_]
push 0x3a
lea eax, [ebp - 0x9c]
movups xmmword [ebp - 0xbc], xmm0
push 0
movups xmm0, xmmword [0x449360]
push eax
movups xmmword [ebp - 0xac], xmm0
call fcn.0042a750
lea ecx, [ebp - 0x38]
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029c0
sub ecx, edx
lea edx, [ebp - 0xbc]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4029d2
sub edx, esi
lea eax, [ebp - 0xbc]
add eax, edx
test cl, cl
je 0x402a04
lea edx, [ebp - 0x38]
movzx esi, cl
nop dword [eax]
mov cl, byte [edx]
cmp cl, 0x2b
jne 0x4029fb
mov byte [eax], 0x5c
inc eax
mov byte [eax], cl
inc edx
inc eax
sub esi, 1
jne 0x4029f0
lea ecx, [ebp - 0xbc]
mov byte [eax + 1], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a11
sub ecx, edx
lea eax, [ecx + ecx*4]
shl eax, 3
push eax
call fcn.0042ffac
mov esi, eax
add esp, 4
test esi, esi
je 0x402a69
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xc], esi
mov ecx, eax
mov dword [ebp - 0x10], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a40
sub ecx, edx
xor edx, edx
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.00404da0
test eax, eax
jne 0x402a6b
push esi
call fcn.0042f3a1
add esp, 4
xor esi, esi
mov ecx, esi
call fcn.00404ab0
push esi
mov edi, eax
call fcn.0042f3a1
imul ecx, dword [edi], 0xb0
push ecx
call fcn.0042ffac
mov esi, eax
add esp, 8
test esi, esi
jne 0x402a94
or ebx, 0xffffffff
jmp 0x402ab0
push esi
push 0
push 0
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.00405460
push esi
mov ebx, eax
call fcn.0042f3a1
add esp, 0x14
push edi
call fcn.0042f3a1
mov ecx, dword [ebp - 4]
add esp, 4
test ebx, ebx
setg al
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004295a7
mov esp, ebp
pop ebp
ret