Function at 0x1005fdb0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0d78
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10112018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x6c], ecx
mov ecx, 2
xor esi, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x2c], vtable.ACE_INET_Addr.0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
cmp ecx, ecx
jne 0x1005fe0e
mov eax, ecx
mov word [ebp - 0x20], ax
push esi
push str.localhost
mov dword [ebp - 4], esi
or ebx, 0xffffffff
push esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], esi
call sym.ACE.dll_public:_void___thiscall_ACE_INET_Addr::constructor_unsigned_short_int__char_const__const__int_
push esi
push bind
push esi
push esi
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call sym.ACE.dll_public:_int___thiscall_ACE_SOCK_Acceptor::open_class_ACE_Addr_const___int__int__int__int_
mov esi, dword [sym.imp.MSVCR100.dll__errno]
cmp eax, ebx
je 0x1005ff2d
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x78], edx
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x2c]
call edx
mov ecx, dword [ebp - 0x68]
mov edi, eax
lea eax, [ebp - 0x78]
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, ebx
jne 0x1005fe89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call esi
mov dword [eax], edi
jmp 0x1005ff2d
mov cx, word [ebp - 0x1e]
movzx edx, word [edi]
mov eax, dword [ebp - 0x78]
rol cx, 8
mov dword [ebp - 0x24], eax
movzx eax, cx
push 0
push str.localhost
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x28], edx
call sym.ACE.dll_public:_void___thiscall_ACE_INET_Addr::constructor_unsigned_short_int__char_const__const__int_
push 0
push 0
push 0
push 0
push sym.ACE.dll_class_ACE_Addr_const_ACE_Addr::sap_any
push 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x79]
mov byte [ebp - 4], 2
call sym.ACE.dll_public:_int___thiscall_ACE_SOCK_Connector::connect_class_ACE_SOCK_Stream___class_ACE_Addr_const___class_ACE_Time_Value_const___class_ACE_Addr_const___int__int__int__int_
cmp eax, 0xffffffff
je 0x1005ff2d
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x68]
push 0
push 0
push ecx
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x1005ff03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call esi
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x1005ff05
mov edi, eax
mov ebx, edi
cmp edi, 0xffffffff
jne 0x1005ff13
call esi
cmp dword [eax], 4
je 0x1005fedf
push 0
push 0
push edi
lea ecx, [ebp - 0x68]
call sym.ACE.dll_protected:_int___thiscall_ACE_SOCK_Acceptor::shared_accept_finish_class_ACE_SOCK_Stream__int__bool_const
cmp eax, 0xffffffff
jne 0x1005ff34
lea ecx, [ebp - 0x74]
call sym.ACE.dll_public:_int___thiscall_ACE_SOCK_SEQPACK_Association::close_void_
mov dword [ebp - 0x70], 0xffffffff
mov eax, dword [ebp - 0x68]
cmp eax, 0xffffffff
je 0x1005ff54
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1005ff54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call esi
mov dword [eax], edi
or eax, 0xffffffff
cmp dword [ebp - 0x70], eax
je 0x1006005f
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x6c]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 0x80]
push edx
push 1
push 6
push eax
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov dword [ebp - 0x80], 1
call edi
cmp eax, 0xffffffff
jne 0x1005ffc2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call esi
mov dword [eax], edi
call esi
cmp dword [eax], 0x273d
je 0x1005ffaa
call esi
cmp dword [eax], 0x273a
jne 0x1005ffb2
call esi
mov dword [eax], 0x81
mov ecx, dword [ebp - 0x6c]
call sym.ACE.dll_public:_int___thiscall_ACE_Pipe::close_void_
or eax, 0xffffffff
jmp 0x1006005f
push 4
lea eax, [ebp + 8]
push eax
push 0x1002
push 0xffff
push ebx
call edi
cmp eax, 0xffffffff
jne 0x1006000c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call esi
mov dword [eax], ebx
call esi
cmp dword [eax], 0x273d
je 0x1005fffa
call esi
cmp dword [eax], 0x273a
jne 0x10060002
call esi
mov dword [eax], 0x81
call esi
cmp dword [eax], 0x81
jne 0x1005ffb2
mov edx, dword [ebp - 0x74]
push 4
lea ecx, [ebp + 8]
push ecx
push 0x1001
push 0xffff
push edx
call edi
cmp eax, 0xffffffff
jne 0x1006005d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call esi
mov dword [eax], edi
call esi
cmp dword [eax], 0x273d
je 0x10060047
call esi
cmp dword [eax], 0x273a
jne 0x1006004f
call esi
mov dword [eax], 0x81
call esi
cmp dword [eax], 0x81
jne 0x1005ffb2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 4