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

Disassembly:
sub esp, 0xa24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa38]
lea eax, [esp + 0x130]
push 0x100
push 0
push eax
mov ebx, dword [edi]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.00401100
mov esi, dword [ebx + 0x974]
xor eax, eax
mov dword [esp + 0x38], eax
add esp, 0xc
mov ecx, dword [ebx + 0x974]
xor ebp, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x13], 1
test ecx, ecx
je 0x4b0e3c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b0c46
sub ecx, edx
cmp ecx, 1
jbe 0x4b0e3c
mov ecx, esi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b0c60
sub ecx, edx
cmp ecx, 0x41
jae 0x4b0c75
mov ecx, 0x41
jmp 0x4b0c89
mov ecx, esi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b0c80
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x518cd0]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4b0cac
pop edi
pop esi
lea eax, [ebp + 0x1b]
pop ebp
pop ebx
add esp, 0xa24
ret
mov al, byte [esi]
cmp al, 0x5b
jne 0x4b0cce
push 0x5d
push esi
call fcn.0048d9a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b0cd4
lea eax, [esi + 1]
mov ecx, ebx
sub ecx, eax
push ecx
push eax
jmp 0x4b0d25
cmp al, 0x3a
jne 0x4b0ce2
mov ebx, esi
xor esi, esi
xor ecx, ecx
test ebx, ebx
je 0x4b0da1
jmp 0x4b0d2e
push 0x3a
push esi
call fcn.0048d9a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b0d84
lea eax, [esp + 0x30]
push eax
push esi
push 0x17
call fcn.0049ade0
add esp, 0xc
cmp eax, 1
jne 0x4b0d1f
mov ecx, ebp
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x4b0d10
jmp 0x4b0d9d
mov eax, ebx
sub eax, esi
push eax
push esi
push ebp
call fcn.004240b0
add esp, 0xc
push 0x3a
push ebx
call fcn.0048d9a0
mov ebx, eax
add esp, 8
xor esi, esi
xor ecx, ecx
test ebx, ebx
je 0x4b0da1
push 0xa
push ecx
lea ecx, [ebx + 1]
push ecx
call fcn.0042de9c
push eax
call fcn.0045be60
push 0x2d
push ebx
movzx esi, ax
call fcn.0048d9a0
add esp, 0x18
test eax, eax
je 0x4b0d80
push 0xa
inc eax
push 0
push eax
call fcn.0042de9c
push eax
call fcn.0045be60
add esp, 0x10
movzx ecx, ax
jmp 0x4b0da1
mov ecx, esi
jmp 0x4b0da1
mov ecx, ebp
sub ecx, esi
jmp 0x4b0d90
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x4b0d90
xor esi, esi
xor ecx, ecx
cmp cx, si
sbb eax, eax
not eax
and eax, ecx
cmp cx, si
movzx ebx, ax
sbb eax, eax
not eax
and eax, esi
cmp byte [ebp], 0
movzx esi, ax
je 0x4b0e2c
push 0x401
lea eax, [esp + 0x234]
push eax
mov eax, dword [edi + 0x50]
push ebp
push dword [edi + 0x8c]
push dword [eax + 0x18]
call fcn.004b6cd0
add esp, 4
push eax
mov eax, dword [edi + 0x50]
push dword [eax + 4]
call fcn.00418d50
add esp, 0x18
sub eax, 0
je 0x4b0e10
sub eax, 1
je 0x4b13bb
sub eax, 1
jne 0x4b0e18
lea eax, [esp + 0x230]
mov dword [esp + 0x20], eax
jmp 0x4b0e1a
mov eax, ebp
mov dword [esp + 0x20], eax
jmp 0x4b0e1a
xor eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
test eax, eax
jne 0x4b0ee5
jmp 0x4b0e38
mov eax, esi
mov dword [esp + 0x28], eax
mov eax, ebx
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x80
push eax
lea eax, [esp + 0x34]
push eax
push dword [edi + 0x1c0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4b0e9d
push 0x80
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b6080
push eax
push str.getsockname___failed:__s
push ebx
call fcn.004599d0
push ebp
call dword [0x518cc4]
add esp, 0x1c
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret
mov ax, word [esp + 0x30]
cmp ax, 0x17
je 0x4b0eb1
lea ecx, [esp + 0x34]
movzx eax, ax
jmp 0x4b0eba
lea ecx, [esp + 0x38]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x234]
movzx eax, ax
push edx
push ecx
push eax
call fcn.004b6d60
add esp, 0x10
lea eax, [esp + 0x230]
xor cl, cl
mov dword [esp + 0x20], eax
mov byte [esp + 0x13], cl
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push eax
push edi
call fcn.00491bf0
mov eax, dword [esp + 0x40]
add esp, 0x14
test eax, eax
je 0x4b139e
mov ebx, dword [eax]
push eax
push dword [esp + 0x1c]
call fcn.00491e30
add esp, 8
test ebx, ebx
je 0x4b139e
push ebp
call dword [0x518cc4]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
jmp 0x4b0f30
lea eax, [esp + 0x14]
push eax
push 0
push ebx
push edi
call fcn.0045b150
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x4b0f87
call esi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x4b0f30
push 0x80
lea ecx, [esp + 0xb4]
push ecx
push eax
call fcn.004b6080
push eax
push str.socket_failure:__s
push dword [esp + 0x2c]
call fcn.004599d0
add esp, 0x18
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret
push dword [ebx + 0x10]
lea eax, [esp + 0x34]
push dword [ebx + 0x18]
push eax
call fcn.004095d0
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
movzx esi, ax
cmp ax, word [esp + 0x24]
ja 0x4b1373
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [esp + 0x1c]
movzx eax, ax
mov word [esp + 0x36], ax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4b10f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x4b1055
cmp eax, 0x2741
jne 0x4b1055
push 0x80
lea eax, [esp + 0xb4]
push eax
push 0x2741
call fcn.004b6080
push eax
movzx eax, si
mov esi, dword [esp + 0x28]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.00459910
add esp, 0x1c
mov dword [esp + 0x1c], 0x80
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
push dword [edi + 0x1c0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4b1070
mov eax, dword [esp + 0x28]
xor cl, cl
movzx esi, ax
mov byte [esp + 0x13], cl
jmp 0x4b0fb3
cmp eax, 0x2740
je 0x4b1061
cmp eax, 0xd
jne 0x4b10b2
inc esi
mov byte [esp + 0x13], cl
movzx eax, si
mov esi, eax
jmp 0x4b0fa8
push 0x80
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b6080
push eax
push str.getsockname___failed:__s
push esi
call fcn.004599d0
push dword [esp + 0x2c]
push edi
call fcn.0045b0e0
add esp, 0x20
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret
push 0x80
lea ecx, [esp + 0xb4]
push ecx
push eax
call fcn.004b6080
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push dword [esp + 0x30]
call fcn.004599d0
push dword [esp + 0x30]
push edi
call fcn.0045b0e0
add esp, 0x24
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret
cmp si, word [esp + 0x24]
ja 0x4b1373
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x80
push eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4b1148
push 0x80
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b6080
push eax
push str.getsockname___failed:__s
push dword [esp + 0x2c]
jmp 0x4b1090
push 1
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4b1180
push 0x80
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004b6080
push eax
push str.socket_failure:__s
push dword [esp + 0x2c]
jmp 0x4b1090
push 0x100
lea eax, [esp + 0x134]
push eax
push ebx
call fcn.00491fa0
add esp, 0xc
cmp byte [edi + 0x2b7], 0
jne 0x4b11af
cmp byte [edi + 0x2af], 0
je 0x4b11af
mov byte [edi + 0x2b7], 1
mov esi, dword [esp + 0xa3c]
cmp esi, 2
je 0x4b1210
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x30]
cmp byte [edi + 0x2b7], 0
jne 0x4b11d3
test esi, esi
je 0x4b1206
cmp esi, 1
jne 0x4b11de
cmp cx, 2
jne 0x4b1206
movzx eax, cx
sub eax, 2
je 0x4b11eb
sub eax, 0x15
jne 0x4b1206
push dword [esp + 0x32]
call ebp
movzx ebx, ax
test esi, esi
je 0x4b12f7
cmp esi, 1
je 0x4b1256
mov cx, word [esp + 0x30]
inc esi
cmp esi, 2
jne 0x4b11c6
mov ebp, dword [esp + 0x20]
lea ebx, [edi + 0x4c8]
mov dword [ebx + 0x64], esi
mov eax, dword [edi + 0x1c4]
cmp eax, 0xffffffff
je 0x4b122e
push eax
push edi
call fcn.0045b0e0
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1c4], eax
mov eax, ebp
mov byte [edi + 0x2a3], 1
mov dword [edi + 0x538], 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret
lea edx, [esp + 0x634]
lea ecx, [esp + 0x130]
mov al, byte [ecx]
test al, al
je 0x4b1278
cmp al, 0x2e
jne 0x4b1270
mov al, 0x2c
mov byte [edx], al
inc edx
add ecx, 1
jne 0x4b1264
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.00498ef0
lea eax, [esp + 0x648]
push eax
push str.PORT
push str._s__s
lea ebx, [edi + 0x4c8]
push ebx
call fcn.004d5380
mov ebp, eax
add esp, 0x24
test ebp, ebp
je 0x4b1216
push ebp
call fcn.004b5ce0
push eax
push str.Failure_sending_PORT_command:__s
push dword [esp + 0x24]
call fcn.004599d0
push dword [esp + 0x24]
push edi
call fcn.0045b0e0
add esp, 0x18
mov dword [edi + 0x538], 0
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret
movzx eax, bx
lea ebx, [edi + 0x4c8]
push eax
lea eax, [esp + 0x134]
push eax
xor eax, eax
cmp word [esp + 0x38], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
call fcn.004d5380
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x4b1216
push ebp
call fcn.004b5ce0
push eax
push str.Failure_sending_EPRT_command:__s
push dword [esp + 0x24]
call fcn.004599d0
push dword [esp + 0x24]
push edi
call fcn.0045b0e0
add esp, 0x18
mov dword [ebx + 0x64], 1
mov dword [edi + 0x538], 0
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret
push str.bind___failed__we_ran_out_of_ports_
push dword [esp + 0x1c]
call fcn.004599d0
push dword [esp + 0x1c]
push edi
call fcn.0045b0e0
add esp, 0x10
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret
mov eax, dword [esp + 0x20]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [esp + 0x20]
call fcn.004599d0
push ebp
call dword [0x518cc4]
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
add esp, 0xa24
ret