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

Disassembly:
sub esp, 0x61c
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
push ebp
push esi
push edi
push 0x2e
mov esi, ecx
mov ebx, dword [esi]
xor ebp, ebp
lea eax, [esp + 0xb5]
push ebp
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0xffffffff
mov byte [esp + 0xbc], 0
call fcn.0044ea7c
mov edi, dword [ebx + 0x9cc]
mov dword [esp + 0x34], ebp
mov eax, dword [ebx + 0x9cc]
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x18], ebp
je 0x478041
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x477f04
sub eax, edx
cmp eax, 1
jbe 0x478041
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x477f20
sub eax, edx
cmp eax, 0x16
jae 0x477f37
mov eax, 0x16
jmp 0x477f4b
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x477f40
sub eax, edx
add eax, 1
push 1
push eax
call dword [0x5d2048]
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
jne 0x477f6c
mov eax, 0x1b
jmp 0x4784dc
cmp byte [edi], 0x3a
mov ebx, dword [sym.imp.MSVCR80.dll_strchr]
jne 0x4780a9
mov ebp, edi
test ebp, ebp
je 0x477fe7
push 0x3a
push ebp
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x477fe7
mov ebp, dword [sym.imp.MSVCR80.dll_strtoul]
push 0xa
lea eax, [edi + 1]
push 0
push eax
call ebp
push eax
call fcn.0045ee60
movzx ecx, ax
push 0x2d
push edi
mov dword [esp + 0x38], ecx
call ebx
add esp, 0x18
test eax, eax
je 0x4780e5
push 0xa
add eax, 1
push 0
push eax
call ebp
push eax
call fcn.0045ee60
movzx eax, ax
add esp, 0x10
cmp word [esp + 0x20], ax
mov dword [esp + 0x24], eax
jbe 0x477fe7
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x478041
mov ecx, dword [esi + 0x2f4]
mov edx, dword [esi + 0x2b8]
push 0x401
lea eax, [esp + 0x228]
push eax
mov eax, dword [edx + 0x18]
push edi
push ecx
push eax
call fcn.004545e0
mov ecx, dword [esi + 0x2b8]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.004545e0
add esp, 0x18
sub eax, 0
je 0x478122
sub eax, 1
je 0x47809f
sub eax, 1
je 0x47811b
mov edx, dword [esi + 0x420]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4780f3
push pe_nt_image_headers32
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00489550
mov ecx, dword [esp + 0x20]
push eax
push str.getsockname___failed:__s
push ecx
call fcn.0045c260
mov edx, dword [esp + 0x30]
push edx
call dword [0x5d203c]
add esp, 0x1c
mov eax, 0x1e
jmp 0x4784dc
push 0x3a
push edi
call ebx
mov edx, dword [esp + 0x20]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4780d0
mov ecx, ebp
sub ecx, edi
push ecx
push edi
push edx
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
jmp 0x477f7d
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4780d4
jmp 0x477fe7
movzx edx, word [esp + 0x20]
mov dword [esp + 0x24], edx
jmp 0x477fe7
movzx edx, word [esp + 0x30]
push 0x401
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call fcn.0048b980
add esp, 0x10
mov dword [esp + 0x2c], 0
lea edi, [esp + 0x224]
lea eax, [esp + 0x28]
push eax
push 0
push 0
push edi
push esi
call fcn.00483c80
add esp, 0x14
cmp eax, 1
jne 0x478148
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.00452c90
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x478164
mov edx, dword [esp + 0x14]
mov ebp, dword [eax]
push eax
push edx
call fcn.00483ee0
add esp, 8
test ebp, ebp
jne 0x47818c
mov eax, dword [esp + 0x14]
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push eax
call fcn.0045c260
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x5d203c]
add esp, 0x10
mov eax, 0x1e
jmp 0x4784dc
mov edx, dword [esp + 0x18]
push edx
call dword [0x5d203c]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor edi, edi
lea ebx, [ebx]
lea eax, [esp + 0x10]
push eax
push 0
push ebp
push esi
call fcn.00461a40
add esp, 0x10
test eax, eax
mov dword [esp + 0x18], eax
je 0x4781d6
call ebx
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
mov edi, eax
jne 0x4781b0
jmp 0x4781da
test ebp, ebp
jne 0x47820a
push pe_nt_image_headers32
lea ecx, [esp + 0x128]
push ecx
push edi
call fcn.00489550
mov edx, dword [esp + 0x20]
push eax
push str.socket_failure:__s
push edx
call fcn.0045c260
add esp, 0x18
mov eax, 0x1e
jmp 0x4784dc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp ax, word [esp + 0x24]
movzx edi, ax
ja 0x47837a
mov ebx, dword [esp + 0x2c]
lea esp, [esp]
cmp word [esp + 0x30], 2
jne 0x478254
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x32], ax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x478373
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x4782d8
cmp eax, 0x2741
jne 0x4782d8
push pe_nt_image_headers32
lea ecx, [esp + 0x128]
push ecx
push eax
call fcn.00489550
movzx edx, di
mov edi, dword [esp + 0x20]
push eax
push edx
push str.bind_port_hu__on_non_local_address_failed:__s_n
push edi
call fcn.0045c170
mov edx, dword [esi + 0x420]
add esp, 0x1c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4782f7
movzx edi, word [esp + 0x20]
xor ebx, ebx
jmp 0x4782e7
cmp eax, 0x2740
je 0x4782e4
cmp eax, 0xd
jne 0x478334
add edi, 1
cmp di, word [esp + 0x24]
jbe 0x478240
jmp 0x47837a
push pe_nt_image_headers32
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00489550
push eax
push str.getsockname___failed:__s
push edi
call fcn.0045c260
mov ecx, dword [esp + 0x28]
push ecx
push esi
call fcn.004619b0
add esp, 0x20
mov eax, 0x1e
jmp 0x4784dc
push pe_nt_image_headers32
lea edx, [esp + 0x128]
push edx
push eax
call fcn.00489550
mov ecx, dword [esp + 0x20]
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push ecx
call fcn.0045c260
mov edx, dword [esp + 0x2c]
push edx
push esi
call fcn.004619b0
add esp, 0x24
mov eax, 0x1e
jmp 0x4784dc
cmp di, word [esp + 0x24]
jbe 0x4783a1
mov eax, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
push eax
call fcn.0045c260
mov ecx, dword [esp + 0x18]
push ecx
push esi
call fcn.004619b0
add esp, 0x10
mov eax, 0x1e
jmp 0x4784dc
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4783eb
push pe_nt_image_headers32
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00489550
push eax
mov eax, dword [esp + 0x24]
push str.getsockname___failed:__s
push eax
jmp 0x478317
mov edx, dword [esp + 0x10]
push 1
push edx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x47843d
push pe_nt_image_headers32
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00489550
mov ecx, dword [esp + 0x20]
push eax
push str.socket_failure:__s
push ecx
call fcn.0045c260
mov edx, dword [esp + 0x28]
push edx
push esi
call fcn.004619b0
add esp, 0x20
mov eax, 0x1e
jmp 0x4784dc
push 0x2f
lea eax, [esp + 0xb4]
push eax
push ebp
call fcn.00483190
mov ebp, dword [esp + 0x63c]
add esp, 0xc
cmp ebp, 2
je 0x4784ab
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x30]
cmp dword [esi + 0x570], 0
jne 0x478474
test ebp, ebp
je 0x4784a3
cmp ebp, 1
jne 0x47847f
cmp cx, 2
jne 0x4784a3
movzx eax, cx
sub eax, 2
jne 0x4784a3
mov ecx, dword [esp + 0x32]
push ecx
call ebx
test ebp, ebp
movzx edi, ax
je 0x4784f5
cmp ebp, 1
je 0x478561
mov cx, word [esp + 0x30]
add ebp, 1
cmp ebp, 2
jne 0x478467
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x6f0], ebp
call fcn.00477a50
mov eax, dword [esp + 0x10]
mov dword [esi + 0x424], eax
mov dword [esi + 0x520], 1
mov eax, 0x1c
mov ecx, esi
call fcn.00477d60
mov eax, ebx
mov ecx, dword [esp + 0x628]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e502
add esp, 0x61c
ret
xor ecx, ecx
cmp word [esp + 0x30], 2
movzx edx, di
setne cl
push edx
lea eax, [esp + 0xb4]
push eax
lea edi, [esi + 0x680]
add ecx, 1
push ecx
push str.EPRT
push str._s__d_s_hu
push edi
call fcn.0048c300
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4784af
push ebx
call fcn.00488af0
mov edx, dword [esp + 0x18]
push eax
push str.Failure_sending_EPRT_command:__s
push edx
call fcn.0045c260
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.004619b0
add esp, 0x18
mov dword [edi + 0x70], 1
xor eax, eax
jmp 0x4784d3
lea ecx, [esp + 0xe0]
lea edx, [esp + 0xb0]
nop
mov al, byte [edx]
test al, al
je 0x478589
cmp al, 0x2e
jne 0x47857f
mov byte [ecx], 0x2c
jmp 0x478581
mov byte [ecx], al
add ecx, 1
add edx, 1
jne 0x478570
movzx eax, di
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.00465130
lea eax, [esp + 0xf4]
push eax
push str.PORT
lea eax, [esi + 0x680]
push 0x57e190
push eax
call fcn.0048c300
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x4784af
push ebx
call fcn.00488af0
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.0045c260
mov edx, dword [esp + 0x20]
push edx
push esi
call fcn.004619b0
add esp, 0x18
xor eax, eax
jmp 0x4784d3