Function at 0x4225a0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov esi, dword [ebp + 8]
mov dword [esp + 8], 0x5d
mov dword [esp + 4], 0x42241f
mov dword [esp], 0x42219d
call sym._updatecontext_f
mov dword [ebp - 0x2c], 0x10
mov edx, dword [0x431420]
test edx, edx
je 0x422a26
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [esi + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sym._accept
mov dword [esi + 4], eax
test eax, eax
js 0x422a00
movzx eax, word [esi + 0x6a]
mov dword [esp], eax
call sym._ir_listen_port_connected
mov edx, dword [esi]
mov eax, 0xfffffffe
mov ecx, edx
and ecx, 0x1f
mov ebx, edx
rol eax, cl
shr ebx, 5
and dword [ebx*4 + 0x4314c0], eax
mov eax, 2
mov dword [esi + 0x9c], eax
mov dword [esp], edx
call sym._close
mov dword [esi], 0x1fe
call sym._highestsock
mov eax, dword [0x43151c]
test eax, eax
jle 0x422678
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 0x42242e
mov dword [esp + 8], 0x21
mov dword [esp + 0x10], eax
mov dword [esp + 4], 1
mov dword [esp], 0
call sym._ioutput
mov dword [esp + 4], 0x10000
mov eax, dword [esi + 0x78]
mov eax, dword [eax]
mov dword [esp], eax
call sym._open
mov dword [esi + 8], eax
test eax, eax
js 0x4229a8
mov dword [ebp - 0x30], 4
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov dword [esi + 0x10], eax
mov eax, dword [0x43151c]
mov dword [esi + 0x14], edx
test eax, eax
jle 0x4226d8
mov dword [esp + 0xc], 0x42243e
mov dword [esp + 8], 0x21
mov dword [esp + 4], 1
mov dword [esp], 1
call sym._ioutput
mov dword [esp + 8], 0x1001
lea edi, [ebp - 0x30]
lea ebx, [ebp - 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0xffff
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._getsockopt
mov eax, dword [0x43151c]
test eax, eax
jle 0x422735
mov dword [esp + 0xc], 0x422449
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 0x21
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov dword [esp], 2
call sym._ioutput
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1001
mov dword [esp + 4], 0xffff
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], 0xffff
mov dword [esp], eax
call sym._setsockopt
mov eax, dword [0x43151c]
test eax, eax
jle 0x422797
mov dword [esp + 0xc], 0x422450
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 0x21
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov dword [esp], 2
call sym._ioutput
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1001
mov dword [esp + 4], 0xffff
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._getsockopt
mov eax, dword [0x43151c]
test eax, eax
jle 0x4227ee
mov dword [esp + 0xc], 0x422457
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 0x21
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._ioutput
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], 8
mov dword [esp], eax
call sym._setsockopt
mov dword [esp + 4], 1
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._set_socket_nonblocking
test eax, eax
js 0x42298f
mov eax, dword [0x4314b4]
lea ebx, [ebp - 0x28]
mov edx, dword [0x4314bc]
mov dword [esi + 0x58], eax
mov eax, dword [0x4314b4]
mov dword [esi + 0x5c], eax
mov eax, dword [0x4314b8]
mov dword [esi + 0x64], edx
mov edx, dword [esi + 0x34]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x78]
mov dword [esi + 0x3c], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._getpeername
test eax, eax
js 0x422976
mov eax, dword [ebp - 0x24]
xchg ah, al
ror eax, 0x10
xchg ah, al
mov dword [esi + 0x6c], eax
movzx eax, word [ebp - 0x26]
xchg ah, al
mov word [esi + 0x68], ax
mov dword [esp + 4], ebx
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._getsockname
test eax, eax
js 0x42295d
mov eax, dword [ebp - 0x24]
xchg ah, al
ror eax, 0x10
xchg ah, al
mov dword [esi + 0x70], eax
movzx eax, word [esi + 0x6a]
mov dword [esp + 0x3c], eax
movzx eax, byte [esi + 0x70]
mov dword [esp + 0x38], eax
movzx eax, byte [esi + 0x71]
mov dword [esp + 0x34], eax
movzx eax, byte [esi + 0x72]
mov dword [esp + 0x30], eax
movzx eax, byte [esi + 0x73]
mov dword [esp + 0x2c], eax
movzx eax, word [esi + 0x68]
mov dword [esp + 0x28], eax
movzx eax, byte [esi + 0x6c]
mov dword [esp + 0x24], eax
movzx eax, byte [esi + 0x6d]
mov dword [esp + 0x20], eax
movzx eax, byte [esi + 0x6e]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 0x6f]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], 0x422470
mov dword [esp + 8], 0x21
mov dword [esp + 0x10], eax
mov dword [esp + 4], 7
mov dword [esp], 0
call sym._ioutput
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x4224c2
mov dword [esp], 2
call sym._outerror
jmp 0x4228d0
mov dword [esp + 4], 0x4224d8
mov dword [esp], 2
call sym._outerror
jmp 0x4228a5
mov dword [esp + 4], 0x4224ef
mov dword [esp], 2
call sym._outerror
jmp 0x422837
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x78]
mov eax, dword [eax]
mov dword [esp + 4], 0x422510
mov dword [esp], 1
mov dword [esp + 8], eax
call sym._outerror
mov dword [esp + 8], 1
mov dword [esp + 4], 0x422550
nop
lea esi, [esi]
mov dword [esp], esi
call sym._t_closeconn
jmp 0x422955
mov dword [esp + 4], 0x42257c
mov dword [esp], 2
call sym._outerror
mov dword [esp + 8], 1
mov dword [esp + 4], 0x422249
jmp 0x4229f0
call sym._gototop
jmp 0x4225dd