Function at 0x411290
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push esi
push edi
push 1
xor ebx, ebx
push ebx
push ebx
push 6
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketA]
or edi, 0xffffffff
cmp eax, edi
mov dword [esi + 0x7c], eax
jne 0x411393
push str.OIOSocketEx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [str.KTLog.txt]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x268], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov byte [esp + 0x264], 1
call esi
push eax
push str.Create_Socket_Failed__d
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x264], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x264], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call esi
push 0x7f
mov esi, eax
lea eax, [esp + 0x4c]
push str.Create_socket_failed
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
mov dword [esp + 0xd4], esi
add esp, 0xc
mov byte [esp + 0xc7], bl
mov ecx, 0x21
lea esi, [esp + 0x48]
lea edi, [esp + 0x150]
rep movsd dword es:[edi], dword [esi]
push 0x447350
lea ecx, [esp + 0x154]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x60]
push ebx
mov ecx, esi
call fcn.004110e0
mov eax, dword [esi + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x411481
push str.OIOSocketEx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [str.KTLog.txt]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x268], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x264], 3
call esi
push eax
push str.Reset_Event_Failed__d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push ebx
push eax
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x264], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10]
mov dword [esp + 0x264], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call esi
push 0x7f
lea ecx, [esp + 0xd0]
push str.Reset_event_failed
push ecx
mov esi, eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov dword [esp + 0x14c], esi
push 0x447350
lea edx, [esp + 0x1d8]
mov byte [esp + 0x14f], bl
mov ecx, 0x21
lea esi, [esp + 0xd0]
lea edi, [esp + 0x1d8]
push edx
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esi + 0x34], ecx
mov dx, word [eax + 4]
mov word [esi + 0x38], dx
lea eax, [esi + 0x80]
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov word [eax], 2
xor eax, eax
mov ax, word [esi + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x34]
push ecx
mov word [esi + 0x82], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x25c]
pop edi
mov dword [esi + 0x84], eax
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4