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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x1800f6b40]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov rsi, qword [rcx + 0x20]
mov r14, rcx
xor ecx, ecx
mov qword [rsp + 0x48], rsi
xorps xmm0, xmm0
mov qword [rsp + 0x50], 0xffffffffffffffff
mov edi, edx
mov byte [rbp - 0x10], 0
mov rbx, qword [r14 + 0x780]
lea rax, [rsi + 0x5d0]
mov qword [rsp + 0x68], rax
mov r12d, ecx
xor eax, eax
mov qword [rsp + 0x60], rcx
mov qword [rbp + 0x11], rax
movzx r13d, cx
mov dword [rbp + 0x19], eax
mov r15b, 1
mov word [rbp + 0x1d], ax
mov word [rsp + 0x40], cx
mov qword [rsp + 0x58], rcx
movups xmmword [rbp - 0xf], xmm0
movups xmmword [rbp + 1], xmm0
test rbx, rbx
je 0x180079426
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], cl
jne 0x1800791d1
cmp rax, 1
jbe 0x180079426
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], cl
jne 0x1800791f0
cmp rax, 0x16
jae 0x180079205
mov ecx, reloc.WLDAP32.dll_Ordinal_22
jmp 0x180079219
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], r12b
jne 0x180079210
inc rcx
mov edx, 1
call qword [fcn.1800ae410]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x18007923b
mov ebx, reloc.WLDAP32.dll_Ordinal_27
jmp 0x180079483
cmp byte [rbx], 0x3a
jne 0x180079245
mov rsi, rbx
jmp 0x18007926d
mov edx, Ordinal_60
mov rcx, rbx
call fcn.18009fe70
mov rcx, qword [rsp + 0x58]
mov rsi, rax
test rax, rax
je 0x1800792d3
mov r8, rax
mov rdx, rbx
sub r8, rbx
call fcn.1800afea0
mov edx, Ordinal_60
mov rcx, rsi
call fcn.18009fe70
mov rbx, rax
test rax, rax
je 0x1800792ee
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xa
call fcn.1800a8330
mov ecx, eax
call fcn.18005a340
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, rbx
movzx r13d, ax
call fcn.18009fe70
test rax, rax
je 0x1800792cd
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xa
call fcn.1800a8330
mov ecx, eax
call fcn.18005a340
movzx ecx, ax
jmp 0x1800792f2
movzx ecx, r13w
jmp 0x1800792f2
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rbx + rcx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1800792e0
movzx ecx, r12w
xor edx, edx
cmp r13w, cx
mov eax, edx
mov ebx, edx
cmovbe ax, r13w
cmovbe bx, cx
movzx r13d, ax
mov rax, qword [rsp + 0x58]
cmp byte [rax], dl
je 0x180079421
mov rsi, qword [rsp + 0x48]
lea r8, [rbp + 0x170]
mov r9d, 0x401
mov rdx, rax
mov rcx, qword [rsi + 0x58]
mov ecx, dword [rcx]
call fcn.1800029f0
mov ecx, eax
test eax, eax
je 0x180079353
sub ecx, 1
je 0x18007947e
cmp ecx, 1
jne 0x180079358
lea r12, [rbp + 0x170]
jmp 0x180079358
mov r12, qword [rsp + 0x58]
mov word [rsp + 0x40], bx
test r12, r12
je 0x180079426
mov rbx, rsi
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, r14
call fcn.18005ffe0
cmp eax, 1
jne 0x180079396
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.18004beb0
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x180079881
mov rsi, qword [rdx]
mov rcx, r14
call fcn.180060450
test rsi, rsi
je 0x180079881
nop dword [rax + rax]
movzx r9d, byte [rbx + 0x707]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r14
call fcn.1800891b0
test eax, eax
je 0x18007950f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1800793c0
mov ecx, eax
lea rdx, [rbp + 0x70]
mov r8d, 0x100
call fcn.18006ac40
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r14
call fcn.180057d10
mov rsi, qword [rsp + 0x48]
jmp 0x18007947e
mov word [rsp + 0x40], bx
mov rbx, qword [rsp + 0x48]
lea r8, [rsp + 0x44]
mov dword [rsp + 0x44], 0x80
lea rdx, [rsp + 0x70]
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1800794db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18006ac40
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r14
call fcn.180057d10
mov rsi, rbx
mov ebx, reloc.WLDAP32.dll_Ordinal_30
mov rax, qword [r14 + 0x20]
mov byte [rax + 0x6c6], 0
mov r8, qword [rsp + 0x50]
cmp r8, 0xffffffffffffffff
je 0x1800794a4
mov rdx, rsi
mov rcx, r14
call fcn.180089180
mov rcx, qword [rsp + 0x58]
call qword [fcn.1800ad750]
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.18009db10
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x690
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx ecx, word [rsp + 0x70]
lea r8, [rbp + 0x170]
mov r9d, 0x401
lea rdx, [rsp + 0x74]
call fcn.18008dca0
test rax, rax
je 0x18007947b
lea r12, [rbp + 0x170]
xor r15b, r15b
jmp 0x180079369
movsxd r8, dword [rsi + 0x10]
lea rcx, [rsp + 0x70]
mov rdx, qword [rsi + 0x20]
call fcn.1800c87c0
movzx r12d, word [rsp + 0x40]
movzx ebx, r13w
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x44], eax
cmp r13w, r12w
ja 0x1800795fd
nop dword [rax]
cmp word [rsp + 0x70], 2
jne 0x180079556
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x72], ax
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x180079647
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test r15b, r15b
je 0x1800795e4
cmp eax, 0x2741
jne 0x1800795e4
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18006ac40
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s
mov rcx, r14
call fcn.180057e00
mov rax, qword [rsp + 0x48]
lea r8, [rsp + 0x44]
mov dword [rsp + 0x44], 0x80
lea rdx, [rsp + 0x70]
mov rcx, qword [rax + 0x1a8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x180079668
movzx ebx, r13w
xor r15b, r15b
jmp 0x180079540
cmp eax, 0x2740
je 0x1800795f0
cmp eax, 0xd
jne 0x180079616
inc bx
cmp bx, r12w
jbe 0x180079540
lea rdx, str.bind___failed__we_ran_out_of_ports
mov rcx, r14
call fcn.180057d10
mov rsi, qword [rsp + 0x48]
jmp 0x18007947e
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18006ac40
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, r14
call fcn.180057d10
mov rsi, qword [rsp + 0x48]
jmp 0x18007947e
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x44], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18007969b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18006ac40
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r14
call fcn.180057d10
mov rsi, qword [rsp + 0x48]
jmp 0x18007947e
mov rcx, qword [rsp + 0x50]
mov edx, 1
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1800796ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1800793f7
mov r8d, Ordinal_50
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.18005ffb0
mov rsi, qword [rsp + 0x48]
cmp edi, 2
je 0x180079877
nop word [rax + rax]
cmp byte [rsi + 0x2da], 0
jne 0x1800796ed
test edi, edi
je 0x18007971c
cmp word [rsp + 0x70], 2
jne 0x18007971c
movzx ecx, word [rsp + 0x72]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp edi, 1
jne 0x18007970b
movzx r8d, ax
jmp 0x180079717
movzx r8d, ax
test edi, edi
je 0x18007980d
cmp edi, 1
je 0x18007976a
inc edi
cmp edi, 2
jne 0x1800796e0
lea r15, [rsi + 0x5d0]
lea r9, [rsp + 0x50]
mov dword [r15 + 0xe8], edi
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call fcn.180088f70
mov ebx, eax
test eax, eax
jne 0x180079483
mov rax, qword [r14 + 0x20]
mov qword [rsp + 0x50], 0xffffffffffffffff
mov byte [rax + 0x6c6], 0x1c
jmp 0x18007948e
lea r10, [rbp + 0x20]
mov r9d, Ordinal_46
lea rdx, [rbp - 0x10]
movzx ecx, byte [rdx]
test cl, cl
je 0x180079794
cmp cl, 0x2e
mov eax, ecx
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x180079778
movzx r9d, r8w
mov edx, reloc.WS2_32.dll_sendto
movzx eax, r9b
lea r8, str.__d__d
shr r9d, 8
mov rcx, r10
mov dword [rsp + 0x20], eax
mov byte [r10], 0
call fcn.180068eb0
lea rax, [rbp + 0x20]
mov rcx, r14
lea r15, [rsi + 0x5d0]
mov qword [rsp + 0x20], rax
mov rdx, r15
lea r9, str.PORT
lea r8, [0x1800d5c58]
call fcn.180099700
mov ebx, eax
test eax, eax
je 0x18007972a
mov ecx, eax
call fcn.18006ae20
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, r14
call fcn.180057d10
jmp 0x180079483
cmp word [rsp + 0x70], 2
lea rax, [rbp - 0x10]
mov dword [rsp + 0x30], r8d
lea r15, [rsi + 0x5d0]
mov edx, 0
mov qword [rsp + 0x28], rax
setne dl
lea r9, str.EPRT
inc edx
lea r8, str._s__d_s_hu
mov dword [rsp + 0x20], edx
mov rcx, r14
mov rdx, r15
call fcn.180099700
mov ebx, eax
test eax, eax
je 0x18007972a
mov ecx, eax
call fcn.18006ae20
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, r14
call fcn.180057d10
jmp 0x180079483
mov r15, qword [rsp + 0x68]
jmp 0x18007972a
mov r8, r12
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, r14
call fcn.180057d10
mov rsi, qword [rsp + 0x48]
jmp 0x18007947e