Function at 0x402360
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x44e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp - 0x2c]
mov edi, 8
cmp dword [0x451a1c], 0
jne 0x4023ae
push 0
call fcn.0042e491
push eax
mov dword [0x451a1c], eax
call fcn.0042eb62
add esp, 8
call fcn.0042eb41
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x44c180]
mulsd xmm0, qword [0x44c1a0]
cvttsd2si eax, xmm0
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x402390
lea eax, [ebp - 0x50]
mov byte [ebp - 0x38], 0
xorps xmm0, xmm0
lea edx, [edi + 0x10]
push eax
lea ecx, [ebp - 0x2c]
movaps xmmword [ebp - 0x50], xmm0
movq qword [ebp - 0x40], xmm0
call fcn.00408f60
mov eax, dword [0x44bb08]
lea ecx, [ebp - 0x50]
movaps xmmword [ebp - 0x70], xmm0
lea edx, [ecx + 1]
movq qword [ebp - 0x60], xmm0
add esp, 4
movups xmm0, xmmword [str.258EAFA5_E914_47DA_95CA_C5AB0DC85B11]
mov dword [ebp - 0x80], eax
mov al, byte [0x44bb0c]
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x58], edi
movups xmm0, xmmword [0x44baf8]
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x7c], al
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x20], edi
xorps xmm0, xmm0
mov dword [ebp - 0x2f8], 0x67452301
movaps xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x2f4], 0xefcdab89
mov dword [ebp - 0x2f0], 0x98badcfe
mov dword [ebp - 0x2ec], 0x10325476
mov dword [ebp - 0x2e8], 0xc3d2e1f0
mov dword [ebp - 0x2e0], edi
mov dword [ebp - 0x2e4], edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402486
sub ecx, edx
lea edx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.0040ac70
lea ecx, [ebp - 0xa0]
add esp, 4
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4024b0
sub ecx, edx
lea edx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.0040ac70
lea edx, [ebp - 0x2f8]
lea ecx, [ebp - 0x30]
call fcn.0040ad20
lea eax, [ebp - 0x70]
mov edx, 0x14
push eax
lea ecx, [ebp - 0x30]
call fcn.00408f60
push 0x64
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00429010
lea edi, [ebp - 0x108]
add esp, 0x14
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402504
mov ecx, 8
mov esi, str.Sec_WebSocket_Accept___t_:___t_
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x70]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402520
sub ecx, edx
lea edx, [ebp - 0x108]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402532
sub edx, esi
lea eax, [ebp - 0x108]
add eax, edx
test cl, cl
je 0x402564
lea edx, [ebp - 0x70]
movzx esi, cl
nop dword [eax]
mov cl, byte [edx]
cmp cl, 0x2b
jne 0x40255b
mov byte [eax], 0x5c
inc eax
mov byte [eax], cl
inc edx
inc eax
sub esi, 1
jne 0x402550
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402570
sub ecx, edx
lea eax, [ecx + ecx*4]
shl eax, 3
push eax
call fcn.0042dfe2
mov esi, eax
add esp, 4
test esi, esi
je 0x4025c9
lea eax, [ebp - 0x108]
mov dword [ebp - 0x24], esi
mov ecx, eax
mov dword [ebp - 0x28], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4025a0
sub ecx, edx
xor edx, edx
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], eax
call fcn.004043a0
test eax, eax
jne 0x4025cb
push esi
call fcn.0042d6e0
add esp, 4
xor esi, esi
mov ecx, esi
call fcn.004040b0
push esi
mov dword [0x451954], eax
call fcn.0042d6e0
lea eax, [ebp - 0x50]
push eax
push dword [0x451a90]
lea eax, [ebp - 0x298]
push 0x451a60
push 0x4518a8
push str.GET__s_HTTP_1.1_r_nHost:__s:_u_r_nConnection:_Upgrade_r_nUpgrade:_websocket_r_nSec_WebSocket_Version:_13_r_nSec_WebSocket_Key:__s_r_n_r_n
push eax
call fcn.00401050
mov ecx, dword [0x451a94]
add esp, 0x1c
test eax, eax
js 0x40263b
push eax
lea edx, [ebp - 0x298]
mov dword [0x4519fc], 1
call fcn.00407270
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427ba1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004075c0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00427ba1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret