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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb08
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0xaf0], rax
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0xb20]
add rax, 0x748
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xb20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
mov al, byte [0x1400f3615]
mov byte [rsp + 0x1e0], al
lea rax, [rsp + 0x1e1]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
lea rax, [rsp + 0x160]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x78], 0
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax + 0x778]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0xb0], 0
xor eax, eax
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x38], ax
mov byte [rsp + 0x34], 1
mov qword [rsp + 0x68], 0
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + rax + 0x778], 0
je 0x140073024
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax + 0x778]
mov qword [rsp + 0x120], rax
mov qword [rsp + 0xb8], 0xffffffffffffffff
inc qword [rsp + 0xb8]
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0xb8]
cmp byte [rax + rcx], 0
jne 0x140072c68
mov rax, qword [rsp + 0xb8]
cmp rax, 1
jbe 0x140073024
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x128], rax
mov qword [rsp + 0xc0], 0xffffffffffffffff
inc qword [rsp + 0xc0]
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0xc0]
cmp byte [rax + rcx], 0
jne 0x140072cb4
mov rax, qword [rsp + 0xc0]
cmp rax, 0x16
jae 0x140072cee
mov qword [rsp + 0x110], reloc.WLDAP32.dll_Ordinal_22
jmp 0x140072d38
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x130], rax
mov qword [rsp + 0xc8], 0xffffffffffffffff
inc qword [rsp + 0xc8]
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0xc8]
cmp byte [rax + rcx], 0
jne 0x140072d0a
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xf8], 0
mov rax, qword [rsp + 0x138]
inc rax
mov edx, 1
mov rcx, rax
call qword [fcn.14009cbfc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140072dac
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400738ab
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
cmp eax, 0x3a
jne 0x140072dd1
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
jmp 0x140072e99
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x80]
call fcn.1400911f8
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140072e23
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x90]
sub rcx, rax
mov rax, rcx
mov r8, rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call fcn.1400a0550
jmp 0x140072e99
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0xf0]
mov al, byte [rax]
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0xd0]
mov cl, byte [rsp + 0x40]
mov byte [rax], cl
mov rax, qword [rsp + 0xf0]
inc rax
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xd0]
inc rax
mov qword [rsp + 0xd0], rax
cmp byte [rsp + 0x40], 0
jne 0x140072e50
cmp qword [rsp + 0x90], 0
je 0x140072f4c
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x90]
call fcn.1400911f8
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
je 0x140072f4c
mov rax, qword [rsp + 0xd8]
inc rax
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.1400a1d64
mov ecx, eax
call fcn.140037514
mov word [rsp + 0x3c], ax
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, qword [rsp + 0xd8]
call fcn.1400911f8
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
je 0x140072f42
mov rax, qword [rsp + 0xf8]
inc rax
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.1400a1d64
mov ecx, eax
call fcn.140037514
mov word [rsp + 0x38], ax
jmp 0x140072f4c
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x3c]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jle 0x140072f6b
xor eax, eax
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x38]
mov word [rsp + 0x3c], ax
mov rax, qword [rsp + 0x68]
movsx eax, byte [rax]
test eax, eax
je 0x14007301b
mov rax, qword [rsp + 0xb20]
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x20]
call fcn.14007ae74
mov rcx, qword [rsp + 0xb20]
mov rcx, qword [rcx + 0x70]
mov dword [rsp + 0x28], 0x401
lea rdx, [rsp + 0x2e0]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x68]
mov rdx, qword [rsp + 0xb20]
mov r8d, dword [rdx + 0xb8]
mov edx, eax
mov ecx, dword [rcx + 4]
call fcn.14007ae94
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
je 0x140072ff6
cmp dword [rsp + 0x88], 1
je 0x140073002
cmp dword [rsp + 0x88], 2
je 0x14007300c
jmp 0x140073019
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
jmp 0x140073019
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400738ab
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x78], rax
jmp 0x140073024
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0x78], 0
jne 0x1400730ee
mov dword [rsp + 0x4c], 0x80
mov eax, 8
imul rax, rax, 0
lea r8, [rsp + 0x4c]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xb20]
mov rcx, qword [rcx + rax + 0x238]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400730a3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, qword [rsp + 0xb20]
call fcn.140052500
mov r8, rax
lea rdx, [0x1400efb18]
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rcx, qword [rsp + 0x68]
call qword [fcn.1400979f4]
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400738ab
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
mov dword [rsp + 0x118], eax
mov rax, qword [rsp + 0x108]
add rax, 4
mov rcx, qword [rsp + 0x60]
movzx ecx, word [rcx]
mov r9d, 0x401
lea r8, [rsp + 0x2e0]
mov rdx, rax
call fcn.1400539d8
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x34], 0
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xb20]
call fcn.140023fc0
mov dword [rsp + 0xe8], eax
cmp dword [rsp + 0xe8], 1
jne 0x140073131
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0xb20]
call fcn.140023604
cmp qword [rsp + 0xb0], 0
je 0x140073163
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
call fcn.140024224
jmp 0x14007316f
mov qword [rsp + 0x100], 0
cmp qword [rsp + 0x100], 0
jne 0x1400731a5
mov r8, qword [rsp + 0x78]
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rcx, qword [rsp + 0x68]
call qword [fcn.1400979f4]
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400738ab
mov rcx, qword [rsp + 0x68]
call qword [fcn.1400979f4]
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x70], rax
jmp 0x1400731e7
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140073224
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xb20]
call fcn.140036180
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140073220
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
jmp 0x1400731d9
jmp 0x140073224
cmp qword [rsp + 0x70], 0
jne 0x14007325b
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xb20]
call fcn.140052500
mov r8, rax
lea rdx, [0x1400efb70]
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400738ab
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rcx + 0x20]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x4c], eax
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jg 0x140073430
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
jne 0x1400732c3
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0x108]
mov word [rcx + 2], ax
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14007341c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x1400733c0
cmp dword [rsp + 0x48], 0x2741
jne 0x1400733c0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xb20]
call fcn.140052500
movzx ecx, word [rsp + 0x30]
mov r9, rax
mov r8d, ecx
lea rdx, str.bind_port_hu__on_non_local_address_failed:__s_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
mov dword [rsp + 0x4c], 0x80
mov eax, 8
imul rax, rax, 0
lea r8, [rsp + 0x4c]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xb20]
mov rcx, qword [rcx + rax + 0x238]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400733ac
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, qword [rsp + 0xb20]
call fcn.140052500
mov r8, rax
lea rdx, [0x1400efbb8]
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb20]
call fcn.1400360b4
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400738ab
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x30], ax
mov byte [rsp + 0x34], 0
jmp 0x14007328d
cmp dword [rsp + 0x48], 0x2740
je 0x14007341a
cmp dword [rsp + 0x48], 0xd
je 0x14007341a
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xb20]
call fcn.140052500
movzx ecx, word [rsp + 0x30]
mov r9, rax
mov r8d, ecx
lea rdx, str.bind_port_hu__failed:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb20]
call fcn.1400360b4
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400738ab
jmp 0x14007341e
jmp 0x140073430
movzx eax, word [rsp + 0x30]
inc ax
mov word [rsp + 0x30], ax
jmp 0x14007328d
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jle 0x14007346b
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb20]
call fcn.1400360b4
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400738ab
mov dword [rsp + 0x4c], 0x80
lea r8, [rsp + 0x4c]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400734d1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, qword [rsp + 0xb20]
call fcn.140052500
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb20]
call fcn.1400360b4
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400738ab
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14007352a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, qword [rsp + 0xb20]
call fcn.140052500
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb20]
call fcn.1400360b4
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400738ab
mov r8d, 0x100
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0x70]
call fcn.1400243bc
jmp 0x140073554
mov eax, dword [rsp + 0xb28]
inc eax
mov dword [rsp + 0xb28], eax
cmp dword [rsp + 0xb28], 2
je 0x14007383c
mov rax, qword [rsp + 0xb20]
movzx eax, byte [rax + 0x3b5]
test eax, eax
jne 0x140073581
cmp dword [rsp + 0xb28], 0
jne 0x140073581
jmp 0x140073544
cmp dword [rsp + 0xb28], 1
jne 0x14007359a
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
je 0x14007359a
jmp 0x140073544
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
mov dword [rsp + 0xec], eax
cmp dword [rsp + 0xec], 2
je 0x1400735b5
jmp 0x1400735ce
mov rax, qword [rsp + 0x108]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x30], ax
jmp 0x1400735d3
jmp 0x140073544
cmp dword [rsp + 0xb28], 0
jne 0x1400736d0
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
jne 0x1400735fb
mov dword [rsp + 0xa8], 1
jmp 0x140073606
mov dword [rsp + 0xa8], 2
movzx eax, word [rsp + 0x30]
movsxd rcx, dword [rsp + 0xb28]
imul rcx, rcx, 5
lea rdx, str.EPRT
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0x148], rdx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8, rcx
lea rdx, str._s__d_s_hu
mov rax, qword [rsp + 0x148]
mov rcx, rax
call fcn.140083d4c
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1400736cb
mov ecx, dword [rsp + 0x44]
call fcn.140051e54
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb20]
call fcn.1400360b4
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0xb0], 1
xor edx, edx
mov rcx, qword [rsp + 0xb20]
call fcn.14006eac0
mov eax, dword [rsp + 0x44]
jmp 0x1400738ab
jmp 0x14007383c
cmp dword [rsp + 0xb28], 1
jne 0x140073837
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x6f0]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0x98], 0
je 0x140073771
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
test eax, eax
je 0x140073771
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
cmp eax, 0x2e
jne 0x140073735
mov rax, qword [rsp + 0xa0]
mov byte [rax], Ordinal_45
jmp 0x140073749
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
mov cl, byte [rcx]
mov byte [rax], cl
mov rax, qword [rsp + 0xa0]
inc rax
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x98]
inc rax
mov qword [rsp + 0x98], rax
jmp 0x1400736fe
mov rax, qword [rsp + 0xa0]
mov byte [rax], 0
movzx eax, word [rsp + 0x30]
and eax, 0xff
movzx ecx, word [rsp + 0x30]
sar ecx, 8
mov dword [rsp + 0x20], eax
mov r9d, ecx
lea r8, str.__d__d
mov edx, reloc.WS2_32.dll_sendto
mov rcx, qword [rsp + 0xa0]
call fcn.14004ef0c
movsxd rax, dword [rsp + 0xb28]
imul rax, rax, 5
lea rcx, str.EPRT
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xe0]
lea r9, [rsp + 0x6f0]
mov r8, rax
lea rdx, [0x1400efc94]
call fcn.140083d4c
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140073835
mov ecx, dword [rsp + 0x44]
call fcn.140051e54
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb20]
call fcn.1400360b4
xor edx, edx
mov rcx, qword [rsp + 0xb20]
call fcn.14006eac0
mov eax, dword [rsp + 0x44]
jmp 0x1400738ab
jmp 0x14007383c
jmp 0x140073544
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0xb28]
mov dword [rax + 0xb0], ecx
mov rcx, qword [rsp + 0xb20]
call fcn.140071ea0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xb20]
mov rdx, qword [rsp + 0x58]
mov qword [rcx + rax + 0x238], rdx
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0xb20]
mov byte [rcx + rax + 0x3ad], 1
mov edx, Ordinal_32
mov rcx, qword [rsp + 0xb20]
call fcn.14006eac0
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xaf0]
xor rcx, rsp
call fcn.14008e520
add rsp, 0xb08
pop rdi
pop rsi
ret