Function at 0x402840
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 [0x449608]
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 [0x44960c]
mov edx, ecx
movups xmmword [ebp - 0x60], xmm0
push edi
movups xmm0, xmmword [0x4495f8]
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 0x4028f0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x118]
call fcn.0040a9a0
lea ecx, [ebp - 0x60]
add esp, 4
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402910
sub ecx, edx
lea edx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x118]
call fcn.0040a9a0
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x18]
call fcn.0040aa50
lea eax, [ebp - 0x38]
mov edx, 0x14
push eax
lea ecx, [ebp - 0x18]
call fcn.00408f80
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.0042a720
lea ecx, [ebp - 0x38]
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402980
sub ecx, edx
lea edx, [ebp - 0xbc]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402992
sub edx, esi
lea eax, [ebp - 0xbc]
add eax, edx
test cl, cl
je 0x4029c4
lea edx, [ebp - 0x38]
movzx esi, cl
nop dword [eax]
mov cl, byte [edx]
cmp cl, 0x2b
jne 0x4029bb
mov byte [eax], 0x5c
inc eax
mov byte [eax], cl
inc edx
inc eax
sub esi, 1
jne 0x4029b0
lea ecx, [ebp - 0xbc]
mov byte [eax + 1], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029d1
sub ecx, edx
lea eax, [ecx + ecx*4]
shl eax, 3
push eax
call fcn.0042ff7c
mov esi, eax
add esp, 4
test esi, esi
je 0x402a29
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 0x402a00
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.00404d70
test eax, eax
jne 0x402a2b
push esi
call fcn.0042f371
add esp, 4
xor esi, esi
mov ecx, esi
call fcn.00404a80
push esi
mov edi, eax
call fcn.0042f371
imul ecx, dword [edi], 0xb0
push ecx
call fcn.0042ff7c
mov esi, eax
add esp, 8
test esi, esi
jne 0x402a54
or ebx, 0xffffffff
jmp 0x402a70
push esi
push 0
push 0
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.00405430
push esi
mov ebx, eax
call fcn.0042f371
add esp, 0x14
push edi
call fcn.0042f371
mov ecx, dword [ebp - 4]
add esp, 4
test ebx, ebx
setg al
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00429577
mov esp, ebp
pop ebp
ret