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

Disassembly:
sub esp, 0x624
mov eax, dword [0x612790]
xor eax, esp
mov dword [esp + 0x620], eax
push ebx
mov ebx, dword [esp + 0x630]
lea eax, [esp + 0xac]
push ebp
push esi
mov esi, dword [esp + 0x634]
push edi
push 0x2f
push 0
mov ebp, dword [esi + 0xc]
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], 0xffffffff
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esi + 0x554]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x13], 1
test edi, edi
je 0x48001c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47fe53
sub ecx, edx
cmp ecx, 1
jbe 0x48001c
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47fe70
sub ecx, edx
cmp ecx, 0x16
jae 0x47fe85
mov ecx, 0x16
jmp 0x47fe99
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47fe90
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x612774]
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x47feba
mov eax, 0x1b
jmp 0x480576
cmp byte [edi], 0x3a
je 0x47fee9
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
je 0x47ff45
mov ecx, eax
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x20]
push edi
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
mov edi, dword [esp + 0x3c]
add esp, 0xc
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
mov edi, eax
add esp, 8
test edi, edi
je 0x47ff5d
push 0xa
lea ecx, [edi + 1]
push 0
push ecx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.00463ab0
movzx eax, ax
push 0x2d
push edi
mov dword [esp + 0x30], eax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x47ff3c
push 0xa
inc eax
push 0
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.00463ab0
add esp, 0x10
movzx edi, ax
jmp 0x47ff5f
mov eax, dword [esp + 0x18]
movzx edi, ax
jmp 0x47ff5f
mov ecx, dword [esp + 0x1c]
sub ecx, edi
nop dword [eax + eax]
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x47ff50
xor edi, edi
xor ecx, ecx
movzx eax, di
cmp word [esp + 0x18], di
cmovbe ecx, eax
mov eax, dword [esp + 0x18]
movzx edx, cx
xor ecx, ecx
cmp word [esp + 0x18], di
mov edi, dword [esp + 0x1c]
movzx eax, ax
cmovbe ecx, eax
mov dword [esp + 0x34], edx
movzx eax, cx
cmp byte [edi], 0
mov dword [esp + 0x30], eax
je 0x48000c
push 0x401
lea eax, [esp + 0x230]
push eax
mov eax, dword [ebp + 0x50]
push edi
push dword [ebp + 0x5c]
push dword [eax + 0x18]
call fcn.0045b490
add esp, 4
push eax
mov eax, dword [ebp + 0x50]
push dword [eax + 4]
call fcn.0045b490
add esp, 0x18
sub eax, 0
je 0x47ffe2
sub eax, 1
je 0x480571
sub eax, 1
jne 0x47ffea
lea ecx, [esp + 0x22c]
mov dword [esp + 0x28], ecx
jmp 0x47ffec
mov ecx, edi
mov dword [esp + 0x28], ecx
jmp 0x47ffec
xor ecx, ecx
mov eax, dword [esp + 0x30]
movzx edx, ax
mov eax, dword [esp + 0x34]
movzx eax, ax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x4800ac
jmp 0x48001e
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, dx
mov dword [esp + 0x1c], eax
jmp 0x48001e
xor edi, edi
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
push dword [ebp + 0x158]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x480074
push 0x100
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0044eb70
push eax
push str.getsockname___failed:__s
push esi
call fcn.00461340
push edi
call dword [0x612768]
add esp, 0x1c
jmp 0x480571
push 0x401
lea eax, [esp + 0x230]
push eax
lea eax, [esp + 0x44]
push eax
movzx eax, word [esp + 0x44]
push eax
call fcn.0048af00
add esp, 0x10
test eax, eax
je 0x480571
lea ecx, [esp + 0x22c]
mov byte [esp + 0x13], 0
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push ecx
push esi
call fcn.0046af60
add esp, 0x14
cmp eax, 1
jne 0x4800d2
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00457f30
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x480557
mov ebp, dword [eax]
push eax
push esi
call fcn.0046b220
add esp, 8
test ebp, ebp
je 0x480557
push edi
call dword [0x612768]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0x14], 0xffffffff
nop word [eax + eax]
lea eax, [esp + 0x14]
push eax
push 0
push ebp
push esi
call fcn.004629e0
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x480159
call edi
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x480110
push 0x100
lea ecx, [esp + 0x130]
push ecx
push eax
call fcn.0044eb70
push eax
push str.socket_failure:__s
push esi
call fcn.00461340
add esp, 0x18
jmp 0x480571
push dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push dword [ebp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
movzx edi, ax
cmp ax, word [esp + 0x1c]
ja 0x48023e
cmp word [esp + 0x38], 2
jne 0x480199
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3a], ax
push dword [esp + 0x24]
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4802d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x480226
cmp eax, 0x2741
jne 0x480226
push 0x100
lea eax, [esp + 0x130]
push eax
push 0x2741
call fcn.0044eb70
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.00461400
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x40]
add esp, 0x1c
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
push dword [edi + 0x158]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x48025f
mov eax, dword [esp + 0x18]
movzx edi, ax
mov byte [esp + 0x13], 0
jmp 0x480233
cmp eax, 0x2740
je 0x480232
cmp eax, 0xd
jne 0x480297
inc edi
cmp di, word [esp + 0x1c]
jbe 0x480185
push str.bind___failed__we_ran_out_of_ports_
push esi
call fcn.00461340
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push esi
call fcn.00461d60
add esp, 0x14
jmp 0x480571
push 0x100
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0044eb70
push eax
push str.getsockname___failed:__s
push esi
call fcn.00461340
push dword [esp + 0x2c]
push edi
push esi
call fcn.00461d60
add esp, 0x24
jmp 0x480571
push 0x100
lea ecx, [esp + 0x130]
push ecx
push eax
call fcn.0044eb70
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.00461340
push dword [esp + 0x30]
push dword [esp + 0x40]
push esi
call fcn.00461d60
add esp, 0x28
jmp 0x480571
cmp di, word [esp + 0x1c]
ja 0x48023e
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x480336
push 0x100
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0044eb70
push eax
push str.getsockname___failed:__s
push esi
call fcn.00461340
push dword [esp + 0x2c]
push dword [esp + 0x3c]
push esi
call fcn.00461d60
add esp, 0x24
jmp 0x480571
push 1
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x480367
push 0x100
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0044eb70
push eax
push str.socket_failure:__s
jmp 0x48031a
push 0x2f
lea eax, [esp + 0xbc]
push eax
push ebp
call fcn.0046af30
mov ebp, dword [esp + 0x2c]
add esp, 0xc
cmp ebx, 2
je 0x4803d5
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x38]
nop
cmp byte [ebp + 0x264], 0
jne 0x48039d
test ebx, ebx
je 0x4803cf
cmp ebx, 1
jne 0x4803a8
cmp cx, 2
jne 0x4803cf
movzx eax, cx
sub eax, 2
jne 0x4803cf
push dword [esp + 0x3a]
call edi
movzx eax, ax
mov dword [esp + 0x34], eax
test ebx, ebx
je 0x4804df
cmp ebx, 1
je 0x480432
mov cx, word [esp + 0x38]
inc ebx
cmp ebx, 2
jne 0x480390
mov edi, dword [esp + 0x28]
mov dword [ebp + 0x4a8], ebx
mov eax, dword [ebp + 0x15c]
cmp eax, 0xffffffff
je 0x4803ff
push eax
push ebp
push esi
call fcn.00461d60
add esp, 0xc
mov dword [ebp + 0x15c], 0xffffffff
mov byte [ebp + 0x24d], 0
mov byte [ebp + 0x24f], 0
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x15c], eax
mov byte [ebp + 0x24d], 1
mov eax, dword [esi + 0xc]
mov dword [eax + 0x4b4], 0x1c
mov eax, edi
jmp 0x480576
lea edx, [esp + 0xe8]
mov ebp, 0x2c
lea edi, [esp + 0xb8]
mov cl, byte [edi]
test cl, cl
je 0x48045c
cmp cl, 0x2e
movzx eax, cl
cmove eax, ebp
mov byte [edx], al
inc edx
add edi, 1
jne 0x480445
mov eax, dword [esp + 0x34]
movzx ecx, ax
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.00464f40
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0xfc]
push eax
push str.PORT
push 0x5f93b4
lea eax, [ebp + 0x430]
push eax
push esi
call fcn.00493fb0
mov edi, eax
add esp, 0x28
test edi, edi
je 0x4803d9
push edi
call fcn.0044ece0
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.00461340
push dword [esp + 0x24]
push ebp
push esi
call fcn.00461d60
mov eax, dword [esi + 0xc]
add esp, 0x1c
mov dword [eax + 0x4b4], 0
mov eax, edi
jmp 0x480576
movzx eax, ax
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
lea eax, [ebp + 0x430]
push eax
push esi
call fcn.00493fb0
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4803d9
push edi
call fcn.0044ece0
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.00461340
push dword [esp + 0x24]
push ebp
push esi
call fcn.00461d60
mov dword [ebp + 0x4a8], 1
add esp, 0x1c
mov eax, dword [esi + 0xc]
mov dword [eax + 0x4b4], 0
mov eax, edi
jmp 0x480576
mov eax, dword [esp + 0x28]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.00461340
push edi
call dword [0x612768]
add esp, 0x10
mov eax, 0x1e
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00498b38
add esp, 0x624
ret