Function at 0x429260
Capabilities:
Get local ipv4 addresses
Get socket information
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], 0x4b
mov dword [esp + 4], 0x4290ef
mov dword [esp], 0x428e5d
call sym._updatecontext_f
mov dword [ebp - 0x2c], 0x10
mov eax, dword [0x438c68]
test eax, eax
je 0x429706
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [esi + 0x6c]
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 0x4296e1
movzx eax, word [esi + 0x5a]
mov edi, 2
mov dword [esp], eax
call sym._ir_listen_port_connected
mov dword [esi + 0x90], edi
mov edx, dword [esi]
mov eax, 0xfffffffe
mov dword [esp], edx
mov ecx, edx
mov ebx, edx
and ecx, 0x1f
shr ebx, 5
rol eax, cl
and dword [ebx*4 + 0x438d18], eax
call sym._close
mov dword [esi], 0
mov ebx, dword [0x438d6c]
test ebx, ebx
jle 0x429333
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 0x4290fe
mov dword [esp + 8], 0x21
mov dword [esp + 0x10], eax
mov dword [esp + 4], 1
mov dword [esp], 0
call sym._ioutput
mov ebx, dword [esi + 0x68]
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x429650
mov dword [ebp - 0x30], 4
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov dword [esi + 0x10], eax
mov eax, dword [0x438d6c]
mov dword [esi + 0x14], edx
test eax, eax
jle 0x429381
mov dword [esp + 0xc], 0x42910e
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 [0x438d6c]
test eax, eax
jle 0x4293de
mov dword [esp + 0xc], 0x429119
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 [0x438d6c]
test eax, eax
jle 0x429440
mov dword [esp + 0xc], 0x429120
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 edi, dword [0x438d6c]
test edi, edi
jle 0x429498
mov dword [esp + 0xc], 0x429127
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 0x429636
mov eax, dword [0x438d08]
lea ebx, [ebp - 0x28]
mov edx, dword [0x438d14]
mov dword [esi + 0x48], eax
mov eax, dword [0x438d08]
mov dword [esi + 0x4c], eax
mov eax, dword [0x438d10]
mov dword [esi + 0x54], edx
mov edx, dword [esi + 0x34]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x3c], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x64], 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 0x42961d
mov eax, dword [ebp - 0x24]
xchg ah, al
ror eax, 0x10
xchg ah, al
mov dword [esi + 0x5c], eax
movzx eax, word [ebp - 0x26]
xchg ah, al
mov word [esi + 0x58], 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 0x429604
mov eax, dword [ebp - 0x24]
xchg ah, al
ror eax, 0x10
xchg ah, al
mov dword [esi + 0x60], eax
movzx eax, word [esi + 0x5a]
mov dword [esp + 0x3c], eax
movzx eax, byte [esi + 0x60]
mov dword [esp + 0x38], eax
movzx eax, byte [esi + 0x61]
mov dword [esp + 0x34], eax
movzx eax, byte [esi + 0x62]
mov dword [esp + 0x30], eax
movzx eax, byte [esi + 0x63]
mov dword [esp + 0x2c], eax
movzx eax, word [esi + 0x58]
mov dword [esp + 0x28], eax
movzx eax, byte [esi + 0x5c]
mov dword [esp + 0x24], eax
movzx eax, byte [esi + 0x5d]
mov dword [esp + 0x20], eax
movzx eax, byte [esi + 0x5e]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 0x5f]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xc], 0x429130
mov dword [esp + 8], 0x21
mov dword [esp + 0x10], eax
mov dword [esp + 4], 4
mov dword [esp], 0
call sym._ioutput
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x429182
mov dword [esp], 2
call sym._outerror
jmp 0x42957a
mov dword [esp + 4], 0x429198
mov dword [esp], 2
call sym._outerror
jmp 0x42954f
mov dword [esp + 4], 0x4291af
mov dword [esp], 2
call sym._outerror
jmp 0x4294e1
mov dword [esp + 4], 0x10000
mov eax, dword [ebx]
mov dword [esp], eax
call sym._open
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 0x68]
mov edx, dword [eax + 0x48]
test edx, edx
js 0x429682
mov dword [eax + 0x50], 0
mov dword [eax + 0x54], 0
jmp 0x429341
mov dword [eax + 0x48], 0
call sym.___errno
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x68]
mov eax, dword [eax]
mov dword [esp + 4], 0x4291d0
mov dword [esp], 1
mov dword [esp + 8], eax
call sym._outerror
call sym.___errno
mov eax, dword [eax]
mov dword [esp + 4], 0x429210
nop
lea esi, [esi]
mov dword [esp + 8], eax
mov dword [esp], esi
call sym._t_closeconn
jmp 0x4295fc
mov dword [esp + 4], 0x42923c
mov dword [esp], 2
call sym._outerror
call sym.___errno
mov eax, dword [eax]
mov dword [esp + 4], 0x428f02
jmp 0x4296d0
call sym._gototop
jmp 0x42929c