Function at 0x41a230
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, esi
push edi
mov edi, ecx
mov dword [ebp - 0x174], esi
lea ebx, [edi + 0x798]
mov dword [ebx], 0xffffffff
mov dword [edi + 0x748], 0
mov dword [edi + 0x74c], 0
mov dword [edi + 0x788], 0
mov dword [edi + 0x78c], 0
mov dword [edi + 0x790], 0
mov dword [edi + 0x7b0], 0
mov dword [edi + 0x7b4], 0
mov dword [edi + 0x7b8], 0
mov dword [edi + 0x7bc], 0
mov dword [edi + 0x7c0], 0
mov dword [edi + 0x7c4], 0
mov dword [edi + 0x7c8], 0
mov dword [edi + 0x7cc], 0
mov dword [edi + 0x7d0], 0
mov dword [edi + 0x7d4], 0
mov dword [edi + 0x7e0], 0
mov dword [edi + 0x7e4], 0
mov dword [edi + 0x7e8], 0
mov dword [edi + 0x894], 0
mov dword [edi + 0x794], 0x30
mov ecx, dword [edi + 4]
call fcn.00416020
mov dword [ebp - 8], eax
test eax, eax
je 0x41a369
mov ecx, dword [edi + 0x14]
cmp ecx, 4
je 0x41a37f
cmp ecx, 6
je 0x41a37f
test esi, esi
je 0x41a369
push 0xb61
push str.ytcp
push str.not_a_WebSocket_url
push str._s___s:_d_
push 0x100
push esi
call fcn.0041c830
add esp, 0x18
mov eax, 0xfffffff8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push dword [edi + 0x4c8]
lea eax, [ebp - 0x118]
push dword [edi + 0x10]
push str.GET__s_not.byn_abs_u
push 0x100
push eax
call fcn.0041c830
movzx eax, word [edi + 0x18]
add esp, 0x14
mov edx, dword [ebp - 8]
mov ecx, ebx
push esi
push 0
push 0x3e8
push eax
call fcn.004161d0
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x41a3e2
push dword [ebx]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
call fcn.00408c40
lea esi, [ebp - 0x118]
mov dword [edi + 0x7b0], eax
mov dword [edi + 0x7b4], edx
lea ecx, [esi + 1]
mov dword [edi + 0x7b8], 0x3e8
mov dword [edi + 0x7bc], 0
mov al, byte [esi]
inc esi
test al, al
jne 0x41a410
push dword [ebp - 0x174]
sub esi, ecx
lea edx, [ebp - 0x118]
mov ecx, dword [ebx]
push esi
call fcn.00416570
mov ecx, dword [ebx]
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jns 0x41a45a
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 8]
mov dword [ebx], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x174]
mov edx, str._HTTP_1.1_r_nSec_WebSocket_Version:_13_r_nUser_Agent:_Yoctopuce_r_nSec_WebSocket_Key:
push 0x50
call fcn.00416570
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jns 0x41a498
push dword [ebx]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 8]
mov dword [ebx], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
call fcn.0044c47b
mov dword [ebp - 0xc], eax
call fcn.00408c40
movzx eax, al
lea edx, [ebp - 0xc]
push 2
lea ecx, [ebp - 0x170]
mov dword [ebp - 8], eax
mov dword [ebp - 0x170], 0x67452301
mov dword [ebp - 0x16c], 0xefcdab89
mov dword [ebp - 0x168], 0x98badcfe
mov dword [ebp - 0x164], 0x10325476
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
call fcn.00412fa0
add esp, 4
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x170]
push esi
call fcn.00412fa0
add esp, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x170]
call fcn.00413080
lea esi, [edi + 0x764]
mov edx, 0x10
push 0x1c
push esi
lea ecx, [ebp - 0x14]
call fcn.00418bf0
push dword [ebp - 0x174]
mov ecx, dword [ebx]
mov edx, esi
movzx eax, ax
push eax
mov dword [edi + 0x784], eax
call fcn.00416570
mov ecx, dword [ebx]
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x41a577
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x174]
mov edx, str._r_nConnection:_keep_alive__Upgrade_r_nUpgrade:_websocket_r_nHost:
push esi
push 0x3d
call fcn.00416570
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
js 0x41a476
mov edx, dword [edi + 4]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a5a0
sub ecx, edi
push esi
push ecx
mov ecx, dword [ebx]
call fcn.00416570
mov ecx, dword [ebx]
mov edi, eax
add esp, 8
test edi, edi
jns 0x41a5dd
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push esi
push 4
mov edx, str._r_n_r_n
call fcn.00416570
mov esi, eax
add esp, 8
test esi, esi
js 0x41a3c1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004423fe
mov esp, ebp
pop ebp
ret