Function at 0x4010b4
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
jmp 0x409dc0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40e453
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push esi
push edi
call fcn.004010dc
xor ebx, ebx
mov esi, eax
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x1d4], eax
jne 0x409ea8
mov al, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.Unable_to_bind_socket
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Unable_to_bind_socket
lea ecx, [esp + 0x18]
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__::assign_char_const___unsigned_int_]
lea ecx, [esp + 0x10]
mov dword [esp + 0xe4], ebx
push ecx
lea ecx, [esp + 0x70]
call fcn.00401276
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x70], 0xd9
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
lea ecx, [esp + 0x7c]
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__::assign_char_const___unsigned_int_]
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x34]
push edx
call fcn.004010cd
lea eax, [esp + 0x34]
push 0x410c88
push eax
mov dword [esp + 0x3c], 0x4101b4
call sub.MSVCRT.dll__CxxThrowException
push str.localhost
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x39], 1
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x409f97
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.Unable_to_get_local_host_details
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Unable_to_get_local_host_details
lea ecx, [esp + 0x18]
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__::assign_char_const___unsigned_int_]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x6c]
push edx
mov dword [esp + 0xe8], 3
call fcn.00401276
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x74], 0xe4
mov ebx, ecx
lea ecx, [esp + 0x78]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x409f72
mov edi, dword [esp + 0x78]
mov ecx, ebx
mov eax, ecx
mov esi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x38]
call fcn.004010cd
lea edx, [esp + 0x34]
push 0x410c88
push edx
mov dword [esp + 0x3c], 0x4101b4
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esp + 0xec]
xor eax, eax
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x24], 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov dword [esp + 0x24], ebx
mov eax, dword [esi + 0x1d4]
lea edx, [esp + 0x20]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
je 0x40a0dc
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.Unable_to_bind_socket_to_specified_port
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x14]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40a03c
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov edx, ecx
mov esi, str.Unable_to_bind_socket_to_specified_port
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x6c]
push eax
mov dword [esp + 0xe8], 6
call fcn.00401276
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x74], 0xf4
mov ebx, ecx
lea ecx, [esp + 0x78]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40a0b7
mov edi, dword [esp + 0x78]
mov ecx, ebx
mov edx, ecx
mov esi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x34]
push eax
call fcn.004010cd
lea ecx, [esp + 0x34]
push 0x410c88
push ecx
mov dword [esp + 0x3c], 0x4101b4
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x10
mov ecx, dword [esi + 0x1d4]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, ebx
je 0x40a207
mov dl, byte [esp + 0xf]
push ebp
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.Unable_to_read_socket_address
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40a15d
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.Unable_to_read_socket_address
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea ecx, [esp + 0x14]
mov dword [esp + 0xe8], 9
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401276
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xec], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x40], 0xfc
mov ebp, ecx
lea ecx, [esp + 0x44]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40a1d8
mov edi, dword [esp + 0x44]
mov ecx, ebp
mov edx, ecx
mov esi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0xac]
call fcn.004010cd
lea edx, [esp + 0xa8]
push 0x410c88
push edx
mov dword [esp + 0xb0], 0x4101b4
call sub.MSVCRT.dll__CxxThrowException
pop ebp
mov eax, dword [esp + 0x22]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0xdc]
and eax, 0xffff
mov dword [esi + 0x44], eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret 4