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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x198]
cmp dword [rax + 0x18], 0
je 0x180043265
mov edx, reloc.WS2_32.dll_listen
mov rcx, rbx
call fcn.180041880
mov r8d, edx
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.180043380
cmp byte [rcx + 0x436], 0
je 0x18004327d
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x180043e10
cmp byte [rcx + 0x44e], 0
je 0x180043320
mov r8, qword [rbx + 0x728]
test r8, r8
jne 0x1800432d8
mov r8, qword [rcx + 0x498]
test r8, r8
jne 0x1800432bb
cmp byte [rcx + 0x435], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x6a8]
lea rdx, str.PRET__s
call fcn.18004c5f0
test eax, eax
je 0x18004330e
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0x441], 0
lea rcx, [rbx + 0x6a8]
je 0x1800432fe
lea rdx, str.PRET_STOR__s
call fcn.18004c5f0
test eax, eax
je 0x18004330e
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.18004c5f0
test eax, eax
jne 0x18004332d
mov edx, Ordinal_30
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180041880
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180043d70
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8f0]
sub rsp, 0x9f0
mov rax, qword [0x1800ff278]
xor rax, rsp
mov qword [rbp + 0x8e0], rax
mov r13, qword [rcx]
mov edi, edx
mov rsi, rcx
mov qword [rsp + 0x38], 0xffffffffffffffff
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.180098a80
mov rbx, qword [r13 + 0x4c8]
xor eax, eax
mov qword [rsp + 0x48], rax
movzx r14d, ax
mov rcx, qword [r13 + 0x4c8]
movzx r12d, ax
mov dword [rsp + 0x40], r14d
mov r15d, eax
mov byte [rsp + 0x30], 1
test rcx, rcx
je 0x18004401f
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], r15b
jne 0x180043ea0
cmp rax, 1
jbe 0x18004401f
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r15b
jne 0x180043eb7
cmp rax, 0x16
jae 0x180043ecd
mov ecx, reloc.WLDAP32.dll_Ordinal_22
jmp 0x180043eda
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], r15b
jne 0x180043ed1
inc rcx
mov edx, 1
call qword [fcn.18009e208]
mov r15, rax
test rax, rax
jne 0x180043ef9
lea eax, [r15 + 0x1b]
jmp 0x180044516
cmp byte [rbx], 0x3a
jne 0x180043f03
mov r14, rbx
jmp 0x180043f2d
mov edx, Ordinal_60
mov rcx, rbx
call fcn.180098d64
mov r14, rax
mov rcx, r15
test rax, rax
je 0x180043fb1
mov r8, rax
mov rdx, rbx
sub r8, rbx
call fcn.18009f7a0
test r14, r14
je 0x180043fce
mov edx, Ordinal_60
mov rcx, r14
call fcn.180098d64
mov rbx, rax
test rax, rax
je 0x180043fce
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.18009f530
mov ecx, eax
call fcn.180033630
movzx r14d, ax
mov edx, Ordinal_46
mov rcx, rbx
mov dword [rsp + 0x40], r14d
call fcn.180098d64
test rax, rax
je 0x180043fab
xor edx, edx
lea rcx, [rax + 1]
lea r8d, [rdx + 0xa]
call fcn.18009f530
mov ecx, eax
call fcn.180033630
movzx r12d, ax
cmp r14w, ax
jbe 0x180043fce
xor eax, eax
mov r12d, eax
mov dword [rsp + 0x40], eax
jmp 0x180043fce
movzx r12d, r14w
jmp 0x180043fce
sub rcx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x180043fc0
cmp byte [r15], 0
je 0x18004401f
mov rcx, qword [rsi + 0x58]
mov rcx, qword [rcx + 0x20]
call fcn.180003d00
mov r8d, dword [rsi + 0xa0]
lea rcx, [rbp + 0xd0]
mov edx, eax
mov dword [rsp + 0x28], 0x401
mov rax, qword [rsi + 0x58]
mov r9, r15
mov qword [rsp + 0x20], rcx
mov ecx, dword [rax + 4]
call fcn.180003d00
test eax, eax
je 0x180044061
sub eax, 1
je 0x180044511
cmp eax, 1
je 0x180044087
mov rcx, qword [rsi + 0x1a8]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180044066
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
call fcn.18001ad30
mov r8, rax
lea rdx, str.getsockname___failed:__s
jmp 0x180044500
mov rbx, r15
jmp 0x18004408e
movzx ecx, word [rsp + 0x50]
lea r8, [rbp + 0xd0]
mov r9d, 0x401
lea rdx, [rsp + 0x54]
call fcn.180034ed0
mov byte [rsp + 0x30], 0
lea rbx, [rbp + 0xd0]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.180020720
cmp eax, 1
jne 0x1800440b3
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.18001fca0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1800444f6
mov r14, qword [rdx]
mov rcx, r13
call fcn.1800208c0
test r14, r14
je 0x1800444f6
mov rcx, r15
call qword [fcn.18009ae1c]
xor ebx, ebx
mov qword [rsp + 0x38], 0xffffffffffffffff
nop dword [rax]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call fcn.180029530
mov r15d, eax
test eax, eax
je 0x18004411d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14, qword [r14 + 0x28]
mov ebx, eax
test r14, r14
jne 0x1800440f0
jmp 0x180044122
test r14, r14
jne 0x180044143
mov edx, ebx
mov rcx, rsi
call fcn.18001ad30
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r13
call fcn.180028550
jmp 0x180044511
movsxd r8, dword [r14 + 0x10]
lea rcx, [rsp + 0x50]
mov rdx, qword [r14 + 0x20]
call fcn.180097130
mov eax, dword [r14 + 0x10]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x40]
movzx ebx, ax
cmp ax, r12w
ja 0x18004421e
nop
cmp word [rsp + 0x50], 2
jne 0x180044186
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1800442a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [rsp + 0x30], 0
je 0x180044205
cmp eax, 0x2741
jne 0x180044205
mov edx, eax
mov rcx, rsi
call fcn.18001ad30
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rcx, r13
call fcn.180028610
mov rcx, qword [rsi + 0x1a8]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x18004423f
movzx ebx, word [rsp + 0x40]
mov byte [rsp + 0x30], al
jmp 0x180044214
cmp eax, 0x2740
je 0x180044211
cmp eax, 0xd
jne 0x180044273
inc bx
cmp bx, r12w
jbe 0x180044170
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, r13
call fcn.180028550
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.180028ce0
jmp 0x180044511
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
call fcn.18001ad30
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, r13
call fcn.180028550
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.180028ce0
jmp 0x180044511
mov edx, eax
mov rcx, rsi
call fcn.18001ad30
mov r9, rax
movzx r8d, bx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, r13
call fcn.180028550
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.180028ce0
jmp 0x180044511
cmp bx, r12w
ja 0x18004421e
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x34], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x18004423f
mov rcx, qword [rsp + 0x38]
lea edx, [rax + 1]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x18004431a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
call fcn.18001ad30
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, r13
call fcn.180028550
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.180028ce0
jmp 0x180044511
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov rcx, r14
call fcn.1800206f0
cmp edi, 2
je 0x180044371
movzx eax, word [rsp + 0x50]
cmp byte [rsi + 0x35a], 0
jne 0x180044343
test edi, edi
je 0x18004436a
cmp ax, 2
jne 0x18004436a
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
test edi, edi
je 0x18004446c
cmp edi, 1
je 0x1800443ae
movzx eax, word [rsp + 0x50]
inc edi
cmp edi, 2
jne 0x180044336
lea rbx, [rsi + 0x6a8]
mov rcx, rsi
mov dword [rbx + 0x9c], edi
call fcn.180041890
mov rax, qword [rsp + 0x38]
mov edx, Ordinal_30
mov rcx, rsi
mov qword [rsi + 0x1b0], rax
mov byte [rsi + 0x353], 1
call fcn.180041880
mov eax, r15d
jmp 0x180044516
lea r10, [rbp + 0x4e0]
mov r9d, Ordinal_46
lea rdx, [rbp - 0x30]
nop
movzx ecx, byte [rdx]
test cl, cl
je 0x1800443dd
cmp cl, 0x2e
movzx eax, cl
cmove eax, r9d
mov byte [r10], al
inc r10
add rdx, 1
jne 0x1800443c0
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.18002a640
lea rbx, [rsi + 0x6a8]
mov rcx, rbx
lea r9, [rbp + 0x4e0]
lea r8, str.PORT
lea rdx, str._s__s
call fcn.18004c5f0
mov r15d, eax
test eax, eax
je 0x180044378
mov ecx, eax
call fcn.18001ae50
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, r13
call fcn.180028550
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.180028ce0
xor edx, edx
mov rcx, rsi
call fcn.180041880
mov eax, r15d
jmp 0x180044516
cmp word [rsp + 0x50], 2
lea rbx, [rsi + 0x6a8]
movzx eax, r8w
lea rdx, str._s__d_s_hu
mov ecx, 0
mov dword [rsp + 0x28], eax
setne cl
lea rax, [rbp - 0x30]
lea r8, str.EPRT
mov qword [rsp + 0x20], rax
lea r9d, [rcx + 1]
mov rcx, rbx
call fcn.18004c5f0
mov r15d, eax
test eax, eax
je 0x180044378
mov ecx, eax
call fcn.18001ae50
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, r13
call fcn.180028550
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.180028ce0
xor edx, edx
mov dword [rbx + 0x9c], 1
mov rcx, rsi
call fcn.180041880
mov eax, r15d
jmp 0x180044516
mov r8, rbx
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, r13
call fcn.180028550
mov rcx, r15
call qword [fcn.18009ae1c]
mov eax, reloc.WLDAP32.dll_Ordinal_30
mov rcx, qword [rbp + 0x8e0]
xor rcx, rsp
call fcn.180077fb0
mov rbx, qword [rsp + 0xa40]
add rsp, 0x9f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret