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

Disassembly:
sub esp, 0x658
mov eax, dword [0x470400]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
push ebp
mov ebp, dword [esp + 0x664]
push esi
mov esi, dword [esp + 0x66c]
push edi
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
add eax, 0x3f0
push 0x2e
mov dword [esp + 0x30], eax
lea eax, [esp + 0xbd]
push 0
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0xc4], 0
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 0x504]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x28], 0
test ebx, ebx
je 0x43f24c
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f078
sub ecx, edx
cmp ecx, 1
jbe 0x43f24c
mov al, byte [ebx]
cmp al, 0x5b
jne 0x43f0b6
lea eax, [ebx + 1]
push 0x5d
push eax
mov dword [esp + 0x1c], eax
call sub.VCRUNTIME140.dll_strchr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x43f0f4
mov eax, dword [esp + 0x14]
mov edi, ebx
sub edi, eax
mov dword [esp + 0x28], eax
jmp 0x43f0fa
cmp al, 0x3a
je 0x43f0fa
push 0x3a
push ebx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ebx
test eax, eax
je 0x43f155
mov edi, eax
lea eax, [esp + 0x40]
push eax
push ebx
push 0x17
sub edi, ebx
call fcn.00432760
add esp, 0xc
lea ebx, [eax - 1]
neg ebx
sbb ebx, ebx
and ebx, dword [esp + 0x14]
xor edx, edx
test ebx, ebx
je 0x43f16f
push 0x3a
push ebx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
xor ebx, ebx
xor edx, edx
test eax, eax
je 0x43f171
push 0xa
push edx
inc eax
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.00411df0
push 0x2d
push dword [esp + 0x28]
movzx ebx, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x43f151
push 0xa
inc eax
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.00411df0
add esp, 0x10
movzx edx, ax
jmp 0x43f171
mov edx, ebx
jmp 0x43f171
mov edi, ebx
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x43f160
sub edi, ecx
xor ebx, ebx
xor edx, edx
jmp 0x43f171
xor ebx, ebx
xor ecx, ecx
movzx eax, dx
cmp bx, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
cmp bx, dx
mov dword [esp + 0x18], eax
movzx eax, bx
cmovbe ecx, eax
movzx ebx, cx
test edi, edi
je 0x43f23b
cmp edi, 0x32
jae 0x43f6dd
push edi
push dword [esp + 0x2c]
lea eax, [esp + 0xf0]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + edi + 0xe8], 0
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x260]
push 0x401
push eax
lea eax, [esp + 0xf0]
push eax
mov eax, dword [edi + 0x24]
push dword [edi + 0x4c8]
add eax, 0x10
push eax
call fcn.00458e10
add esp, 4
push eax
mov eax, dword [edi + 0x24]
push dword [eax]
call fcn.00419750
add esp, 0x18
sub eax, 0
je 0x43f217
sub eax, 1
je 0x43f6dd
sub eax, 1
jne 0x43f220
lea edi, [esp + 0x260]
jmp 0x43f222
lea edi, [esp + 0xe8]
jmp 0x43f222
xor edi, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
movzx ebx, ax
mov dword [esp + 0x18], ebx
test edi, edi
jne 0x43f2eb
jmp 0x43f24c
mov eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movzx eax, ax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43f29f
push pe_nt_image_headers32
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040e440
push eax
push str.getsockname___failed:__s
push ebp
call fcn.0041d7a0
add esp, 0x18
jmp 0x43f6dd
mov ax, word [esp + 0x38]
cmp ax, 0x17
je 0x43f2b3
lea ecx, [esp + 0x3c]
movzx eax, ax
jmp 0x43f2bc
lea ecx, [esp + 0x40]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x264]
movzx eax, ax
push edx
push ecx
push eax
call fcn.0044e630
add esp, 0x10
test eax, eax
je 0x43f6dd
xor al, al
lea edi, [esp + 0x260]
mov byte [esp + 0x13], al
lea eax, [esp + 0x30]
push eax
push 0
push 0
push edi
push ebp
call fcn.004251e0
add esp, 0x14
cmp eax, 1
jne 0x43f311
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.00415e00
add esp, 8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x43f6ce
mov ebx, dword [eax]
push eax
push ebp
call fcn.00425740
add esp, 8
test ebx, ebx
je 0x43f6ce
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 0x4d2]
push eax
push 0
push ebx
push ebp
call fcn.0044d790
add esp, 0x14
test eax, eax
je 0x43f388
call edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x43f337
push pe_nt_image_headers32
lea ecx, [esp + 0x164]
push ecx
push eax
call fcn.0040e440
push eax
push str.socket_failure:__s
push ebp
call fcn.0041d7a0
add esp, 0x18
jmp 0x43f6dd
push dword [ebx + 0x10]
lea eax, [esp + 0x3c]
push dword [ebx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
movzx edi, ax
cmp ax, word [esp + 0x18]
ja 0x43f6be
mov eax, dword [sym.imp.WS2_32.dll_htons]
push edi
call eax
push dword [esp + 0x1c]
movzx eax, ax
mov word [esp + 0x3e], ax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x43f4a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x43f45a
cmp eax, 0x2741
jne 0x43f45a
push pe_nt_image_headers32
lea eax, [esp + 0x164]
push eax
push 0x2741
call fcn.0040e440
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push ebp
call fcn.0041d870
add esp, 0x1c
mov dword [esp + 0x1c], 0x80
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43f272
mov eax, dword [esp + 0x14]
movzx edi, ax
xor al, al
mov byte [esp + 0x13], al
jmp 0x43f3b4
cmp eax, 0x2740
je 0x43f466
cmp eax, 0xd
jne 0x43f475
inc edi
mov byte [esp + 0x13], cl
movzx eax, di
mov edi, eax
jmp 0x43f3a9
push pe_nt_image_headers32
lea ecx, [esp + 0x164]
push ecx
push eax
call fcn.0040e440
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push ebp
call fcn.0041d7a0
add esp, 0x1c
jmp 0x43f6dd
cmp di, word [esp + 0x18]
ja 0x43f6be
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43f272
push 1
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x43f50c
push pe_nt_image_headers32
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0040e440
push eax
push str.socket_failure:__s
push ebp
call fcn.0041d7a0
add esp, 0x18
jmp 0x43f6dd
push 0x2f
lea eax, [esp + 0xbc]
push eax
push ebx
call fcn.00425190
mov ebx, dword [esp + 0x30]
add esp, 0xc
cmp byte [ebx + 0x251], 0
jne 0x43f53c
cmp byte [ebx + 0x24c], 0
je 0x43f53c
mov byte [ebx + 0x251], 1
lea eax, [esp + 0x20]
push eax
push 1
push ebx
push ebp
call fcn.0044d540
mov edi, eax
add esp, 0x10
mov dword [esp + 0x28], edi
test edi, edi
jne 0x43f6e2
mov dword [esp + 0x20], 0xffffffff
cmp esi, 2
je 0x43f5c1
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x38]
cmp byte [ebx + 0x251], 0
jne 0x43f580
test esi, esi
je 0x43f5b7
cmp esi, 1
jne 0x43f58b
cmp cx, 2
jne 0x43f5b7
movzx eax, cx
sub eax, 2
je 0x43f598
sub eax, 0x15
jne 0x43f5b7
push dword [esp + 0x3a]
call edi
movzx ebx, ax
test esi, esi
je 0x43f66c
cmp esi, 1
je 0x43f5e2
mov cx, word [esp + 0x38]
mov ebx, dword [esp + 0x24]
inc esi
cmp esi, 2
jne 0x43f573
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0xa0], esi
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x49e], 0x1c
test edi, edi
je 0x43f6ec
jmp 0x43f6e2
lea edx, [esp + 0x11c]
mov ebp, 0x2c
lea edi, [esp + 0xb8]
mov cl, byte [edi]
test cl, cl
je 0x43f60c
cmp cl, 0x2e
movzx eax, cl
cmove eax, ebp
mov byte [edx], al
inc edx
add edi, 1
jne 0x43f5f5
movzx ecx, bx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.00422720
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x130]
mov ebp, dword [esp + 0x48]
push eax
push str.PORT
push 0x465d0c
push ebx
push ebp
call fcn.00457870
mov edi, eax
add esp, 0x28
test edi, edi
je 0x43f5c5
push edi
call fcn.0040e5b0
push eax
push str.Failure_sending_PORT_command:__s
push ebp
call fcn.0041d7a0
add esp, 0x10
jmp 0x43f6e2
movzx eax, bx
mov ebx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0xbc]
push eax
xor eax, eax
cmp word [esp + 0x40], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
push ebp
call fcn.00457870
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x43f5c5
push edi
call fcn.0040e5b0
push eax
push str.Failure_sending_EPRT_command:__s
push ebp
call fcn.0041d7a0
add esp, 0x10
jmp 0x43f6e2
push str.bind___failed__we_ran_out_of_ports
push ebp
call fcn.0041d7a0
add esp, 8
jmp 0x43f6dd
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebp
call fcn.0041d7a0
add esp, 0xc
mov edi, 0x1e
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x49e], 0
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x43f703
push eax
push dword [esp + 0x28]
push ebp
call fcn.0044d760
add esp, 0xc
mov ecx, dword [esp + 0x664]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045b626
add esp, 0x658
ret