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

Disassembly:
sub esp, 0x620
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov esi, dword [ebx]
push 0x2e
xor ebp, ebp
lea eax, [esp + 0xb9]
push ebp
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0xffffffff
mov byte [esp + 0xc0], 0
call sub.MSVCR90.dll_memset
mov edi, dword [esi + 0x9d4]
mov dword [esp + 0x34], ebp
mov eax, dword [esi + 0x9d4]
add esp, 0xc
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x14], ebp
cmp eax, ebp
je 0x4a4081
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a3e88
sub eax, edx
cmp eax, 1
jbe 0x4a4081
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a3ea0
sub eax, edx
cmp eax, 0x41
jae 0x4a3eb5
mov eax, 0x41
jmp 0x4a3ec9
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a3ec0
sub eax, edx
inc eax
push 1
push eax
call dword [0x618920]
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4a3ee8
mov eax, 0x1b
jmp 0x4a450d
mov al, byte [edi]
mov esi, dword [sym.imp.MSVCR90.dll_strchr]
cmp al, 0x5b
jne 0x4a3f9e
push 0x5d
push edi
lea ebx, [edi + 1]
call esi
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4a4027
mov edx, dword [esp + 0x14]
mov ecx, ebp
sub ecx, ebx
push ecx
push ebx
push edx
call dword [sym.imp.MSVCR90.dll_strncpy]
mov ebx, dword [esp + 0x3c]
add esp, 0xc
test ebp, ebp
je 0x4a402b
push 0x3a
push ebp
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x4a402b
mov ebp, dword [sym.imp.MSVCR90.dll_strtoul]
push 0xa
lea eax, [edi + 1]
push 0
push eax
call ebp
push eax
call fcn.0048b790
movzx ecx, ax
push 0x2d
push edi
mov dword [esp + 0x34], ecx
call esi
add esp, 0x18
test eax, eax
je 0x4a401c
push 0xa
inc eax
push 0
push eax
call ebp
push eax
call fcn.0048b790
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x20], eax
cmp word [esp + 0x1c], ax
jbe 0x4a402b
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
jmp 0x4a402b
cmp al, 0x3a
jne 0x4a3fa9
mov ebp, edi
jmp 0x4a3f25
push 0x3a
push edi
call esi
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4a4001
lea eax, [esp + 0x34]
push eax
push edi
push 0x17
call fcn.004b5b60
mov edx, dword [esp + 0x20]
add esp, 0xc
cmp eax, 1
jne 0x4a3fec
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4a3fe0
jmp 0x4a402b
mov ecx, ebp
sub ecx, edi
push ecx
push edi
push edx
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
jmp 0x4a3f25
mov edx, dword [esp + 0x14]
mov eax, edi
sub edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4a4010
jmp 0x4a402b
movzx edx, word [esp + 0x1c]
mov dword [esp + 0x20], edx
jmp 0x4a402b
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
cmp byte [esi], 0
je 0x4a4081
mov ecx, dword [ebx + 0x2f4]
mov edx, dword [ebx + 0x2b8]
push 0x401
lea eax, [esp + 0x22c]
push eax
mov eax, dword [edx + 0x18]
push esi
push ecx
push eax
call fcn.004b7a00
mov ecx, dword [ebx + 0x2b8]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.00524c10
add esp, 0x18
sub eax, 0
je 0x4a40e5
sub eax, 1
je 0x4a40db
sub eax, 1
je 0x4a412b
mov edx, dword [ebx + 0x420]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x30], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a40e9
push 0x100
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b55d0
mov ecx, dword [esp + 0x24]
push eax
push str.getsockname___failed:__s
push ecx
call fcn.00489340
mov edx, dword [esp + 0x2c]
push edx
call dword [0x618914]
add esp, 0x1c
mov eax, 0x1e
jmp 0x4a450d
mov edi, esi
jmp 0x4a4132
movzx eax, word [esp + 0x34]
push 0x401
cmp eax, 0x17
je 0x4a4108
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
jmp 0x4a4117
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0x17
call fcn.004b7e40
mov esi, dword [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x2c], 0
lea edi, [esp + 0x228]
lea edx, [esp + 0x28]
push edx
push 0
push 0
push edi
push ebx
call fcn.004afc60
add esp, 0x14
cmp eax, 1
jne 0x4a4158
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0047fbf0
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a4174
mov ecx, dword [esp + 0x18]
mov ebp, dword [eax]
push eax
push ecx
call fcn.004aff00
add esp, 8
test ebp, ebp
jne 0x4a4198
mov edx, dword [esp + 0x18]
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edx
call fcn.00489340
push esi
call dword [0x618914]
add esp, 0x10
mov eax, 0x1e
jmp 0x4a450d
push esi
call dword [0x618914]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor edi, edi
lea eax, [esp + 0x10]
push eax
push 0
push ebp
push ebx
call fcn.0048e4d0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x4a41d8
call esi
mov ebp, dword [ebp + 0x1c]
mov edi, eax
test ebp, ebp
jne 0x4a41b2
jmp 0x4a41dc
test ebp, ebp
jne 0x4a420c
push 0x100
lea ecx, [esp + 0x12c]
push ecx
push edi
call fcn.004b55d0
mov edx, dword [esp + 0x24]
push eax
push str.socket_failure:__s
push edx
call fcn.00489340
add esp, 0x18
mov eax, 0x1e
jmp 0x4a450d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
movzx edi, ax
cmp ax, word [esp + 0x20]
ja 0x4a4370
mov esi, dword [esp + 0x2c]
mov edi, edi
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4a4369
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
je 0x4a42d0
cmp eax, 0x2741
jne 0x4a42d0
push 0x100
lea ecx, [esp + 0x12c]
push ecx
push eax
call fcn.004b55d0
mov esi, dword [esp + 0x24]
push eax
movzx edx, di
push edx
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.00489260
mov edx, dword [ebx + 0x420]
add esp, 0x1c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x30], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4a42ed
movzx edi, word [esp + 0x1c]
xor esi, esi
jmp 0x4a42dd
cmp eax, 0x2740
je 0x4a42dc
cmp eax, 0xd
jne 0x4a432a
inc edi
cmp di, word [esp + 0x20]
jbe 0x4a4240
jmp 0x4a4370
push 0x100
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b55d0
push eax
push str.getsockname___failed:__s
push esi
call fcn.00489340
mov ecx, dword [esp + 0x28]
push ecx
push ebx
call fcn.0048e440
add esp, 0x20
mov eax, 0x1e
jmp 0x4a450d
push 0x100
lea edx, [esp + 0x12c]
push edx
push eax
call fcn.004b55d0
mov ecx, dword [esp + 0x24]
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push ecx
call fcn.00489340
mov edx, dword [esp + 0x2c]
push edx
push ebx
call fcn.0048e440
add esp, 0x24
mov eax, 0x1e
jmp 0x4a450d
cmp di, word [esp + 0x20]
jbe 0x4a4397
mov eax, dword [esp + 0x18]
push str.bind___failed__we_ran_out_of_ports_
push eax
call fcn.00489340
mov ecx, dword [esp + 0x18]
push ecx
push ebx
call fcn.0048e440
add esp, 0x10
mov eax, 0x1e
jmp 0x4a450d
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x30], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a43e1
push 0x100
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b55d0
push eax
mov eax, dword [esp + 0x28]
push str.getsockname___failed:__s
push eax
jmp 0x4a430d
mov edx, dword [esp + 0x10]
push 1
push edx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4a4433
push 0x100
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b55d0
mov ecx, dword [esp + 0x24]
push eax
push str.socket_failure:__s
push ecx
call fcn.00489340
mov edx, dword [esp + 0x28]
push edx
push ebx
call fcn.0048e440
add esp, 0x20
mov eax, 0x1e
jmp 0x4a450d
push 0x2f
lea eax, [esp + 0xb8]
push eax
push ebp
call fcn.004af1d0
add esp, 0xc
cmp dword [ebx + 0x578], 0
jne 0x4a4462
cmp dword [ebx + 0x558], 0
je 0x4a4462
mov dword [ebx + 0x578], 1
mov edi, dword [esp + 0x634]
cmp edi, 2
je 0x4a44d5
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x34]
lea esp, [esp]
cmp dword [ebx + 0x578], 0
jne 0x4a448d
test edi, edi
je 0x4a44c8
cmp edi, 1
jne 0x4a4498
cmp cx, 2
jne 0x4a44c8
movzx eax, cx
sub eax, 2
je 0x4a44ac
sub eax, 0x15
jne 0x4a44c8
mov ecx, dword [esp + 0x36]
push ecx
jmp 0x4a44b1
mov edx, dword [esp + 0x36]
push edx
call esi
movzx ebp, ax
test edi, edi
je 0x4a4526
cmp edi, 1
je 0x4a45a8
mov cx, word [esp + 0x34]
inc edi
cmp edi, 2
jne 0x4a4480
mov dword [esp + 0x634], edi
mov eax, dword [esp + 0x634]
mov esi, ebx
mov dword [ebx + 0x6f8], eax
call fcn.004a39f0
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x424], ecx
mov eax, 0x1c
mov ecx, ebx
mov dword [ebx + 0x528], 1
call fcn.004a3ce0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x62c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058ecc6
add esp, 0x620
ret
xor edx, edx
cmp word [esp + 0x34], 2
movzx eax, bp
setne dl
push eax
lea ecx, [esp + 0xb8]
push ecx
lea ebp, [ebx + 0x688]
mov dword [esp + 0x63c], edi
inc edx
push edx
push str.EPRT
push str._s__d_s_hu
push ebp
call fcn.004b8800
mov edi, eax
add esp, 0x18
mov dword [esp + 0x14], edi
test edi, edi
je 0x4a44d5
push edi
call fcn.004b4b70
push eax
mov eax, dword [esp + 0x20]
push str.Failure_sending_EPRT_command:__s
push eax
call fcn.00489340
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call fcn.0048e440
add esp, 0x18
xor eax, eax
mov ecx, ebx
mov dword [ebp + 0x70], 1
call fcn.004a3ce0
mov eax, edi
jmp 0x4a450d
mov dword [esp + 0x634], edi
lea ecx, [esp + 0xe4]
lea edx, [esp + 0xb4]
lea ecx, [ecx]
mov al, byte [edx]
test al, al
je 0x4a45d7
cmp al, 0x2e
jne 0x4a45cf
mov byte [ecx], 0x2c
jmp 0x4a45d1
mov byte [ecx], al
inc ecx
add edx, 1
jne 0x4a45c0
movzx eax, bp
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.00491120
lea eax, [esp + 0xf8]
push eax
push str.PORT
lea eax, [ebx + 0x688]
push 0x5b1ce8
push eax
call fcn.004b8800
mov edi, eax
add esp, 0x24
mov dword [esp + 0x14], edi
test edi, edi
je 0x4a44d5
push edi
call fcn.004b4b70
mov ecx, dword [esp + 0x1c]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.00489340
mov edx, dword [esp + 0x20]
push edx
push ebx
call fcn.0048e440
add esp, 0x18
xor eax, eax
mov ecx, ebx
call fcn.004a3ce0
mov eax, edi
jmp 0x4a450d