Function at 0x41bc57
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433345
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push edi
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax]
call fcn.0041e7d0
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
add eax, 1
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00408540
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xa0]
mov ecx, dword [edx]
call fcn.0041e7d0
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [ebp - 0x14]
call fcn.004190c0
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0
mov ecx, dword [ebp - 0xa0]
add ecx, 0x4c
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0xa0]
add ecx, 0x5c
call fcn.0041dc60
mov edx, dword [ebp - 0xa0]
mov ecx, dword [edx]
call fcn.0041db30
or eax, 0x90000
mov dword [ebp - 0x60], eax
mov word [ebp - 0x5c], 0
mov word [ebp - 0x5a], 0
mov byte [ebp - 0x58], 0xc0
mov byte [ebp - 0x57], 0
mov byte [ebp - 0x56], 0
mov byte [ebp - 0x55], 0
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
mov byte [ebp - 0x52], 0
mov byte [ebp - 0x51], 0x46
mov dword [ebp - 0x6c], 2
mov dword [ebp - 0x68], 6
mov dword [ebp - 0x50], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x50], 0x3c
lea ecx, [ebp - 0x14]
call fcn.004190c0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x64]
push edx
push 0x108
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.WS2_32.dll_WSALookupServiceBeginA]
test eax, eax
jne 0x41bf7f
mov dword [ebp - 0x70], 0x3c
mov ecx, dword [ebp - 0x70]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.WS2_32.dll_WSALookupServiceNextA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x78], al
mov eax, dword [ebp - 0x78]
and eax, 0xff
test eax, eax
jne 0x41be5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0x271e
jne 0x41be5b
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x70]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
lea eax, [ebp - 0x70]
push eax
push 0
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.WS2_32.dll_WSALookupServiceNextA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x78], al
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.WS2_32.dll_WSALookupServiceEnd]
mov eax, dword [ebp - 0x78]
and eax, 0xff
test eax, eax
je 0x41bf67
mov ecx, dword [ebp - 0x74]
cmp dword [ecx + 0x2c], 0
je 0x41bf67
mov edx, dword [ebp - 0x74]
cmp dword [edx + 0x30], 0
je 0x41bf67
push 0
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [ebp - 0xa0]
mov dword [ecx + 0x6c], eax
mov edx, dword [ebp - 0xa0]
cmp dword [edx + 0x6c], 0xffffffff
je 0x41bf67
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax + 0x6c]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x41bf3e
mov ecx, dword [ebp - 0xa0]
add ecx, 0x34
call fcn.00408500
push 0x21
mov ecx, dword [ebp - 0xa0]
add ecx, 0x34
call fcn.004084e0
push eax
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x41bf20
mov ecx, dword [ebp - 0xa0]
call fcn.0041c00c
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx + 0x6c], 0xffffffff
je 0x41bf3e
push 1
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx + 0x6c], 0xffffffff
je 0x41bf5a
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0xa0]
mov dword [ecx + 0x6c], 0xffffffff
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push 1
mov ecx, dword [ebp - 0xa0]
add ecx, 4
push ecx
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xa0]
cmp dword [edx + 0x2c], 0
je 0x41bfd5
mov eax, dword [ebp - 0xa0]
xor ecx, ecx
mov cl, byte [eax + 0x31]
test ecx, ecx
je 0x41bfd5
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0xa0]
mov ecx, dword [ecx + 0x2c]
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 0x2c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0xa0]
mov byte [eax + 0x31], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00408520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406ad0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret