Function at 0x1004291aa
Capabilities:
Connect socket
Convert ip address from string

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rcx
mov r12, rdx
mov r13, r8
mov rsi, r9
mov rcx, r9
call sym.atoi
mov edx, 0
test eax, eax
je 0x1004294fb
mov rcx, qword [rsp + 0x90]
call sym.atoi
mov edi, eax
mov rcx, qword [0x1004632d0]
add rcx, 0xb5c8
call dbg.irlist_get_head
mov rbx, rax
test rax, rax
je 0x1004294e8
cmp dword [rbx + 0x118], 1
jne 0x1004294d4
cmp edi, dword [rbx]
jne 0x1004294d4
mov rcx, qword [rbx + 0x100]
mov rdx, rbp
call sym.strcasecmp
test eax, eax
jne 0x1004294d4
mov r9d, 0x149
lea r8, str.src.it_dinoex_transfer.c
lea rdx, str.t_find_transfer
mov rcx, r13
call dbg.mystrdup2
mov qword [rbx + 0x90], rax
mov rcx, rsi
call sym.atoi
mov esi, eax
mov r8d, 0xe2
lea rdx, str.t_passive
lea rcx, str.src.it_dinoex_transfer.c
call dbg.updatecontext_f
lea rdi, [rbx + 0xb4]
mov qword [rbx + 0xb4], 0
mov qword [rdi + 8], 0
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x18], 0
mov ecx, dword [rbx + 0x80]
mov r8d, 0
mov edx, 1
call sym.socket
mov dword [rbx + 0x88], eax
test eax, eax
jns 0x1004292e1
call sym.__errno
mov r8d, dword [rax]
lea rdx, str.Errore_Socket
mov rcx, rbx
call dbg.t_closeconn
mov edx, 1
jmp 0x1004294fb
cmp dword [rbx + 0x80], 2
jne 0x100429319
mov word [rbx + 0xb4], 2
mov eax, esi
xchg ah, al
mov word [rbx + 0xb6], ax
mov rcx, qword [rbx + 0x90]
call dbg.atoul
bswap eax
mov dword [rbx + 0xb8], eax
mov esi, 0x10
jmp 0x100429366
mov word [rbx + 0xb4], 0x17
mov eax, esi
xchg ah, al
mov word [rbx + 0xb6], ax
mov rdx, qword [rbx + 0x90]
lea r8, [rbx + 0xbc]
mov ecx, 0x17
call sym.inet_pton
mov esi, 0x1c
test eax, eax
jns 0x100429366
mov r8, qword [rbx + 0x90]
lea rdx, [0x1004570ec]
mov ecx, 1
call dbg.outerror
mov rcx, rbx
call dbg.t_check_ip_access
mov edx, 1
test eax, eax
jne 0x1004294fb
mov edx, dword [rbx + 0x88]
mov ecx, dword [rbx + 0x80]
call dbg.bind_irc_vhost
test eax, eax
je 0x1004293b1
call sym.__errno
mov r8d, dword [rax]
lea rdx, str.Impossibile_impegnare_il_Virtual_Host__Mi_Dispiace
mov rcx, rbx
call dbg.t_closeconn
mov edx, 1
jmp 0x1004294fb
mov ecx, dword [rbx + 0x88]
mov edx, 1
call dbg.set_socket_nonblocking
test eax, eax
jns 0x1004293d6
lea rdx, [0x100457250]
mov ecx, 2
call dbg.outerror
mov rax, qword [0x1004632d0]
cmp dword [rax + 0x78b8], 0
je 0x10042945e
mov dword [rsp + 0x20], 0x107
lea r9, str.src.it_dinoex_transfer.c
lea r8, str.t_passive
mov edx, 0
mov ecx, 0x200
call dbg.mymalloc2
mov rbp, rax
mov r8, rdi
mov edx, 0x1ff
mov rcx, rax
call dbg.my_getnameinfo
mov r9, qword [rbx + 0xf8]
mov qword [rsp + 0x28], rbp
mov rax, qword [0x1004632e0]
mov rax, qword [rax]
mov rax, qword [rax + 0xa48]
mov qword [rsp + 0x20], rax
lea r8, str.DCC_SEND_Passivo_inviato_a__s_su__s__in_connessione_a__s
mov edx, 0x23
mov ecx, 7
call dbg.ioutput
mov rcx, rbp
call dbg.mydelete2
mov ecx, 5
call sym.alarm
mov ecx, dword [rbx + 0x88]
mov r8d, esi
mov rdx, rdi
call sym.connect
test eax, eax
jns 0x1004294b9
call sym.__errno
cmp dword [rax], 0x77
je 0x1004294b9
call sym.__errno
cmp dword [rax], 0xb
je 0x1004294b9
call sym.__errno
mov r8d, dword [rax]
lea rdx, str.Impossibile_Connettersi
mov rcx, rbx
call dbg.t_closeconn
mov ecx, 0
call sym.alarm
mov edx, 1
jmp 0x1004294fb
mov ecx, 0
call sym.alarm
mov dword [rbx + 0x118], 3
mov edx, 1
jmp 0x1004294fb
mov rcx, rbx
call dbg.irlist_get_next
mov rbx, rax
test rax, rax
jne 0x100429205
mov r8, rsi
mov rdx, r12
mov rcx, rbp
call dbg.t_find_debug
mov edx, 1
mov eax, edx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret