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

Disassembly:
sub esp, 0x6cc
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x6c4], eax
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x30], edx
push edi
push 0x1e
pop ebp
mov eax, dword [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x18], eax
add eax, 0x278
mov dword [esp + 0x38], eax
or eax, 0xffffffff
push 0x2e
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x155]
push ebx
push eax
mov byte [esp + 0x15c], bl
call fcn.0051c010
mov edi, dword [esi + 0x514]
add esp, 0xc
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x17], 1
mov dword [esp + 0x24], ebx
test edi, edi
je 0x4a68ed
push edi
call fcn.00520660
pop ecx
cmp eax, 1
jbe 0x4a68ed
push edi
call fcn.00520660
pop ecx
push 0x41
pop ecx
cmp eax, ecx
jb 0x4a67c1
push edi
call fcn.00520660
pop ecx
mov ecx, eax
lea eax, [ecx + 1]
push eax
push 1
call dword [0x5c9b3c]
mov dword [esp + 0x2c], eax
pop ecx
pop ecx
test eax, eax
jne 0x4a67df
push 0x1b
pop ebp
jmp 0x4a6d9a
mov al, byte [edi]
cmp al, 0x5b
jne 0x4a680c
push 0x5d
push edi
call fcn.0051c170
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4a67fe
lea ecx, [edi + 1]
sub eax, ecx
push eax
push ecx
jmp 0x4a683a
xor edi, edi
xor edx, edx
test ebx, ebx
je 0x4a68a1
jmp 0x4a6846
cmp al, 0x3a
jne 0x4a6814
mov ebx, edi
jmp 0x4a6846
push 0x3a
push edi
call fcn.0051c170
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4a6891
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.0048ddc0
cmp eax, 1
je 0x4a6891
mov eax, ebx
sub eax, edi
push eax
push edi
push dword [esp + 0x2c]
call fcn.0052d420
add esp, 0xc
push 0x3a
push ebx
call fcn.0051c170
mov ebx, eax
xor edi, edi
pop ecx
xor edx, edx
pop ecx
test ebx, ebx
je 0x4a68a1
push 0xa
push edx
lea eax, [ebx + 1]
push eax
call fcn.0052d289
add esp, 0xc
movzx edi, ax
push 0x2d
push ebx
call fcn.0051c170
pop ecx
pop ecx
test eax, eax
je 0x4a688d
push 0xa
inc eax
push 0
push eax
call fcn.0052d289
add esp, 0xc
movzx edx, ax
jmp 0x4a68a1
mov edx, edi
jmp 0x4a68a1
push edi
push dword [esp + 0x28]
call fcn.00528060
pop ecx
xor edi, edi
xor edx, edx
pop ecx
xor ecx, ecx
movzx eax, dx
cmp di, dx
cmovbe ecx, eax
movzx eax, di
movzx ebx, cx
xor ecx, ecx
cmp di, dx
mov dword [esp + 0x28], ebx
cmovbe ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x24]
cmp byte [ecx], 0
je 0x4a68e2
mov edi, eax
mov ebx, ecx
mov eax, dword [esp + 0x28]
movzx eax, ax
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], eax
jmp 0x4a6983
mov dword [esp + 0x30], eax
movzx eax, bx
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x24], 0x80
push eax
push dword [edi + 0x140]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a693d
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x1cc]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
push str.getsockname___failed:__s
push esi
call fcn.0048c1c7
add esp, 0xc
jmp 0x4a6d9e
mov cx, word [esp + 0x40]
push 0x17
pop eax
cmp cx, ax
je 0x4a6953
lea edx, [esp + 0x44]
movzx eax, cx
jmp 0x4a6957
lea edx, [esp + 0x48]
lea ecx, [esp + 0x2c8]
push 0x401
push ecx
movzx ecx, ax
call fcn.0048e1bf
pop ecx
pop ecx
test eax, eax
je 0x4a6d9e
xor al, al
lea ebx, [esp + 0x2c8]
mov byte [esp + 0x17], al
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
push 0
push 0
mov ecx, esi
call fcn.0048f2ec
add esp, 0xc
cmp eax, 1
jne 0x4a69aa
push eax
lea edx, [esp + 0x40]
mov ecx, esi
call fcn.0048d271
pop ecx
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x4a6d8b
mov edi, dword [edx]
mov ecx, esi
call fcn.0048f618
test edi, edi
je 0x4a6d8b
mov ebx, dword [esp + 0x18]
movzx eax, byte [ebx + 0x34b]
lea ecx, [esp + 0xc0]
push eax
mov edx, edi
call fcn.0049b822
pop ecx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
lea edx, [esp + 0xc4]
call fcn.0049b880
pop ecx
test eax, eax
je 0x4a6a33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4a69cb
push ecx
lea edx, [esp + 0x1cc]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
push str.socket_failure:__s
push esi
call fcn.0048c1c7
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
add esp, 0xc
jmp 0x4a6da2
push dword [edi + 0x10]
lea eax, [esp + 0x44]
push dword [edi + 0x18]
push eax
call fcn.0051c650
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
cmp ax, word [esp + 0x28]
movzx ebx, ax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
ja 0x4a6d7c
push 2
pop eax
push ebx
call dword [sym.imp.WS2_32.dll_htons]
push dword [esp + 0x20]
mov word [esp + 0x46], ax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4a6b6a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x17]
test cl, cl
je 0x4a6b01
cmp eax, 0x2741
jne 0x4a6b01
push ecx
lea edx, [esp + 0x1cc]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
movzx eax, bx
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.0048c275
add esp, 0x10
mov dword [esp + 0x20], 0x80
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x140]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4a6b21
mov eax, dword [esp + 0x30]
movzx ebx, ax
xor al, al
mov byte [esp + 0x17], al
jmp 0x4a6a67
cmp eax, 0x2740
je 0x4a6b0d
cmp eax, 0xd
jne 0x4a6b42
inc ebx
mov byte [esp + 0x17], cl
movzx eax, bx
cmp ax, word [esp + 0x28]
mov ebx, eax
jmp 0x4a6a61
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x1cc]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
push str.getsockname___failed:__s
jmp 0x4a6d91
push ecx
lea edx, [esp + 0x1cc]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
movzx eax, bx
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.0048c1c7
add esp, 0x10
jmp 0x4a6d9a
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x24], 0x80
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a6bb2
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x1cc]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
push str.getsockname___failed:__s
push esi
call fcn.0048c1c7
jmp 0x4a6a27
push 1
push ebx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4a6bdd
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x1cc]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
push str.socket_failure:__s
jmp 0x4a6ba7
push 0x2f
lea edx, [esp + 0x154]
mov ecx, edi
call fcn.0048eb3c
mov eax, dword [esp + 0x1c]
pop ecx
cmp byte [eax + 0x1f2], 0
jne 0x4a6c0b
cmp byte [eax + 0x1ec], 0
je 0x4a6c0b
mov byte [eax + 0x1f2], 1
mov ebp, dword [esp + 0x34]
push 2
pop edx
cmp ebp, edx
je 0x4a6c6f
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x40]
cmp byte [eax + 0x1f2], 0
jne 0x4a6c2e
test ebp, ebp
je 0x4a6c66
cmp ebp, 1
jne 0x4a6c38
cmp cx, dx
jne 0x4a6c66
movzx eax, cx
sub eax, edx
je 0x4a6c44
sub eax, 0x15
jne 0x4a6c62
push dword [esp + 0x42]
call edi
movzx ebx, ax
test ebp, ebp
je 0x4a6d25
cmp ebp, 1
je 0x4a6caa
mov cx, word [esp + 0x40]
push 2
pop edx
mov eax, dword [esp + 0x18]
inc ebp
mov dword [esp + 0x34], ebp
cmp ebp, edx
jne 0x4a6c21
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x2c]
mov dword [edi + 0x90], ebp
mov edi, dword [esp + 0x18]
mov edx, edi
push eax
push ecx
mov ecx, esi
call fcn.0049d0a1
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
jne 0x4a6d76
mov eax, dword [esi + 0x18]
or ebx, 0xffffffff
mov byte [eax + 0x316], 0x1c
jmp 0x4a6dac
lea edx, [esp + 0x180]
lea edi, [esp + 0x150]
mov cl, byte [edi]
test cl, cl
je 0x4a6cd2
cmp cl, 0x2e
movzx eax, cl
push 0x2c
pop ebp
cmove eax, ebp
mov byte [edx], al
inc edx
add edi, 1
jne 0x4a6cb8
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.00480c51
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x194]
add esp, 0x14
push eax
push 0x567f09
push 0x55ef54
push edi
push esi
call fcn.004b57b3
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x4a6d6d
mov ecx, ebp
call fcn.00477159
push eax
push str.Failure_sending_PORT_command:__s
jmp 0x4a6d91
mov edi, dword [esp + 0x38]
movzx eax, bx
push eax
lea eax, [esp + 0x154]
push eax
push 2
pop ecx
xor eax, eax
cmp word [esp + 0x48], cx
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push edi
push esi
call fcn.004b57b3
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x4a6d6d
mov ecx, ebp
call fcn.00477159
push eax
push str.Failure_sending_EPRT_command:__s
jmp 0x4a6d91
mov ebp, dword [esp + 0x34]
jmp 0x4a6c73
mov ebx, dword [esp + 0x2c]
jmp 0x4a6da2
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.0048c1c7
pop ecx
pop ecx
jmp 0x4a6d9a
push ebx
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.0048c1c7
add esp, 0xc
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 0x18]
mov byte [eax + 0x316], 0
cmp ebx, 0xffffffff
je 0x4a6dbf
push ebx
push 0
mov edx, edi
mov ecx, esi
call fcn.0049b8f3
pop ecx
pop ecx
push dword [esp + 0x24]
call dword [0x5c9b0c]
pop ecx
mov ecx, dword [esp + 0x6d4]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x6cc
ret