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

Disassembly:
sub esp, 0x9b4
mov eax, dword [0x58d214]
xor eax, esp
mov dword [esp + 0x9b0], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c4]
lea eax, [esp + 0xb8]
push edi
mov edi, dword [esp + 0x9cc]
push 0x100
mov ebx, dword [esi]
push 0
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.0050d990
mov ecx, dword [esp + 0x24]
xor eax, eax
mov ebx, dword [ebx + 0x428]
xor ebp, ebp
mov dword [esp + 0x3c], eax
add esp, 0xc
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx + 0x428]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x13], 1
mov dword [esp + 0x28], ebp
test ecx, ecx
je 0x46d6f1
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d537
sub ecx, edx
cmp ecx, 1
jbe 0x46d6f1
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d550
sub ecx, edx
cmp ecx, 0x16
jae 0x46d565
mov ecx, 0x16
jmp 0x46d579
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46d570
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x58d0c0]
mov ebp, eax
add esp, 8
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x46d59a
lea eax, [ebp + 0x1b]
jmp 0x46dbb8
cmp byte [ebx], 0x3a
je 0x46d5c5
push 0x3a
push ebx
call fcn.0050eb10
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
je 0x46d62d
mov ecx, eax
sub ecx, ebx
push ecx
push ebx
push ebp
call fcn.00517aa0
mov ebx, dword [esp + 0x40]
add esp, 0xc
test ebx, ebx
je 0x46d63e
push 0x3a
push ebx
call fcn.0050eb10
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46d63e
push 0xa
lea ecx, [ebx + 1]
push 0
push ecx
call fcn.0051f967
push eax
call fcn.0045dee0
movzx eax, ax
push 0x2d
push ebx
mov dword [esp + 0x34], eax
call fcn.0050eb10
add esp, 0x18
test eax, eax
je 0x46d620
push 0xa
inc eax
push 0
push eax
call fcn.0051f967
push eax
call fcn.0045dee0
movzx ecx, ax
add esp, 0x10
mov dword [esp + 0x20], ecx
jmp 0x46d63e
mov eax, dword [esp + 0x1c]
movzx ecx, ax
mov dword [esp + 0x20], ecx
jmp 0x46d63e
mov ecx, ebp
sub ecx, ebx
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [ecx + ebx - 1], al
test al, al
jne 0x46d631
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp word [esp + 0x1c], dx
movzx eax, dx
cmovbe ecx, eax
mov eax, dword [esp + 0x1c]
movzx ebx, cx
xor ecx, ecx
cmp word [esp + 0x1c], dx
movzx eax, ax
cmovbe ecx, eax
cmp byte [ebp], 0
movzx eax, cx
mov dword [esp + 0x34], eax
je 0x46d6e4
push 0x401
lea eax, [esp + 0x1c0]
push eax
mov eax, dword [esi + 0x54]
push ebp
push dword [esi + 0x90]
push dword [eax + 0x18]
call fcn.004468b0
add esp, 4
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call fcn.004468b0
add esp, 0x18
sub eax, 0
je 0x46d6c1
sub eax, 1
je 0x46dbb3
sub eax, 1
jne 0x46d6c9
lea ecx, [esp + 0x1bc]
mov dword [esp + 0x2c], ecx
jmp 0x46d6cb
mov ecx, ebp
mov dword [esp + 0x2c], ecx
jmp 0x46d6cb
xor ecx, ecx
mov eax, dword [esp + 0x34]
movzx eax, ax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
test ecx, ecx
jne 0x46d76e
jmp 0x46d6f1
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x46d73e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.00441490
push eax
push str.getsockname___failed:__s
push dword [esp + 0x28]
call fcn.00451580
push ebp
call dword [0x58d0b4]
add esp, 0x18
jmp 0x46dbb3
push 0x401
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x48]
push eax
movzx eax, word [esp + 0x48]
push eax
call fcn.0045f7e0
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x23], 0
add esp, 0x10
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
push esi
call fcn.00447230
add esp, 0x10
cmp eax, 1
jne 0x46d792
lea eax, [esp + 0x30]
push eax
push esi
call fcn.00446a20
add esp, 8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x46db93
mov ebp, dword [eax]
push eax
push dword [esp + 0x1c]
call fcn.004474f0
add esp, 8
test ebp, ebp
je 0x46db93
push dword [esp + 0x28]
call dword [0x58d0b4]
add esp, 4
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push 0
push ebp
push esi
call fcn.00452980
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x46d7ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
mov ebx, eax
test ebp, ebp
jne 0x46d7c4
jmp 0x46d7f2
test ebp, ebp
jne 0x46d810
push ebx
push esi
call fcn.00441490
push eax
push str.socket_failure:__s
push dword [esp + 0x28]
call fcn.00451580
add esp, 0x14
jmp 0x46dbb3
push dword [ebp + 0x10]
lea eax, [esp + 0x40]
push dword [ebp + 0x18]
push eax
call fcn.0050ce90
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
movzx ebx, ax
cmp ax, word [esp + 0x20]
ja 0x46d8e9
nop dword [eax]
cmp word [esp + 0x3c], 2
jne 0x46d854
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3e], ax
push dword [esp + 0x24]
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x46d95d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x46d8d1
cmp eax, 0x2741
jne 0x46d8d1
push eax
push esi
call fcn.00441490
push eax
movzx eax, bx
mov ebx, dword [esp + 0x24]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push ebx
call fcn.004516a0
add esp, 0x18
mov dword [esp + 0x24], 0x80
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x46d906
mov eax, dword [esp + 0x1c]
movzx ebx, ax
mov byte [esp + 0x13], 0
jmp 0x46d8de
cmp eax, 0x2740
je 0x46d8dd
cmp eax, 0xd
jne 0x46d931
inc ebx
cmp bx, word [esp + 0x20]
jbe 0x46d840
push str.bind___failed__we_ran_out_of_ports_
push dword [esp + 0x1c]
call fcn.00451580
push dword [esp + 0x1c]
push esi
call fcn.00452010
jmp 0x46dbb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.00441490
push eax
push str.getsockname___failed:__s
push ebx
call fcn.00451580
push dword [esp + 0x28]
push esi
call fcn.00452010
add esp, 0x1c
jmp 0x46dbb3
push eax
push esi
call fcn.00441490
push eax
movzx eax, bx
push eax
push str.bind_port_hu__failed:__s
push dword [esp + 0x2c]
call fcn.00451580
push dword [esp + 0x2c]
push esi
call fcn.00452010
add esp, 0x20
jmp 0x46dbb3
cmp bx, word [esp + 0x20]
ja 0x46d8e9
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x46d9a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.00441490
push eax
push str.getsockname___failed:__s
push dword [esp + 0x28]
jmp 0x46d91a
push 1
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x46d9cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.00441490
push eax
push str.socket_failure:__s
push dword [esp + 0x28]
jmp 0x46d91a
push 0x100
lea eax, [esp + 0xc0]
push eax
push ebp
call fcn.00447200
add esp, 0xc
cmp edi, 2
je 0x46da33
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
cmp byte [esi + 0x3a1], 0
jne 0x46d9ff
test edi, edi
je 0x46da2d
cmp edi, 1
jne 0x46da0a
cmp cx, 2
jne 0x46da2d
movzx eax, cx
sub eax, 2
jne 0x46da2d
push dword [esp + 0x3e]
call ebx
movzx ebp, ax
test edi, edi
je 0x46db23
cmp edi, 1
je 0x46da77
mov cx, word [esp + 0x3c]
inc edi
cmp edi, 2
jne 0x46d9f2
mov ebx, dword [esp + 0x28]
lea ebp, [esi + 0x618]
mov dword [ebp + 0x68], edi
mov eax, dword [esi + 0x1ac]
cmp eax, 0xffffffff
je 0x46da55
push eax
push esi
call fcn.00452010
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1ac], eax
mov eax, ebx
mov byte [esi + 0x39a], 1
mov dword [esi + 0x68c], 0x1c
jmp 0x46dbb8
lea edx, [esp + 0x5c0]
mov esi, 0x2c
lea ebx, [esp + 0xbc]
nop word [eax + eax]
mov cl, byte [ebx]
test cl, cl
je 0x46daa7
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
add ebx, 1
jne 0x46da90
mov ecx, ebp
mov byte [edx], 0
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
call fcn.00453b00
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x5d4]
push eax
push str.PORT
push 0x5519e0
lea ebp, [esi + 0x618]
push ebp
call fcn.00478d30
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x46da3d
push ebx
call fcn.00441590
push eax
push str.Failure_sending_PORT_command:__s
push dword [esp + 0x24]
call fcn.00451580
push dword [esp + 0x24]
push esi
call fcn.00452010
add esp, 0x18
mov dword [esi + 0x68c], 0
mov eax, ebx
jmp 0x46dbb8
push ebp
lea eax, [esp + 0xc0]
push eax
xor eax, eax
lea ebp, [esi + 0x618]
cmp word [esp + 0x44], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebp
call fcn.00478d30
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x46da3d
push ebx
call fcn.00441590
push eax
push str.Failure_sending_EPRT_command:__s
push dword [esp + 0x24]
call fcn.00451580
push dword [esp + 0x24]
push esi
call fcn.00452010
mov dword [ebp + 0x68], 1
add esp, 0x18
mov dword [esi + 0x68c], 0
mov eax, ebx
jmp 0x46dbb8
mov eax, dword [esp + 0x2c]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [esp + 0x20]
call fcn.00451580
push dword [esp + 0x34]
call dword [0x58d0b4]
add esp, 0x10
mov eax, 0x1e
mov ecx, dword [esp + 0x9c0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d48f1
add esp, 0x9b4
ret