Function at 0x4923d0
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0xa0
push esi
push edi
mov esi, eax
call fcn.00491b30
mov edi, dword [esi + 0x34]
neg edi
sbb edi, edi
push 6
and edi, 0x15
push 1
add edi, 2
push edi
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x100], eax
je 0x4925f2
push 4
lea ecx, [esp + 0xc]
push ecx
push 1
push 0xffff
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [0x58b338]
mov eax, dword [edx + 0x10]
mov ecx, dword [esi + 0x100]
push 0x28
push 0x402
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
xor eax, eax
cmp edi, 0x17
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jne 0x4924a4
mov edx, dword [0x57acfc]
mov ecx, dword [0x57ad04]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [0x57ad00]
mov dword [esp + 0x18], eax
push 0x1c
lea eax, [esp + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [0x57ad08]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x100]
push eax
xor edi, edi
mov word [esp + 0x14], 0x17
mov dword [esp + 0x28], edx
push ecx
jmp 0x4924bf
mov eax, dword [esi + 0x100]
push 0x10
lea edx, [esp + 0x10]
xor edi, edi
push edx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], edi
push eax
mov word [esp + 0x1a], di
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4925ce
mov ecx, dword [esi + 0x100]
push accept
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4925aa
mov ecx, dword [esi + 0x100]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x14], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x492586
mov ax, word [esp + 0x28]
cmp ax, 0x17
je 0x492523
cmp ax, 2
jne 0x492563
movzx eax, word [esp + 0x2a]
cmp eax, edi
je 0x492563
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
push str.229_Entering_Extended_Passive_Mode___d__r_n
mov eax, esi
call fcn.00491580
add esp, 8
pop edi
mov dword [esi + 0xf8], 2
mov dword [esi + 0xfc], 1
pop esi
add esp, 0xa0
ret
call fcn.00491b30
movsx eax, word [esp + 0x28]
push eax
push str.500_Failed_to_enter_passive_mode__invalid_family__d_r_n
mov eax, esi
call fcn.00491580
add esp, 8
pop edi
pop esi
add esp, 0xa0
ret
call fcn.00491b30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__getsockname_failed__d_r_n
mov eax, esi
call fcn.00491580
add esp, 8
pop edi
pop esi
add esp, 0xa0
ret
call fcn.00491b30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_listen__d_r_n
mov eax, esi
call fcn.00491580
add esp, 8
pop edi
pop esi
add esp, 0xa0
ret
call fcn.00491b30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__bind_failed__d_r_n
mov eax, esi
call fcn.00491580
add esp, 8
pop edi
pop esi
add esp, 0xa0
ret
call fcn.00491b30
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.500_Failed_to_enter_passive_mode__socket_failed__d_r_n
mov eax, esi
call fcn.00491580
add esp, 8
pop edi
pop esi
add esp, 0xa0
ret