Function at 0x41e7a0
Capabilities:
Check for time delay via gettickcount
Hash data with md5
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d1946
mov eax, dword fs:[0]
push eax
sub esp, 0x3d8
mov eax, dword [0x65db30]
xor eax, esp
mov dword [esp + 0x3d0], eax
push ebx
push esi
push edi
mov eax, dword [0x65db30]
xor eax, esp
push eax
lea eax, [esp + 0x3e8]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x48]
add ecx, 4
mov dword [esp + 0x1c], esi
call edx
test eax, eax
je 0x41e802
mov eax, 1
jmp 0x41ed4f
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x74]
add ecx, 4
call edx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x6c]
xor ebx, ebx
push ebx
push ebx
push ebx
add ecx, 4
push ebx
push ebx
call edx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x94]
add ecx, 4
push 1
call edx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
push 1
call edx
mov edi, dword [0x661b4c]
cmp edi, ebx
jne 0x41e88c
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x3f0], ebx
cmp esi, ebx
je 0x41e877
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x41e879
xor esi, esi
mov edi, esi
mov dword [esp + 0x3f0], 0xffffffff
mov dword [0x661b4c], edi
lea esi, [esp + 0x314]
call fcn.00411840
mov dword [esp + 0x3f0], 1
mov edi, dword [0x661b4c]
cmp edi, ebx
jne 0x41e8e9
push 0x8c
call dword [sym.imp.mfc100u.dll_new]
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x3f0], 2
cmp esi, ebx
je 0x41e8d7
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
jmp 0x41e8d9
xor esi, esi
mov edi, esi
mov byte [esp + 0x3f0], 1
mov dword [0x661b4c], edi
lea esi, [esp + 0x1f4]
call fcn.004118d0
lea ecx, [esp + 0x164]
mov byte [esp + 0x3f0], 3
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x3f4], 4
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x34]
movzx edx, word [esp + 0x36]
movzx eax, word [esp + 0x3a]
sub ecx, 0x76c
mov dword [esp + 0x64], ecx
movzx ecx, word [esp + 0x3c]
dec edx
mov dword [esp + 0x60], edx
movzx edx, word [esp + 0x3e]
mov dword [esp + 0x5c], eax
movzx eax, word [esp + 0x40]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x74], 0xffffffff
call dword [sym.imp.MSVCR100.dll__mktime64]
add esp, 4
push edx
push eax
lea edx, [esp + 0x16c]
push 0x6443c0
push edx
call dword [sym.imp.szutils.dll_public:_int___cdecl_TCommon::TString::Format_wchar_t_const__]
add esp, 0x10
lea eax, [esp + 0x164]
push eax
mov ecx, esi
call dword [0x5d5a00]
lea ecx, [esp + 0x20]
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TBuffer::constructor_void_]
mov byte [esp + 0x3f0], 5
mov ecx, esi
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], 0x67452301
mov dword [esp + 0xc8], 0xefcdab89
mov dword [esp + 0xcc], 0x98badcfe
mov dword [esp + 0xd0], 0x10325476
call dword [sym.imp.szutils.dll_public:_int___thiscall_TCommon::TString::GetLength_void_const]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_char_const____thiscall_TCommon::TString::GetAnsi_void_]
mov ebx, eax
lea esi, [esp + 0x78]
call fcn.004058a0
add esp, 4
lea edi, [esp + 0x3d0]
call fcn.004058f0
push 0x10
mov ecx, edi
push ecx
lea ecx, [esp + 0x28]
call dword [sym.imp.szutils.dll_public:_int___thiscall_TCommon::TBuffer::Append_unsigned_char_const___unsigned_long_int_]
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TBuffer::HexEncode_void_]
mov esi, dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
push eax
lea ecx, [esp + 0x28c]
call esi
lea ecx, [esp + 0x284]
mov byte [esp + 0x3f0], 6
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::MakeUpper_void_]
push 0xffffffffffffffff
push str._v1_socketServer_clientId
lea ecx, [esp + 0xdc]
call esi
lea edx, [esp + 0x314]
mov byte [esp + 0x3f0], 7
mov esi, dword [reloc.szutils.dll___YTString_TCommon__QAEABV01_ABV01__Z]
push edx
lea ecx, [esp + 0xd8]
call esi
mov edi, dword [reloc.szutils.dll___YTString_TCommon__QAEABV01_PB_W_Z]
push 0x644404
lea ecx, [esp + 0xd8]
call edi
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0xd8]
call esi
push 0x64441c
lea ecx, [esp + 0xd8]
call edi
lea ecx, [esp + 0x284]
push ecx
lea ecx, [esp + 0xd8]
call esi
mov edi, 0x644240
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x10]
xor eax, eax
push eax
push eax
push eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x48], eax
movzx eax, word [edi]
mov edx, dword [ecx + 4]
mov edx, dword [edx]
add ecx, 4
push eax
push str.127.0.0.1
call edx
mov esi, eax
test esi, esi
je 0x41ecb6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 1
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x48], edi
je 0x41eb6d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x18]
cmp eax, 0x7d0
jae 0x41eb6d
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push edi
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
je 0x41eb68
mov edi, edi
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
call esi
test eax, eax
jne 0x41eb40
cmp dword [ebx + 0x48], edi
jne 0x41eb15
mov edi, dword [ebx + 0x10]
push 5
lea ecx, [esp + 0x3ac]
push ecx
mov dword [esp + 0x3b0], 0x644440
mov dword [esp + 0x3b4], 0x64444c
mov dword [esp + 0x3b8], 0x644454
mov dword [esp + 0x3bc], str.websocket
mov dword [esp + 0x3c0], 0x644468
mov dword [esp + 0x3c4], str.B5ED0B9C_C195_408F_973F_E7DDC7D569CD
mov dword [esp + 0x3c8], str.Sec_WebSocket_Version
mov dword [esp + 0x3cc], 0x6444bc
mov dword [esp + 0x3d0], str.Sec_WebSocket_Extensions
mov dword [esp + 0x3d4], str.permessage_deflate__client_max_window_bits
mov esi, dword [edi]
lea ecx, [esp + 0xdc]
call dword [sym.imp.szutils.dll_public:_char_const____thiscall_TCommon::TString::GetAnsi_void_]
mov edx, dword [esi + 0x78]
push eax
mov ecx, edi
call edx
mov esi, eax
test esi, esi
jne 0x41ec17
mov eax, dword [esp + 0x14]
movzx ecx, word [eax]
push ecx
push str.Upgrade_Failed__Port:__d
jmp 0x41ec97
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebx + 8], 0
mov dword [esp + 0x18], eax
jne 0x41ecdd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x18]
cmp eax, 0x7d0
jae 0x41ec84
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x60]
push ecx
call edi
test eax, eax
je 0x41ec7e
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x60]
push ecx
call edi
test eax, eax
jne 0x41ec55
cmp dword [ebx + 8], 0
je 0x41ec2b
cmp dword [ebx + 8], 0
jne 0x41ecdd
mov edx, dword [esp + 0x14]
movzx eax, word [edx]
push eax
push str.Not_a_Right_Port:__d
push 2
call dword [sym.imp.szutils.dll_public:_static_int___cdecl_TCommon::CTinyLog::WriteLog_enum_TCommon::CTinyLog::TLOGLEVEL__wchar_t_const__]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
add ecx, 4
add esp, 0xc
call eax
mov edi, dword [esp + 0x14]
jmp 0x41ecca
movzx ecx, word [edi]
push ecx
push str.Connect_Local_Server_Failed__Port:__d
push 2
call dword [sym.imp.szutils.dll_public:_static_int___cdecl_TCommon::CTinyLog::WriteLog_enum_TCommon::CTinyLog::TLOGLEVEL__wchar_t_const__]
add esp, 0xc
add edi, 2
mov dword [esp + 0x14], edi
cmp edi, 0x644246
jl 0x41ead2
mov byte [esp + 0x3f0], 6
mov edi, dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TString::destructor_void_]
lea ecx, [esp + 0xd4]
call edi
lea ecx, [esp + 0x284]
mov byte [esp + 0x3f0], 5
call edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x3f0], 4
call dword [sym.imp.szutils.dll_public_virtual:_void___thiscall_TCommon::TBuffer::destructor_void_]
lea ecx, [esp + 0x164]
mov byte [esp + 0x3f0], 3
call edi
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x3f0], 1
call edi
lea ecx, [esp + 0x314]
mov dword [esp + 0x3f0], 0xffffffff
call edi
mov eax, esi
mov ecx, dword [esp + 0x3e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3d0]
xor ecx, esp
call fcn.005c5718
mov esp, ebp
pop ebp
ret