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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb30
mov rax, qword [0x1401990d8]
xor rax, rsp
mov qword [rsp + 0xb20], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0xb40]
add rax, 0x798
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xb40]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
movzx eax, byte [0x1401aa271]
mov byte [rsp + 0x210], al
lea rax, [rsp + 0x211]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
lea rax, [rsp + 0x110]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x78], 0
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax + 0xbc8]
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 + 0xbc8], 0
je 0x140121dd2
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 0xbc8]
call fcn.140080560
cmp rax, 1
jbe 0x140121dd2
mov rcx, qword [rsp + 0x80]
call fcn.140080560
cmp rax, 0x16
jae 0x140121b38
mov qword [rsp + 0xe8], reloc.WLDAP32.dll_Ordinal_22
jmp 0x140121b4d
mov rcx, qword [rsp + 0x80]
call fcn.140080560
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0xf8]
inc rax
mov edx, 1
mov rcx, rax
call qword [fcn.14007d634]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140121bc1
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14012268c
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
cmp eax, 0x3a
jne 0x140121be3
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
jmp 0x140121c47
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x80]
call fcn.140054e20
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140121c35
mov rax, qword [rsp + 0x100]
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.140098250
jmp 0x140121c47
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call fcn.1400806c0
cmp qword [rsp + 0x90], 0
je 0x140121cfa
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x90]
call fcn.140054e20
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x140121cfa
mov rax, qword [rsp + 0xb8]
inc rax
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.140085ecc
mov ecx, eax
call fcn.1400d3990
mov word [rsp + 0x3c], ax
mov edx, reloc.WLDAP32.dll_Ordinal_45
mov rcx, qword [rsp + 0xb8]
call fcn.140054e20
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x140121cf0
mov rax, qword [rsp + 0xd0]
inc rax
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.140085ecc
mov ecx, eax
call fcn.1400d3990
mov word [rsp + 0x38], ax
jmp 0x140121cfa
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x3c]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jle 0x140121d19
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 0x140121dc9
mov rax, qword [rsp + 0xb40]
mov rax, qword [rax + 0x70]
mov rcx, qword [rax + 0x20]
call fcn.140103540
mov rcx, qword [rsp + 0xb40]
mov rcx, qword [rcx + 0x70]
mov dword [rsp + 0x28], 0x401
lea rdx, [rsp + 0x310]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x68]
mov rdx, qword [rsp + 0xb40]
mov r8d, dword [rdx + 0xb8]
mov edx, eax
mov ecx, dword [rcx + 4]
call fcn.140103520
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
je 0x140121da4
cmp dword [rsp + 0x88], 1
je 0x140121db0
cmp dword [rsp + 0x88], 2
je 0x140121dba
jmp 0x140121dc7
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
jmp 0x140121dc7
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012268c
lea rax, [rsp + 0x310]
mov qword [rsp + 0x78], rax
jmp 0x140121dd2
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0x78], 0
jne 0x140121ea2
mov dword [rsp + 0x48], reloc.OLEAUT32.dll_VarMonthName
mov eax, 8
imul rax, rax, 0
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xb40]
mov rcx, qword [rcx + rax + 0x240]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140121e57
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x190]
mov ecx, eax
call fcn.1401031b0
mov r8, rax
lea rdx, str.getsockname___failed:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov rcx, qword [rsp + 0x68]
call qword [fcn.14007b234]
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012268c
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
mov dword [rsp + 0xf0], eax
mov rax, qword [rsp + 0xe0]
add rax, 4
mov rcx, qword [rsp + 0x60]
movzx ecx, word [rcx]
mov r9d, 0x401
lea r8, [rsp + 0x310]
mov rdx, rax
call fcn.1401036a0
lea rax, [rsp + 0x310]
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 + 0xb40]
call fcn.1400d8420
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 1
jne 0x140121ee5
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0xb40]
call fcn.1400ea010
cmp qword [rsp + 0xb0], 0
je 0x140121f17
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
call fcn.1400d8800
jmp 0x140121f23
mov qword [rsp + 0xd8], 0
cmp qword [rsp + 0xd8], 0
jne 0x140121f59
mov r8, qword [rsp + 0x78]
lea rdx, str.failed_to_resolve_the_address_provided_to_PORT:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov rcx, qword [rsp + 0x68]
call qword [fcn.14007b234]
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012268c
mov rcx, qword [rsp + 0x68]
call qword [fcn.14007b234]
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x58], 0xffffffffffffffff
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x70], rax
jmp 0x140121f9b
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140121fd8
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xb40]
call fcn.1400d3d50
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140121fd4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x44], eax
jmp 0x140121f8d
jmp 0x140121fd8
cmp qword [rsp + 0x70], 0
jne 0x140122015
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x190]
mov ecx, dword [rsp + 0x44]
call fcn.1401031b0
mov r8, rax
lea rdx, str.socket_failure:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012268c
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x10]
mov r8, rax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.1400530f0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x48], 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 0x1401221ff
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
jne 0x140122080
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsp + 0xe0]
mov word [rcx + 2], ax
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1401221eb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x44], eax
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x140122189
cmp dword [rsp + 0x44], 0x2741
jne 0x140122189
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x190]
mov ecx, dword [rsp + 0x44]
call fcn.1401031b0
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.1400d2f70
mov dword [rsp + 0x48], reloc.OLEAUT32.dll_VarMonthName
mov eax, 8
imul rax, rax, 0
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xb40]
mov rcx, qword [rcx + rax + 0x240]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140122175
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x190]
mov ecx, eax
call fcn.1401031b0
mov r8, rax
lea rdx, [0x1401a2d08]
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400d3f30
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012268c
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x30], ax
mov byte [rsp + 0x34], 0
jmp 0x14012204a
cmp dword [rsp + 0x44], 0x2740
je 0x1401221e9
cmp dword [rsp + 0x44], 0xd
je 0x1401221e9
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x190]
mov ecx, dword [rsp + 0x44]
call fcn.1401031b0
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.1400d3540
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400d3f30
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012268c
jmp 0x1401221ed
jmp 0x1401221ff
movzx eax, word [rsp + 0x30]
inc ax
mov word [rsp + 0x30], ax
jmp 0x14012204a
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jle 0x14012223a
lea rdx, str.bind___failed__we_ran_out_of_ports_
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400d3f30
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012268c
mov dword [rsp + 0x48], reloc.OLEAUT32.dll_VarMonthName
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401222a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x190]
mov ecx, eax
call fcn.1401031b0
mov r8, rax
lea rdx, [0x1401a2ca0]
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400d3f30
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012268c
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x140122305
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, reloc.OLEAUT32.dll_VarMonthName
lea rdx, [rsp + 0x190]
mov ecx, eax
call fcn.1401031b0
mov r8, rax
lea rdx, [0x1401a2c88]
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400d3f30
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012268c
mov r8d, 0x100
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x70]
call fcn.1400d83b0
jmp 0x14012232f
mov eax, dword [rsp + 0xb48]
inc eax
mov dword [rsp + 0xb48], eax
cmp dword [rsp + 0xb48], 2
je 0x14012261d
mov rax, qword [rsp + 0xb40]
mov eax, dword [rax + 0x3c4]
shr eax, 0x12
and eax, 1
test eax, eax
jne 0x140122361
cmp dword [rsp + 0xb48], 0
jne 0x140122361
jmp 0x14012231f
cmp dword [rsp + 0xb48], 1
jne 0x14012237a
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
je 0x14012237a
jmp 0x14012231f
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
mov dword [rsp + 0xcc], eax
cmp dword [rsp + 0xcc], 2
je 0x140122395
jmp 0x1401223ae
mov rax, qword [rsp + 0xe0]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x30], ax
jmp 0x1401223b3
jmp 0x14012231f
cmp dword [rsp + 0xb48], 0
jne 0x1401224b0
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 2
jne 0x1401223db
mov dword [rsp + 0xa8], 1
jmp 0x1401223e6
mov dword [rsp + 0xa8], 2
movzx eax, word [rsp + 0x30]
movsxd rcx, dword [rsp + 0xb48]
imul rcx, rcx, 5
lea rdx, str.EPRT
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0xc0]
mov qword [rsp + 0x108], rdx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x210]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8, rcx
lea rdx, str._s__d_s_hu
mov rax, qword [rsp + 0x108]
mov rcx, rax
call fcn.14013a3e0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1401224ab
mov ecx, dword [rsp + 0x40]
call fcn.140102c20
mov r8, rax
lea rdx, str.Failure_sending_EPRT_command:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400d3f30
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xb0], 1
xor edx, edx
mov rcx, qword [rsp + 0xb40]
call fcn.140122b50
mov eax, dword [rsp + 0x40]
jmp 0x14012268c
jmp 0x14012261d
cmp dword [rsp + 0xb48], 1
jne 0x140122618
lea rax, [rsp + 0x210]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x720]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0x98], 0
je 0x140122552
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
test eax, eax
je 0x140122552
mov rax, qword [rsp + 0x98]
movsx eax, byte [rax]
cmp eax, 0x2e
jne 0x140122515
mov rax, qword [rsp + 0xa0]
mov byte [rax], Ordinal_45
jmp 0x14012252a
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
movzx ecx, 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 0x1401224de
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.1400ee0d0
movsxd rax, dword [rsp + 0xb48]
imul rax, rax, 5
lea rcx, str.EPRT
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc0]
lea r9, [rsp + 0x720]
mov r8, rax
lea rdx, [0x1401a2c44]
call fcn.14013a3e0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140122616
mov ecx, dword [rsp + 0x40]
call fcn.140102c20
mov r8, rax
lea rdx, str.Failure_sending_PORT_command:__s
mov rcx, qword [rsp + 0x50]
call fcn.1400d3540
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb40]
call fcn.1400d3f30
xor edx, edx
mov rcx, qword [rsp + 0xb40]
call fcn.140122b50
mov eax, dword [rsp + 0x40]
jmp 0x14012268c
jmp 0x14012261d
jmp 0x14012231f
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0xb48]
mov dword [rax + 0xb0], ecx
mov rcx, qword [rsp + 0xb40]
call fcn.140123830
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xb40]
mov rdx, qword [rsp + 0x58]
mov qword [rcx + rax + 0x240], rdx
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0xb40]
mov byte [rcx + rax + 0x3c2], 1
mov edx, Ordinal_32
mov rcx, qword [rsp + 0xb40]
call fcn.140122b50
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xb20]
xor rcx, rsp
call fcn.140051d60
add rsp, 0xb30
pop rdi
ret