Function at 0x100412460
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, rcx
mov r8d, 0x59
lea rdx, global___FUNCTION__.111
lea rcx, str.src.it_iroffer_transfer.c
call dbg.updatecontext_f
mov dword [rbx + 0x118], 4
mov rax, qword [0x1004632d0]
cmp dword [rax + 0x78b8], 0
je 0x1004124bb
mov r9d, dword [rbx + 0x88]
lea r8, [0x100451d71]
mov edx, 0x21
mov ecx, 1
call dbg.ioutput
mov rsi, qword [rbx + 0x78]
cmp dword [rsi + 0x9c], 0xffffffff
jne 0x100412573
mov edx, 0x10000
mov rcx, qword [rsi]
call sym.open
mov dword [rsi + 0x9c], eax
mov rax, qword [rbx + 0x78]
cmp dword [rax + 0x9c], 0
jns 0x10041253f
call sym.__errno
mov esi, dword [rax]
mov rax, qword [rbx + 0x78]
mov dword [rax + 0x9c], 0xffffffff
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov rdx, qword [rbx + 0x78]
mov r8, qword [rdx]
lea rdx, str.Impossibile_Accedere_al_File_Offerto__s:__s
mov ecx, 1
call dbg.outerror
mov r8d, esi
lea rdx, str.Errore_File__Riporta_il_problema_allAmministratore
mov rcx, rbx
call dbg.t_closeconn
jmp 0x10041278a
mov qword [rax + 0xa8], 0
mov rax, qword [0x1004632d0]
cmp dword [rax + 0x7a18], 0
je 0x100412573
mov rdx, qword [rbx + 0x78]
mov eax, 0xffffffff
cmp qword [rdx + 0x58], rax
jle 0x100412573
mov dword [rbx + 0x11c], 1
mov rax, qword [rbx + 0x38]
mov qword [rbx + 8], rax
mov ecx, dword [rbx + 0x88]
call dbg.ir_setsockopt
mov rax, qword [0x1004632d0]
mov rdx, qword [rax + 0xa9d0]
mov qword [rbx + 0xa0], rdx
mov rdx, qword [rax + 0xa9d0]
mov qword [rbx + 0xa8], rdx
mov rax, qword [rax + 0xa9e0]
mov qword [rbx + 0x60], rax
mov rax, qword [rbx + 0x78]
movss xmm0, dword [rax + 0x50]
movss dword [rbx + 0x70], xmm0
mov rax, qword [rbx + 0x38]
mov qword [rbx + 0x40], rax
cmp dword [rbx + 0x80], 2
mov edx, 0x1c
mov eax, 0x10
cmovne eax, edx
mov dword [rsp + 0x4c], eax
lea rdi, [rbx + 0xb4]
mov ecx, dword [rbx + 0x88]
lea r8, [rsp + 0x4c]
mov rdx, rdi
call sym.getpeername
test eax, eax
jns 0x100412620
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r8, rax
lea rdx, str.Impossibile_recuperare_lIP_Remoto:__s
mov ecx, 2
call dbg.outerror
mov rcx, rbx
call dbg.t_check_ip_access
test eax, eax
jne 0x10041278a
cmp dword [rbx + 0x80], 2
jne 0x100412644
mov eax, dword [rbx + 0xb8]
bswap eax
mov dword [rbx + 0x68], eax
lea rbp, [rbx + 0xd0]
mov ecx, dword [rbx + 0x88]
lea r8, [rsp + 0x4c]
mov rdx, rbp
call sub.cygwin1.dll_getsockname
test eax, eax
jns 0x100412682
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r8, rax
lea rdx, str.Impossibile_recuperare_lIP_Locale:__s
mov ecx, 2
call dbg.outerror
mov dword [rsp + 0x20], 0x88
lea r9, str.src.it_iroffer_transfer.c
lea r8, global___FUNCTION__.111
mov edx, 0
mov ecx, 0x200
call dbg.mymalloc2
mov rsi, rax
mov r8, rdi
mov edx, 0x1ff
mov rcx, rax
call dbg.my_getnameinfo
mov rcx, qword [rbx + 0x90]
call dbg.mydelete2
mov qword [rbx + 0x90], 0
mov r9d, 0x8b
lea r8, str.src.it_iroffer_transfer.c
lea rdx, global___FUNCTION__.111
mov rcx, rsi
call dbg.mystrdup2
mov qword [rbx + 0x90], rax
mov r8, rbp
mov edx, 0x1ff
mov rcx, rsi
call dbg.my_getnameinfo
mov r9d, 0x8d
lea r8, str.src.it_iroffer_transfer.c
lea rdx, global___FUNCTION__.111
mov rcx, rsi
call dbg.mystrdup2
mov qword [rbx + 0x98], rax
mov rcx, rsi
call dbg.mydelete2
mov rax, qword [rbx + 0x98]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x90]
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 4]
imul rax, rax, 0xb60
add rax, qword [0x1004632d0]
mov rax, qword [rax + 0xa90]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 0xf8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbx]
lea r8, str.XDCC___02i:_s_on__s_:_Connessione_stabilita___s_____s_
mov edx, 0x21
mov ecx, 7
call dbg.ioutput
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret